Package org.linuxforhealth.fhir.smart
Class Scope
- java.lang.Object
-
- org.linuxforhealth.fhir.smart.Scope
-
public class Scope extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Scope.ContextType
static class
Scope.Permission
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SCOPE_STRING_REGEX
-
Constructor Summary
Constructors Constructor Description Scope(java.lang.String scopeString)
Scope(Scope.ContextType contextType, ResourceType resourceType, Scope.Permission permission)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Scope.ContextType
getContextType()
Scope.Permission
getPermission()
ResourceType
getResourceType()
java.lang.String
toString()
-
-
-
Field Detail
-
SCOPE_STRING_REGEX
public static final java.lang.String SCOPE_STRING_REGEX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Scope
public Scope(java.lang.String scopeString)
- Parameters:
scopeString
- a string of the form(user|patient|system)/:resourceType.(read|write|*)
-
Scope
public Scope(Scope.ContextType contextType, ResourceType resourceType, Scope.Permission permission)
- Parameters:
contextType
-resourceType
- "Resource" for all resource typespermission
-
-
-
Method Detail
-
getContextType
public Scope.ContextType getContextType()
- Returns:
- the contextType
-
getResourceType
public ResourceType getResourceType()
- Returns:
- the resourceType; "Resource" for all resource types
-
getPermission
public Scope.Permission getPermission()
- Returns:
- the permission
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- Returns:
- a scopeString of the form
(user|patient|system)/:resourceType.(read|write|*)
-
-