Package | Description |
---|---|
com.edorasware.one.permission.action |
Modifier and Type | Method and Description |
---|---|
static ContextAction |
ContextAction.find(String id)
Finds a new context action instance by the given id.
|
static ContextAction |
ContextAction.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContextAction[] |
ContextAction.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableCollection<ActionName> |
ActionPermissionFilter.filter(Collection<ActionName> actions,
ContextAction contextAction,
com.google.common.base.Optional<? extends com.edorasware.commons.core.entity.WorkObject<?,?,?>> workObject)
Filters the specified actions and returns the filtered actions.
|
com.google.common.collect.ImmutableCollection<Action> |
ActionPermissionManager.getAllowedActions(ContextAction context,
com.google.common.base.Optional<? extends com.edorasware.commons.core.entity.WorkObjectId> workObjectId)
Returns the allowed
Action s for the specified ContextAction and the work object id. |
boolean |
ActionPermissionManager.isActionAllowed(ActionName action,
ContextAction context,
com.google.common.base.Optional<? extends com.edorasware.commons.core.entity.WorkObjectId> workObjectId)
Checks if the action is allowed in the given context and for the given work object.
|
Copyright © 2010 - 2017 edorasware ag. All Rights Reserved.