|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.tc.webdynpro.clientserver.portal.WDPortalUtils
WDPortalUtils contains some helper functions for the portal environment.
Type Classification:
This class is part of the Web Dynpro API, so applications may reference it or call any method of this type, but they must not subclass it.
For a detailed explanation of API classification see the Web Dynpro Compatibility Guide| Nested Class Summary | |
static interface |
WDPortalUtils.IWDPortalUtils
|
| Method Summary | |
static String |
getPortalApplicationURL(String jndiPath)
Returns the relative URL to the speficied portal application. |
static String |
getPortalWebResourceURL(String resourcePath)
Returns the relative web resource path to a resources stored as part of a portal component. |
static Object |
getService(WDPortalServiceType type)
Returns an instance of the specified portal service. |
static Object |
getServiceReference(String serviceName)
Returns an instance of the specified portal service or NULL if this service could not be found. |
static Object |
getServiceReference(String serviceName,
Hashtable environment)
Returns an instance of the specified portal service or NULL if this service could not be found. |
static boolean |
isRunningInPortal()
Checks whether or not the Web Dynpro application is running the the portal environment or not. |
static Object |
lookup(String serviceName)
Returns a reference to the specified portal service or NULL if this service could not be found. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static boolean isRunningInPortal()
public static Object lookup(String serviceName)
serviceName - the name of the portal service
public static Object getServiceReference(String serviceName)
Context.INITIAL_CONTEXT_FACTORY
with value "com.sapportals.portal.prt.registry.PortalRegistryFactory".
serviceName - the full-qualfied name of the portal service
public static Object getServiceReference(String serviceName,
Hashtable environment)
serviceName - the full-qualfied name of the portal serviceenvironment - the used environment for the JNDI lookup to get the instance of the specified portal service
public static Object getService(WDPortalServiceType type)
type - the requested portal service.
public static String getPortalWebResourceURL(String resourcePath)
resourcePath - the resource path like "com.sap.portal.pcd.roleservice/images/role.gif"
public static String getPortalApplicationURL(String jndiPath)
jndiPath - the portal application described as an JNDI lookup string like "pcd:portal_content/kermit/url"
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||