Package com.ibm.fhir.smart
Class Scope
- java.lang.Object
 - 
- com.ibm.fhir.smart.Scope
 
 
- 
public class Scope extends Object
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classScope.ContextTypestatic classScope.Permission 
- 
Field Summary
Fields Modifier and Type Field Description static StringSCOPE_STRING_REGEX 
- 
Constructor Summary
Constructors Constructor Description Scope(Scope.ContextType contextType, ResourceType.Value resourceType, Scope.Permission permission)Scope(String scopeString) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Scope.ContextTypegetContextType()Scope.PermissiongetPermission()ResourceType.ValuegetResourceType()StringtoString() 
 - 
 
- 
- 
Field Detail
- 
SCOPE_STRING_REGEX
public static final String SCOPE_STRING_REGEX
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
Scope
public Scope(String scopeString)
- Parameters:
 scopeString- a string of the form(user|patient)/: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
 
 
 - 
 
 -