|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.runtime.model.DefaultComponent org.nuxeo.ecm.platform.actions.ActionService
public class ActionService
Field Summary | |
---|---|
static ComponentName |
ID
|
Constructor Summary | |
---|---|
ActionService()
|
Method Summary | |
---|---|
void |
activate(ComponentContext context)
Activates the component. |
void |
deactivate(ComponentContext context)
Deactivates the component. |
Action |
getAction(String actionId)
|
ActionRegistry |
getActionRegistry()
|
List<Action> |
getActions(String category,
ActionContext context)
Gets actions for a category (filters are evaluated). |
List<Action> |
getActions(String category,
ActionContext context,
boolean hideUnavailableActions)
Gets actions for a category (filters are evaluated). |
List<Action> |
getAllActions(String category)
Gets all actions in a category (filters are NOT evaluated). |
ActionFilterRegistry |
getFilterRegistry()
|
ActionFilter[] |
getFilters(String actionId)
|
boolean |
isEnabled(Action action,
ActionContext context)
|
boolean |
isEnabled(String actionId,
ActionContext context)
|
boolean |
isRegistered(String actionId)
|
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
|
void |
remove()
Cleanup method. |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
|
void |
unregisterFilterFactory(FilterFactory ff)
Deprecated. seems not used in Nuxeo - should be removed - and anyway the merge is not done |
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent |
---|
applicationStarted, getAdapter, registerExtension, unregisterExtension |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ComponentName ID
Constructor Detail |
---|
public ActionService()
Method Detail |
---|
public void activate(ComponentContext context)
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime contextpublic void deactivate(ComponentContext context)
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime contextpublic final ActionRegistry getActionRegistry()
public final ActionFilterRegistry getFilterRegistry()
public List<Action> getActions(String category, ActionContext context)
ActionManager
Only actions available in the give context are returned
getActions
in interface ActionManager
public List<Action> getAllActions(String category)
ActionManager
getAllActions
in interface ActionManager
public List<Action> getActions(String category, ActionContext context, boolean hideUnavailableActions)
ActionManager
If hideUnavailableActions, all actions of the category are returned but actions are flagged with a enable flag depending on filters evaluation.
getActions
in interface ActionManager
public Action getAction(String actionId)
getAction
in interface ActionManager
public boolean isRegistered(String actionId)
isRegistered
in interface ActionManager
public boolean isEnabled(String actionId, ActionContext context)
isEnabled
in interface ActionManager
public boolean isEnabled(Action action, ActionContext context)
public ActionFilter[] getFilters(String actionId)
getFilters
in interface ActionManager
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution
in class DefaultComponent
Exception
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
unregisterContribution
in class DefaultComponent
Exception
@Deprecated public void unregisterFilterFactory(FilterFactory ff)
ff
- public void remove()
ActionManager
remove
in interface ActionManager
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |