public class TypeAttributeActionEvaluator extends AbstractActionEvaluator
null or it cannot. getSecond() of the TypeAttributeActionEvaluator.comparator field is ignored, if it cannot be equal
to null CompositeActionEvaluator. | Modifier and Type | Class and Description |
|---|---|
static class |
TypeAttributeActionEvaluator.TypeDefinitionAttributeEnum
This enumeration encapsulates the logic of object type definition attributes comparing.
|
| Constructor and Description |
|---|
TypeAttributeActionEvaluator(TypeAttributeActionEvaluator.TypeDefinitionAttributeEnum attribute,
org.alfresco.util.Pair comparator,
boolean nullExpected,
boolean defaultAllowing,
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, getServiceRegistrypublic TypeAttributeActionEvaluator(TypeAttributeActionEvaluator.TypeDefinitionAttributeEnum attribute, org.alfresco.util.Pair comparator, boolean nullExpected, boolean defaultAllowing, ServiceRegistry serviceRegistry, CMISAllowedActionEnum action)
attribute - - TypeAttributeActionEvaluator.TypeDefinitionAttributeEnum enumeration value, which specifies method of CMISTypeDefinition to receive attribute, which should be
validatedcomparator - - Pair<Object, Comparable<Object>> instance. See TypeAttributeActionEvaluator.comparator for more
detailsnullExpected - - Boolean value, which determines: true - attribute value may be null, false - attribute value can't be
equal to null (this leads to ignoring getSecond() of the TypeAttributeActionEvaluator.comparator field)defaultAllowing - - Boolean value, which determines availability of action for several special cases (invalid object id, empty collection of the aspects etc.)serviceRegistry - - 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.