public class CompositeActionEvaluator extends AbstractActionEvaluator
CompositeActionEvaluator may include other CompositeActionEvaluator conditions!| Constructor and Description |
|---|
CompositeActionEvaluator(boolean defaultAllowing,
ServiceRegistry serviceRegistry,
CMISAllowedActionEnum action)
Constructor
|
getAction, getServiceRegistrypublic CompositeActionEvaluator(boolean defaultAllowing,
ServiceRegistry serviceRegistry,
CMISAllowedActionEnum action)
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)
CMISActionEvaluatorpublic CompositeActionEvaluator addPermissionCondition(java.lang.String[] permissions)
PermissionActionEvaluator condition to the listpermissions - - String... collection, which specifies all the permissions, which should be checkedCompositeActionEvaluator - self-instance, which allows making chain of conditionspublic CompositeActionEvaluator addPropertyCondition(PropertyActionEvaluator.PropertyDescriptor[] propertyIdsAndExpectedValues)
PropertyActionEvaluator condition to the list. This method implies, that each property from the propertyIdsAndExpectedValues collection must satisfy
conditions, which are specified in each PropertyActionEvaluator.PropertyDescriptor instancepropertyIdsAndExpectedValues - - PropertyActionEvaluator.PropertyDescriptor collection, which specifies property ids and expected values or if value should not be nullCompositeActionEvaluator - self-instance, which allows making chain of conditionspublic CompositeActionEvaluator addTypeAttributeCondition(TypeAttributeActionEvaluator.TypeDefinitionAttributeEnum attribute, java.lang.Comparable comparator)
TypeAttributeActionEvaluator condition to the list. This method implies, that attribute value may be null and it is not Map or
Collectionattribute - - TypeAttributeActionEvaluator.TypeDefinitionAttributeEnum enumeration value, which determines attribute of object type definition, which should be validatedcomparator - - Comparable instance, which encapsulates the logic of checking a value, received from the object type definition in accordance with
attribute parameterCompositeActionEvaluator - self-instance, which allows making chain of conditionspublic CompositeActionEvaluator addLockCondition(LockType lockType)
ObjectLockedActionEvaluator condition to the list. This method implies, that object should not have lockType locklockType - - LockType enumeration value, which determines lock, required to checkCompositeActionEvaluator - self-instance, which allows making chain of conditionspublic CompositeActionEvaluator addPwcCondition(boolean pwcExpected)
AspectActionEvaluator condition to the list. This method sets only 1 ContentModel.ASPECT_WORKING_COPY aspect id and it impliespwcExpected - - Boolean value, which determines: true - object should be PWC, false - object should not be PWCCompositeActionEvaluator - self-instance, which allows making chain of conditionspublic CompositeActionEvaluator addAspectCondition(boolean expected, org.alfresco.service.namespace.QName[] aspects)
AspectActionEvaluator condition to the list. This method implies, that all aspects should satisfy to the expected conditionexpected - - Boolean value, which determines: true - aspects appliance is expected, false - aspects absence is expectedaspects - - QName... collection, which specifies all the aspects, which should be validatedCompositeActionEvaluator - self-instance, which allows making chain of conditionspublic CompositeActionEvaluator addParentTypeCondition(ParentTypeActionEvaluator.ParentTypeEnum parentType)
ParentTypeActionEvaluator condition to the list. This method implies, that parent of the parentType type is expectedparentType - - ParentTypeActionEvaluator.ParentTypeEnum enumeration value, which determines, validation for which parent is required: for ParentTypeActionEvaluator.ParentTypeEnum.MULTI_FILED, for
ParentTypeActionEvaluator.ParentTypeEnum.REPOSITORY_ROOT or for ParentTypeActionEvaluator.ParentTypeEnum.PRIMARY_REPOSITORY_ROOTCompositeActionEvaluator - self-instance, which allows making chain of conditionspublic CompositeActionEvaluator addCondition(AbstractActionEvaluator condition)
nullcondition - - AbstractActionEvaluator instance, which determines some conditionCompositeActionEvaluator - self-instance, which allows making chain of conditionsCopyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.