|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.nuxeo.runtime.model.DefaultComponent
org.nuxeo.runtime.model.ReloadableComponent
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 |
registerActionExtension(Object contrib)
|
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
|
void |
registerFilterExtension(Object contrib)
|
void |
remove()
Cleanup method. |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
|
void |
unregisterFilterExtension(Object contrib)
|
Methods inherited from class org.nuxeo.runtime.model.ReloadableComponent |
---|
getExtensions, registerExtension, reload, unregisterExtension |
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent |
---|
applicationStarted, getAdapter |
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 ActionRegistry getActionRegistry()
public 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
public void registerFilterExtension(Object contrib)
public void unregisterFilterExtension(Object contrib)
public void registerActionExtension(Object contrib)
public void remove()
ActionManager
remove
in interface ActionManager
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |