public class ActionService extends DefaultComponent implements ActionManager
| Modifier and Type | Field and Description |
|---|---|
static ComponentName |
ID |
| Constructor and Description |
|---|
ActionService() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(ComponentContext context)
Activates the component.
|
boolean |
checkFilter(String filterId,
ActionContext context)
Returns false if given filter evaluation is supposed to deny access when
checking for this filter.
|
void |
deactivate(ComponentContext context)
Deactivates the component.
|
Action |
getAction(String actionId) |
Action |
getAction(String actionId,
ActionContext context,
boolean hideUnavailableAction)
Returns action with given id, evaluating its filters in given context,
and returning null if filters evaluation denies access or if action is
not found.
|
ActionRegistry |
getActionRegistry()
Deprecated.
since 5.5: use interface methods on ActionManager instead of
public methods on ActionService.
|
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()
Deprecated.
since 5.5: use interface methods on ActionManager instead of
public methods on ActionService.
|
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
|
applicationStarted, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterExtensionpublic static final ComponentName ID
public void activate(ComponentContext context)
ComponentThis method is 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 is called by the runtime when a component is deactivated.
deactivate in interface Componentdeactivate in class DefaultComponentcontext - the runtime context@Deprecated public final ActionRegistry getActionRegistry()
@Deprecated public final ActionFilterRegistry getFilterRegistry()
public List<Action> getActions(String category, ActionContext context)
ActionManagerOnly actions available in the given context are returned
getActions in interface ActionManagerpublic List<Action> getAllActions(String category)
ActionManagergetAllActions in interface ActionManagerpublic List<Action> getActions(String category, ActionContext context, boolean hideUnavailableActions)
ActionManagerIf hideUnavailableActions, all actions of the category are returned but actions are flagged with an available flag depending on filters evaluation.
getActions in interface ActionManagerpublic Action getAction(String actionId, ActionContext context, boolean hideUnavailableAction)
ActionManagerIf hideUnavailableActions is false, the action is always returned but it is flagged with an available flag depending on filters evaluation.
getAction in interface ActionManagerpublic Action getAction(String actionId)
getAction in interface ActionManagerpublic boolean isRegistered(String actionId)
isRegistered in interface ActionManagerpublic boolean isEnabled(String actionId, ActionContext context)
isEnabled in interface ActionManagerpublic boolean isEnabled(Action action, ActionContext context)
public ActionFilter[] getFilters(String actionId)
getFilters in interface ActionManagerpublic boolean checkFilter(String filterId, ActionContext context)
ActionManagercheckFilter in interface ActionManagerpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution in class DefaultComponentExceptionpublic void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
unregisterContribution in class DefaultComponentException@Deprecated public void unregisterFilterFactory(FilterFactory ff)
ff - public void remove()
ActionManagerremove in interface ActionManagerCopyright © 2013 Nuxeo SA. All Rights Reserved.