|
Nuxeo Enterprise Platform 5.1 | |||||||||
| 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.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)
|
List<Action> |
getActions(String category,
ActionContext context,
boolean hideUnavailableActions)
|
ActionFilterRegistry |
getFilterRegistry()
|
ActionFilter[] |
getFilters(String actionId)
|
boolean |
isEnabled(Action action,
ActionContext context)
|
boolean |
isEnabled(String actionId,
ActionContext context)
|
boolean |
isRegistered(String actionId)
|
protected Action |
mergeActions(Action existingOne,
Action newOne)
Merges two actions. |
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 |
|---|
clone, equals, finalize, 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)
ComponentThis method will be called by the runtime when a component is activated.
activate in interface Componentactivate in class DefaultComponentcontext - the runtime contextpublic void deactivate(ComponentContext context)
ComponentThis method will be called by the runtime when a component is deactivated.
deactivate in interface Componentdeactivate in class DefaultComponentcontext - the runtime contextpublic ActionRegistry getActionRegistry()
public ActionFilterRegistry getFilterRegistry()
public List<Action> getActions(String category,
ActionContext context)
getActions in interface ActionManager
public List<Action> getActions(String category,
ActionContext context,
boolean hideUnavailableActions)
getActions in interface ActionManagerpublic Action getAction(String actionId)
getAction in interface ActionManagerpublic 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 ActionManagerpublic void registerExtension(Extension extension)
Extensible
registerExtension in interface ExtensibleregisterExtension in class DefaultComponentextension - the extension to registerpublic void unregisterExtension(Extension extension)
Extensible
unregisterExtension in interface ExtensibleunregisterExtension in class DefaultComponentextension - the extension to unregisterpublic void registerFilterExtension(Extension extension)
public void unregisterFilterExtension(Extension extension)
public void registerActionExtension(Extension extension)
public void unregisterActionExtension(Extension extension)
protected Action mergeActions(Action existingOne,
Action newOne)
Single properties are overloaded only when redefined (icon, enabled, order, etc.), while multiple properties are merged with existing ones (categories).
existingOne - the existing actionnewOne - the new action
public void remove()
ActionManager
remove in interface ActionManager
|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||