ru.onego.industrial.catalog.util
Class ActionsManager

java.lang.Object
  extended by ru.onego.industrial.catalog.util.ActionsManager

public class ActionsManager
extends java.lang.Object

Manager, which maintains all actions in JCatalog. Implements Singleton pattern.

Version:
1.0
Author:
Lev Levin

Method Summary
static ActionsManager getInstance()
          Returns the instance of the manager.
 java.lang.Object processValue(java.lang.String column, java.lang.Object value)
          Loops through all actions defined for this catalog.
 void setActions(java.util.List<Action> actions)
          Sets list of actions, which should be maintained by this manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setActions

public void setActions(java.util.List<Action> actions)
Sets list of actions, which should be maintained by this manager.

Parameters:
actions - List of actions

processValue

public java.lang.Object processValue(java.lang.String column,
                                     java.lang.Object value)
Loops through all actions defined for this catalog. Actions are performed in the order they are given on parser.ini file.

Parameters:
column - Column name holding given value
value - Value to be treated
Returns:
Treated value

getInstance

public static ActionsManager getInstance()
Returns the instance of the manager.

Returns:
Instance of ActionsManager class