public class ObjectLockedActionEvaluator extends AbstractActionEvaluator
LockType lock parameter and in accordance with rules of checking application of the lock. The rules
are:CompositeActionEvaluator| Modifier | Constructor and Description |
|---|---|
protected |
ObjectLockedActionEvaluator(LockType lockType,
boolean lockExpected,
ServiceRegistry serviceRegistry,
CMISAllowedActionEnum action)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAllowed(java.lang.Object object)
Determines if an action is allowed on an object
|
getAction, getServiceRegistryprotected ObjectLockedActionEvaluator(LockType lockType, boolean lockExpected, ServiceRegistry serviceRegistry, CMISAllowedActionEnum action)
lockType - - LockType enumeration value, which determines type of the lock, which should be validatedlockExpected - - Boolean value, which determines: true - object should be locked and lock should satisfy to the lockType,
false - object should not have the lockType lockserviceRegistry - - ServiceRegistry instanceaction - - CMISAllowableActions enumeration value, which determines the action to checkpublic boolean isAllowed(java.lang.Object object)
CMISActionEvaluatorCopyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.