org.alfresco.repo.action
Class CompositeActionConditionImpl

java.lang.Object
  extended by org.alfresco.repo.action.ParameterizedItemImpl
      extended by org.alfresco.repo.action.ActionConditionImpl
          extended by org.alfresco.repo.action.CompositeActionConditionImpl
All Implemented Interfaces:
java.io.Serializable, ActionCondition, CompositeActionCondition, ParameterizedItem

public class CompositeActionConditionImpl
extends ActionConditionImpl
implements CompositeActionCondition

Composite action condition implementation

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.alfresco.service.cmr.action.CompositeActionCondition
COMPOSITE_CONDITION
 
Constructor Summary
CompositeActionConditionImpl(java.lang.String id)
           
 
Method Summary
 void addActionCondition(ActionCondition actionCondition)
          Add an ActionCondition to the end of the list
 void addActionCondition(int index, ActionCondition actionCondition)
          Add an ActionCondition to the list at the index specified
 ActionCondition getActionCondition(int index)
          Get an ActionCondition at a given index
 java.util.List getActionConditions()
          Get list containing the ActionConditions in their current order
 boolean hasActionConditions()
          Indicates whether there are any Conditions
 int indexOfActionCondition(ActionCondition actionCondition)
          Gets the index of an ActionCondition
 boolean isORCondition()
           
 void removeActionCondition(ActionCondition actionCondition)
          Remove an ActionCondition from the list
 void removeAllActionConditions()
          Remove all ActionConditions from the list
 void setActionCondition(int index, ActionCondition actionCondition)
          Replace the ActionCondition at the specified index with the passed ActionCondition.
 void setORCondition(boolean andOr)
           
 
Methods inherited from class org.alfresco.repo.action.ActionConditionImpl
getActionConditionDefinitionName, getInvertCondition, setInvertCondition
 
Methods inherited from class org.alfresco.repo.action.ParameterizedItemImpl
equals, getId, getParameterValue, getParameterValues, hashCode, setParameterValue, setParameterValues
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.alfresco.service.cmr.action.ActionCondition
getActionConditionDefinitionName, getInvertCondition, setInvertCondition
 
Methods inherited from interface org.alfresco.service.cmr.action.ParameterizedItem
getId, getParameterValue, getParameterValues, setParameterValue, setParameterValues
 

Constructor Detail

CompositeActionConditionImpl

public CompositeActionConditionImpl(java.lang.String id)
Method Detail

addActionCondition

public void addActionCondition(ActionCondition actionCondition)
Description copied from interface: CompositeActionCondition
Add an ActionCondition to the end of the list

Specified by:
addActionCondition in interface CompositeActionCondition
Parameters:
actionCondition - the ActionCondition

addActionCondition

public void addActionCondition(int index,
                               ActionCondition actionCondition)
Description copied from interface: CompositeActionCondition
Add an ActionCondition to the list at the index specified

Specified by:
addActionCondition in interface CompositeActionCondition
Parameters:
index - the index
actionCondition - the ActionCondition

getActionCondition

public ActionCondition getActionCondition(int index)
Description copied from interface: CompositeActionCondition
Get an ActionCondition at a given index

Specified by:
getActionCondition in interface CompositeActionCondition
Parameters:
index - the index
Returns:
the ActionCondition

getActionConditions

public java.util.List getActionConditions()
Description copied from interface: CompositeActionCondition
Get list containing the ActionConditions in their current order

Specified by:
getActionConditions in interface CompositeActionCondition
Returns:
the list of ActionConditions

hasActionConditions

public boolean hasActionConditions()
Description copied from interface: CompositeActionCondition
Indicates whether there are any Conditions

Specified by:
hasActionConditions in interface CompositeActionCondition
Returns:
true if there are ActionConditions, false otherwise

indexOfActionCondition

public int indexOfActionCondition(ActionCondition actionCondition)
Description copied from interface: CompositeActionCondition
Gets the index of an ActionCondition

Specified by:
indexOfActionCondition in interface CompositeActionCondition
Parameters:
actionCondition - the ActionCondition
Returns:
the index

removeActionCondition

public void removeActionCondition(ActionCondition actionCondition)
Description copied from interface: CompositeActionCondition
Remove an ActionCondition from the list

Specified by:
removeActionCondition in interface CompositeActionCondition
Parameters:
actionCondition - the ActionCondition

removeAllActionConditions

public void removeAllActionConditions()
Description copied from interface: CompositeActionCondition
Remove all ActionConditions from the list

Specified by:
removeAllActionConditions in interface CompositeActionCondition

setActionCondition

public void setActionCondition(int index,
                               ActionCondition actionCondition)
Description copied from interface: CompositeActionCondition
Replace the ActionCondition at the specified index with the passed ActionCondition.

Specified by:
setActionCondition in interface CompositeActionCondition
Parameters:
index - the index
actionCondition - the ActionCondition

isORCondition

public boolean isORCondition()
Specified by:
isORCondition in interface CompositeActionCondition

setORCondition

public void setORCondition(boolean andOr)
Specified by:
setORCondition in interface CompositeActionCondition


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.