public class PropertyActionEvaluator extends AbstractActionEvaluator
PropertyActionEvaluator.PropertyDescriptor and in accordance with rules of checking of the object properties.
The rules are:PropertyActionEvaluator.PropertyDescriptor instance or at least 1 property
satisfaction is enough.CompositeActionEvaluator| Modifier and Type | Class and Description |
|---|---|
static class |
PropertyActionEvaluator.PropertyDescriptor
This class encapsulates description of object property to validate some actual object property against defined condition.
|
| Constructor and Description |
|---|
PropertyActionEvaluator(ServiceRegistry serviceRegistry,
CMISAllowedActionEnum action,
boolean allPropertiesConcur,
boolean defaultAllowing,
PropertyActionEvaluator.PropertyDescriptor[] propertyIdsAndExpectedValues)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAllowed(java.lang.Object object)
Determines if an action is allowed on an object
|
getAction, getServiceRegistrypublic PropertyActionEvaluator(ServiceRegistry serviceRegistry, CMISAllowedActionEnum action, boolean allPropertiesConcur, boolean defaultAllowing, PropertyActionEvaluator.PropertyDescriptor[] propertyIdsAndExpectedValues)
serviceRegistry - - ServiceRegistry instanceaction - - CMISAllowableActions enumeration value, which determines the action to checkallPropertiesConcur - - Boolean value, which determines: true - each specific object property should satisfy all the conditions of appropriate
PropertyActionEvaluator.PropertyDescriptor, false - at least 1 object property satisfaction is enoughdefaultAllowing - - Boolean value, which determines availability of action for several special cases (invalid object id, empty collection of the aspects etc.)propertyIdsAndExpectedValues - - PropertyActionEvaluator.PropertyDescriptor... collection, which specifies all the properties, which should be validated on an objectpublic boolean isAllowed(java.lang.Object object)
CMISActionEvaluatorCopyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.