Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.actions.ejb
Class ActionManagerBean

java.lang.Object
  extended by org.nuxeo.ecm.platform.actions.ejb.ActionManagerBean
All Implemented Interfaces:
java.io.Serializable, ActionManager, ActionManagerLocal

public class ActionManagerBean
extends java.lang.Object
implements ActionManagerLocal

Author:
Bogdan Stefanescu, Ruslan Spivak
See Also:
Serialized Form

Constructor Summary
ActionManagerBean()
           
 
Method Summary
 Action getAction(java.lang.String actionId)
           
 java.util.List<Action> getActions(java.lang.String category, ActionContext context)
          Gets actions for a category (filters are evaluated).
 java.util.List<Action> getActions(java.lang.String category, ActionContext context, boolean hideUnavailableActions)
          Gets actions for a category (filters are evaluated).
 java.util.List<Action> getAllActions(java.lang.String category)
          Gets all actions in a category (filters are NOT evaluated).
 ActionFilter[] getFilters(java.lang.String actionId)
           
 void initialize()
           
 boolean isEnabled(java.lang.String actionId, ActionContext context)
           
 boolean isRegistered(java.lang.String actionId)
           
 void readState()
           
 void remove()
          Cleanup method.
 void saveState()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionManagerBean

public ActionManagerBean()
Method Detail

initialize

@PostConstruct
public void initialize()

getActions

public java.util.List<Action> getActions(java.lang.String category,
                                         ActionContext context)
Description copied from interface: ActionManager
Gets actions for a category (filters are evaluated).

Only actions available in the give context are returned

Specified by:
getActions in interface ActionManager

getActions

public java.util.List<Action> getActions(java.lang.String category,
                                         ActionContext context,
                                         boolean hideUnavailableActions)
Description copied from interface: ActionManager
Gets actions for a category (filters are evaluated).

If hideUnavailableActions, all actions of the category are returned but actions are flagged with a enable flag depending on filters evaluation.

Specified by:
getActions in interface ActionManager

isEnabled

public boolean isEnabled(java.lang.String actionId,
                         ActionContext context)
Specified by:
isEnabled in interface ActionManager

isRegistered

public boolean isRegistered(java.lang.String actionId)
Specified by:
isRegistered in interface ActionManager

getAction

public Action getAction(java.lang.String actionId)
Specified by:
getAction in interface ActionManager

getFilters

public ActionFilter[] getFilters(java.lang.String actionId)
Specified by:
getFilters in interface ActionManager

remove

public void remove()
Description copied from interface: ActionManager
Cleanup method.

Specified by:
remove in interface ActionManager

readState

public void readState()

saveState

public void saveState()

getAllActions

public java.util.List<Action> getAllActions(java.lang.String category)
Description copied from interface: ActionManager
Gets all actions in a category (filters are NOT evaluated).

Specified by:
getAllActions in interface ActionManager

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.