Package org.alfresco.repo.action
Class CompositeActionConditionImpl
java.lang.Object
org.alfresco.repo.action.ParameterizedItemImpl
org.alfresco.repo.action.ActionConditionImpl
org.alfresco.repo.action.CompositeActionConditionImpl
- All Implemented Interfaces:
Serializable,ActionCondition,CompositeActionCondition,ParameterizedItem
public class CompositeActionConditionImpl
extends ActionConditionImpl
implements CompositeActionCondition
Composite action condition implementation
- Author:
- Jean Barmash
- See Also:
-
Field Summary
Fields inherited from interface org.alfresco.service.cmr.action.CompositeActionCondition
COMPOSITE_CONDITION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddActionCondition(int index, ActionCondition actionCondition) Add an ActionCondition to the list at the index specifiedvoidaddActionCondition(ActionCondition actionCondition) Add an ActionCondition to the end of the listgetActionCondition(int index) Get an ActionCondition at a given indexGet list containing the ActionConditions in their current orderbooleanIndicates whether there are any ConditionsintindexOfActionCondition(ActionCondition actionCondition) Gets the index of an ActionConditionbooleanvoidremoveActionCondition(ActionCondition actionCondition) Remove an ActionCondition from the listvoidRemove all ActionConditions from the listvoidsetActionCondition(int index, ActionCondition actionCondition) Replace the ActionCondition at the specified index with the passed ActionCondition.voidsetORCondition(boolean andOr) Methods inherited from class org.alfresco.repo.action.ActionConditionImpl
getActionConditionDefinitionName, getInvertCondition, setInvertConditionMethods inherited from class org.alfresco.repo.action.ParameterizedItemImpl
equals, getId, getParameterValue, getParameterValues, hashCode, setParameterValue, setParameterValuesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.alfresco.service.cmr.action.ActionCondition
getActionConditionDefinitionName, getInvertCondition, setInvertConditionMethods inherited from interface org.alfresco.service.cmr.action.ParameterizedItem
getId, getParameterValue, getParameterValues, setParameterValue, setParameterValues
-
Constructor Details
-
CompositeActionConditionImpl
-
-
Method Details
-
addActionCondition
Description copied from interface:CompositeActionConditionAdd an ActionCondition to the end of the list- Specified by:
addActionConditionin interfaceCompositeActionCondition- Parameters:
actionCondition- the ActionCondition
-
addActionCondition
Description copied from interface:CompositeActionConditionAdd an ActionCondition to the list at the index specified- Specified by:
addActionConditionin interfaceCompositeActionCondition- Parameters:
index- the indexactionCondition- the ActionCondition
-
getActionCondition
Description copied from interface:CompositeActionConditionGet an ActionCondition at a given index- Specified by:
getActionConditionin interfaceCompositeActionCondition- Parameters:
index- the index- Returns:
- the ActionCondition
-
getActionConditions
Description copied from interface:CompositeActionConditionGet list containing the ActionConditions in their current order- Specified by:
getActionConditionsin interfaceCompositeActionCondition- Returns:
- the list of ActionConditions
-
hasActionConditions
public boolean hasActionConditions()Description copied from interface:CompositeActionConditionIndicates whether there are any Conditions- Specified by:
hasActionConditionsin interfaceCompositeActionCondition- Returns:
- true if there are ActionConditions, false otherwise
-
indexOfActionCondition
Description copied from interface:CompositeActionConditionGets the index of an ActionCondition- Specified by:
indexOfActionConditionin interfaceCompositeActionCondition- Parameters:
actionCondition- the ActionCondition- Returns:
- the index
-
removeActionCondition
Description copied from interface:CompositeActionConditionRemove an ActionCondition from the list- Specified by:
removeActionConditionin interfaceCompositeActionCondition- Parameters:
actionCondition- the ActionCondition
-
removeAllActionConditions
public void removeAllActionConditions()Description copied from interface:CompositeActionConditionRemove all ActionConditions from the list- Specified by:
removeAllActionConditionsin interfaceCompositeActionCondition
-
setActionCondition
Description copied from interface:CompositeActionConditionReplace the ActionCondition at the specified index with the passed ActionCondition.- Specified by:
setActionConditionin interfaceCompositeActionCondition- Parameters:
index- the indexactionCondition- the ActionCondition
-
isORCondition
public boolean isORCondition()- Specified by:
isORConditionin interfaceCompositeActionCondition
-
setORCondition
public void setORCondition(boolean andOr) - Specified by:
setORConditionin interfaceCompositeActionCondition
-