Package com.ibm.fhir.smart
Class Scope
- java.lang.Object
-
- com.ibm.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(Scope.ContextType contextType, ResourceType.Value resourceType, Scope.Permission permission)
Scope(java.lang.String scopeString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Scope.ContextType
getContextType()
Scope.Permission
getPermission()
ResourceType.Value
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.Value 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.Value 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|*)
-
-