public class ParentTypeActionEvaluator extends AbstractActionEvaluator
ParentTypeActionEvaluator.ParentTypeEnum or not.CompositeActionEvaluator| Modifier and Type | Class and Description |
|---|---|
static class |
ParentTypeActionEvaluator.ParentTypeEnum
Enumeration of type of parents, which may be required to check availability of some action for an object
|
| Modifier | Constructor and Description |
|---|---|
protected |
ParentTypeActionEvaluator(ServiceRegistry serviceRegistry,
CMISAllowedActionEnum action,
ParentTypeActionEvaluator.ParentTypeEnum parentType,
boolean expected)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAllowed(java.lang.Object object)
Determines if an action is allowed on an object
|
getAction, getServiceRegistryprotected ParentTypeActionEvaluator(ServiceRegistry serviceRegistry, CMISAllowedActionEnum action, ParentTypeActionEvaluator.ParentTypeEnum parentType, boolean expected)
serviceRegistry - - ServiceRegistry instanceaction - - CMISAllowableActions enumeration value, which determines the action to checkparentType - - ParentTypeActionEvaluator.ParentTypeEnum enumeration value, which determines type of parent, which should be validatedexpected - - Boolean value, which determines: true - object should have parentType parent, false - object should NOT have
parentType parentpublic boolean isAllowed(java.lang.Object object)
CMISActionEvaluatorCopyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.