public class TypeAttributeActionEvaluator<ObjectType> extends AbstractActionEvaluator<ObjectType>
null or it cannot. getSecond() of the comparator field is ignored, if it cannot be equal
to null CompositeActionEvaluator. comparator| 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<Object,Comparable<Object>> comparator,
boolean nullExpected,
boolean defaultAllowing,
ServiceRegistry serviceRegistry,
CMISAllowedActionEnum action)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAllowed(ObjectType object)
Determines if an action is allowed on an object
|
getAction, getServiceRegistrypublic TypeAttributeActionEvaluator(TypeAttributeActionEvaluator.TypeDefinitionAttributeEnum attribute, org.alfresco.util.Pair<Object,Comparable<Object>> 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 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 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(ObjectType object)
CMISActionEvaluatorCopyright © 2005–2014 Alfresco Software. All rights reserved.