Class CompositePermission
java.lang.Object
org.craftercms.commons.security.permissions.CompositePermission
- All Implemented Interfaces:
Permission
Represents a permission that is a collection of other permissions. If any of the permissions evaluates to false,
the final result will be false.
- Author:
- avasquez
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCompositePermission
(Collection<Permission> permissions) CompositePermission
(Permission... permissions) -
Method Summary
-
Field Details
-
permissions
-
-
Constructor Details
-
CompositePermission
-
CompositePermission
-
-
Method Details
-
isAllowed
Description copied from interface:Permission
Returns true if action execution is allowed- Specified by:
isAllowed
in interfacePermission
- Parameters:
action
- the action to execute- Returns:
- true if action execution is allowed, false otherwise.
-