edu.internet2.middleware.grouper.attr.assign
Class AttributeDefActionDelegate

java.lang.Object
  extended by edu.internet2.middleware.grouper.attr.assign.AttributeDefActionDelegate

public class AttributeDefActionDelegate
extends Object

delegate the action management to this class


Constructor Summary
AttributeDefActionDelegate(AttributeDef attributeDef1)
           
 
Method Summary
 AttributeAssignAction addAction(String action)
          add an action if necessary
 AttributeAssignAction allowedAction(String action, boolean exceptionWhenNotFound)
          get action
 Set<AttributeAssignAction> allowedActions()
          get (and cache) the allowed actions
 Set<String> allowedActionStrings()
           
 int configureActionList(Collection<String> collection)
          configure the action list based on collection of actions
 int configureActionList(String list)
          configure the action list based on comma separated list of actions
 AttributeAssignAction findAction(String name, boolean exceptionIfNull)
          retrieve an action
 AttributeAssignAction internal_addAction(String action, String uuid)
          add an action
 void removeAction(String action)
          remove an action if necessary
 void replaceAllActionsWith(Collection newActions)
          replace existing all actions with newActions
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeDefActionDelegate

public AttributeDefActionDelegate(AttributeDef attributeDef1)
Parameters:
attributeDef1 -
Method Detail

configureActionList

public int configureActionList(String list)
configure the action list based on comma separated list of actions

Parameters:
list -
Returns:
number of changes

allowedActions

public Set<AttributeAssignAction> allowedActions()
get (and cache) the allowed actions

Returns:
the set of strings

findAction

public AttributeAssignAction findAction(String name,
                                        boolean exceptionIfNull)
retrieve an action

Parameters:
name -
exceptionIfNull -
Returns:
AttributeAssignAction

allowedAction

public AttributeAssignAction allowedAction(String action,
                                           boolean exceptionWhenNotFound)
get action

Parameters:
exceptionWhenNotFound -
action -
Returns:
the action

allowedActionStrings

public Set<String> allowedActionStrings()
Returns:
the set of allowed action strings

configureActionList

public int configureActionList(Collection<String> collection)
configure the action list based on collection of actions

Parameters:
collection -
Returns:
the number of changed

internal_addAction

public AttributeAssignAction internal_addAction(String action,
                                                String uuid)
add an action

Parameters:
action -
uuid -
Returns:
the assign

addAction

public AttributeAssignAction addAction(String action)
add an action if necessary

Parameters:
action -
Returns:
action

removeAction

public void removeAction(String action)
remove an action if necessary

Parameters:
action -

replaceAllActionsWith

public void replaceAllActionsWith(Collection newActions)
replace existing all actions with newActions

Parameters:
newActions -