|
Enterprise Workspaces 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IModuleContextFactory
Provides methods to access the runtime context of a module instance. The following example illustrates retrieval of the module context using the API calls:
IWorkspacesRuntime runtime = RuntimeFactory.getWorkspacesRuntime();
IModuleContextFactory contextFactory = runtime.getService(IModuleContextFactory.class);
IModuleContext context = contextFactory.getModuleContext(request);
| Method Summary | |
|---|---|
IModuleContext |
getModuleContext(IIdentifier workspaceID,
String moduleInstanceID,
com.sap.security.api.IUser user)
Deprecated. Returns the context of a module specified by the workspace, module and user, in the original locale |
IModuleContext |
getModuleContext(IIdentifier workspaceID,
String moduleInstanceID,
com.sap.security.api.IUser user,
Locale locale)
Returns the context of a module specified by the workspace, module, user and locale |
IModuleContext |
getModuleContext(com.sapportals.portal.prt.component.IPortalComponentRequest request)
Returns the context of a module specified by the current request |
IModuleContext |
getModuleContext(String modulePCDPath,
com.sap.security.api.IUser user)
Deprecated. Returns the context of a module specified by the module’s PCD path and user, in the original locale |
IModuleContext |
getModuleContext(String modulePCDPath,
com.sap.security.api.IUser user,
Locale locate)
Returns the context of a module specified by the module’s PCD path, user and locale |
| Method Detail |
|---|
IModuleContext getModuleContext(com.sapportals.portal.prt.component.IPortalComponentRequest request)
throws WorkspacesRuntimeException
request - the current request
WorkspacesRuntimeException - if an error occurs or the current running component is not a module instance
IModuleContext getModuleContext(IIdentifier workspaceID,
String moduleInstanceID,
com.sap.security.api.IUser user,
Locale locale)
throws WorkspacesRuntimeException
workspaceID - the workspace identifiermoduleInstanceID - the module instance IDuser - the userlocale - the locale
WorkspacesRuntimeException
IModuleContext getModuleContext(IIdentifier workspaceID,
String moduleInstanceID,
com.sap.security.api.IUser user)
throws WorkspacesRuntimeException
workspaceID - the workspace identifiermoduleInstanceID - the module instance IDuser - the user
WorkspacesRuntimeException
IModuleContext getModuleContext(String modulePCDPath,
com.sap.security.api.IUser user,
Locale locate)
throws WorkspacesRuntimeException
modulePCDPath - the PCD path of the module instanceuser - the userlocale - the locale
WorkspacesRuntimeException
IModuleContext getModuleContext(String modulePCDPath,
com.sap.security.api.IUser user)
throws WorkspacesRuntimeException
modulePCDPath - the PCD path of the module instanceuser - the user
WorkspacesRuntimeException
|
Enterprise Workspaces 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||