|
Enterprise Workspaces 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.workspaces.module.ModuleHelper
public final class ModuleHelper
A helper class for easy retrieval of a module context. The following sample illustrates how to use this class:
*
IModuleContext IModuleContext moduleContext = ModuleHelper.getModuleContext(request);
| Constructor Summary | |
|---|---|
ModuleHelper()
|
|
| Method Summary | |
|---|---|
static IModuleContext |
getModuleContext(IIdentifier workspaceID,
String instanceID,
com.sap.security.api.IUser user)
Deprecated. Returns the module context specified by the workspace ID, module instance ID and user, in the original locale |
static IModuleContext |
getModuleContext(IIdentifier workspaceID,
String instanceID,
com.sap.security.api.IUser user,
Locale locale)
Returns the module context specified by the workspace ID, module instance ID, user and locale |
static IModuleContext |
getModuleContext(com.sapportals.portal.prt.component.IPortalComponentRequest request)
Returns the module context specified by the current request |
static IModuleContext |
getModuleContext(String modulePCDPath,
com.sap.security.api.IUser user)
Deprecated. Returns Returns the context of a module specified by the module’s PCD path and user |
static IModuleContext |
getModuleContext(String modulePCDPath,
com.sap.security.api.IUser user,
Locale locale)
Returns the context of a module specified by the module’s PCD path, user and locale |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModuleHelper()
| Method Detail |
|---|
public static 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
public static IModuleContext getModuleContext(IIdentifier workspaceID,
String instanceID,
com.sap.security.api.IUser user,
Locale locale)
throws WorkspacesRuntimeException
workspaceID - the workspace identifiermoduleInstanceID - the module instance IDuser - the userlocale - the locale
WorkspacesRuntimeException
public static IModuleContext getModuleContext(IIdentifier workspaceID,
String instanceID,
com.sap.security.api.IUser user)
throws WorkspacesRuntimeException
workspaceID - the workspace identifiermoduleInstanceID - the module instance IDuser - the user
WorkspacesRuntimeException
public static IModuleContext getModuleContext(String modulePCDPath,
com.sap.security.api.IUser user,
Locale locale)
throws WorkspacesRuntimeException
modulePCDPath - the PCD path of the module instanceuser - the userlocale - the locale
WorkspacesRuntimeException
public static 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 | |||||||||