public class AspectActionEvaluator extends AbstractActionEvaluator
CompositeActionEvaluator| Constructor and Description |
|---|
AspectActionEvaluator(ServiceRegistry serviceRegistry,
CMISAllowedActionEnum action,
boolean expected,
boolean allAspectsMustConcur,
boolean defaultAllowing,
org.alfresco.service.namespace.QName[] aspects)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAllowed(java.lang.Object id)
Determines if an action is allowed on an object
|
getAction, getServiceRegistrypublic AspectActionEvaluator(ServiceRegistry serviceRegistry, CMISAllowedActionEnum action, boolean expected, boolean allAspectsMustConcur, boolean defaultAllowing, org.alfresco.service.namespace.QName[] aspects)
serviceRegistry - - ServiceRegistry instanceaction - - CMISAllowableActions enumeration value, which determines the action to checkexpected - - Boolean value, which determines: true - aspects application is expected, false - aspects absence is expectedallAspectsMustConcur - - Boolean value, which determines: true - all aspects should satisfy expected condition, false -
at least 1 aspect should satisfy the expected conditiondefaultAllowing - - Boolean value, which determines availability of action for several special cases (invalid object id, empty collection of the aspects etc.)aspects - QName... collection, which specifies all aspects, required for validationpublic boolean isAllowed(java.lang.Object id)
CMISActionEvaluatorCopyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.