Modifier and Type | Method and Description |
---|---|
Optional<String> |
getOption(Set<Context> contexts,
String key)
Get the value of a given option in the given context.
|
Optional<String> |
getOption(String key)
Get the value of a given option in the subject's current context
|
OptionSubjectData |
getSubjectData()
The container for permissions data that *may* be persisted if the service
provider supports it.
|
OptionSubjectData |
getTransientSubjectData()
Returns container for subject data that is guaranteed to be transient
(only lasting for the duration of the subject's session, not persisted).
|
getActiveContexts, getCommandSource, getContainingCollection, getIdentifier, getParents, getParents, getPermissionValue, hasPermission, hasPermission, isChildOf, isChildOf
OptionSubjectData getSubjectData()
Subject
getSubjectData
in interface Subject
OptionSubjectData getTransientSubjectData()
Subject
Subject.getSubjectData()
if the provider
for this service does not implement persistence for permissions datagetTransientSubjectData
in interface Subject
Optional<String> getOption(Set<Context> contexts, String key)
contexts
- The contexts to get the options fromkey
- The key to get an option by. Case-insensitive.