com.sap.workspaces.workspace
Class AbstractControlModuleMenu
java.lang.Object
com.sap.workspaces.workspace.AbstractControlModuleMenu
- All Implemented Interfaces:
- IWorkspacesService
public abstract class AbstractControlModuleMenu
- extends Object
- implements IWorkspacesService
Extend this class to centrally control menus of all modules in workspaces.
You can add, remove or reorder the custom view options of each module;
the standard ‘Settings’ and ‘Delete’ options are not affected.
Your implementation will be called each time a module is loaded on a page.
- Since:
- 1.1 SP02
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractControlModuleMenu
public AbstractControlModuleMenu()
getViewOptions
public abstract ViewOption[] getViewOptions(IModuleID moduleID,
ViewOption[] viewOptions,
com.sap.security.api.IUser user,
Locale locale)
- Controls the list of custom view options in a module’s menu.
The method receives an array of existing view options of a module,
implemented as a
ViewOption module extension.
In the method’s implementation, you can define and add other view options,
or remove any existing custom option , as well as change their order.
You can apply additional business logic based on the received parameters.
- Parameters:
moduleID - the ID of the module to which the view options are addedviewOptions - an array of existing custom view options; empty if no
custom options existuser - the current userlocale - the current locale
- Returns:
- A modified array of the view options for the specified module.
Return an empty array to indicates that no custom options should be available.
Copyright 2013 SAP AG Complete Copyright Notice