|
Enterprise Workspaces 1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IModuleContextFactory
Returns the runtime context of module instance. The module context can be used only by module instances. Other components, such as module templates, cannot use it. The following example illustrates retrieving 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)
Returns the context of a module specified by the workspace ID, module instance ID and user |
IModuleContext |
getModuleContext(com.sapportals.portal.prt.component.IPortalComponentRequest request)
Returns the context of a module specified by the current request |
IModuleContext |
getModuleContext(String moduleInstancePcdUrl,
com.sap.security.api.IUser user)
Returns the context of a module specified by the moduleInstancePcdUrl and user |
| Method Detail |
|---|
IModuleContext getModuleContext(com.sapportals.portal.prt.component.IPortalComponentRequest request)
throws WorkspacesRuntimeException
request - the current request. If an error occurs or the current running component is not a module instance, an exception is thrown
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)
throws WorkspacesRuntimeException
workspaceID - the workspace identifiermoduleInstanceID - the module instance unique IDuser - the user
WorkspacesRuntimeException
IModuleContext getModuleContext(String moduleInstancePcdUrl,
com.sap.security.api.IUser user)
throws WorkspacesRuntimeException
moduleInstancePcdUrl - the pcd path of the module instanceuser - the user
WorkspacesRuntimeException
|
Enterprise Workspaces 1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||