|
Nuxeo Enterprise Platform 5.4 | |||||||||
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(java.lang.String actionId)
|
ActionRegistry |
getActionRegistry()
|
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). |
ActionFilterRegistry |
getFilterRegistry()
|
ActionFilter[] |
getFilters(java.lang.String actionId)
|
boolean |
isEnabled(Action action,
ActionContext context)
|
boolean |
isEnabled(java.lang.String actionId,
ActionContext context)
|
boolean |
isRegistered(java.lang.String actionId)
|
void |
registerActionExtension(Extension extension)
|
void |
registerExtension(Extension extension)
Registers the given extension. |
void |
registerFilterExtension(Extension extension)
|
void |
remove()
Cleanup method. |
void |
unregisterActionExtension(Extension extension)
|
void |
unregisterExtension(Extension extension)
Unregisters the given extension. |
void |
unregisterFilterExtension(Extension extension)
|
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent |
---|
getAdapter, registerContribution, unregisterContribution |
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 java.util.List<Action> getActions(java.lang.String category, ActionContext context)
ActionManager
Only actions available in the give context are returned
getActions
in interface ActionManager
public java.util.List<Action> getAllActions(java.lang.String category)
ActionManager
getAllActions
in interface ActionManager
public java.util.List<Action> getActions(java.lang.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(java.lang.String actionId)
getAction
in interface ActionManager
public boolean isRegistered(java.lang.String actionId)
isRegistered
in interface ActionManager
public boolean isEnabled(java.lang.String actionId, ActionContext context)
isEnabled
in interface ActionManager
public boolean isEnabled(Action action, ActionContext context)
public ActionFilter[] getFilters(java.lang.String actionId)
getFilters
in interface ActionManager
public void registerExtension(Extension extension)
Extensible
registerExtension
in interface Extensible
registerExtension
in class DefaultComponent
extension
- the extension to registerpublic void unregisterExtension(Extension extension)
Extensible
unregisterExtension
in interface Extensible
unregisterExtension
in class DefaultComponent
extension
- the extension to unregisterpublic void registerFilterExtension(Extension extension)
public void unregisterFilterExtension(Extension extension)
public void registerActionExtension(Extension extension)
public void unregisterActionExtension(Extension extension)
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 |