Package ca.cdr.api.model.json
Class GrantedAuthorityJson
java.lang.Object
ca.cdr.api.model.json.GrantedAuthorityJson
- All Implemented Interfaces:
IModelJson
,IModelJson
,Serializable
,Comparable<GrantedAuthorityJson>
,org.springframework.security.core.GrantedAuthority
public class GrantedAuthorityJson
extends Object
implements org.springframework.security.core.GrantedAuthority, IModelJson, Comparable<GrantedAuthorityJson>
- See Also:
-
Field Summary
Fields inherited from interface ca.uhn.fhir.model.api.IModelJson
SENSITIVE_DATA_FILTER_NAME
-
Constructor Summary
ConstructorDescriptionConstructorGrantedAuthorityJson
(PermissionEnum thePermission) ConstructorGrantedAuthorityJson
(PermissionEnum thePermission, String theArgument) Constructor -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(GrantedAuthorityJson theOther) boolean
int
hashCode()
static GrantedAuthorityJson
toString()
withArgument
(String theArgument) Create a copy of this authority with the same permission but a different argument
-
Constructor Details
-
GrantedAuthorityJson
public GrantedAuthorityJson()Constructor -
GrantedAuthorityJson
Constructor -
GrantedAuthorityJson
Constructor
-
-
Method Details
-
equals
-
getArgument
-
getAuthority
- Specified by:
getAuthority
in interfaceorg.springframework.security.core.GrantedAuthority
-
getPermission
-
hashCode
-
toString
-
withArgument
Create a copy of this authority with the same permission but a different argument -
compareTo
- Specified by:
compareTo
in interfaceComparable<GrantedAuthorityJson>
-
parse
- Parameters:
theValue
- E.g. "ROLE_FHIR_CLIENT" or "FHIR_READ_ALL_IN_COMPARTMENT/Patient/123"- Throws:
IllegalArgumentException
- If the permission is invalid
-