SAP NetWeaver '04

com.sapportals.wcm.service.urlgenerator
Interface IURLGenerator

[contained in: com.sap.netweaver.bc.rf.service.par - bc.rf.global.service.urlgenerator_api.jar]
Deprecated. as of EP 5.0 SP5, replaced by interface IURLGeneratorService

public interface IURLGenerator

Services, controls, repositories need to access resources, which are accessible only through their respective URLs. This interface offers methods to create URLs for certain resources, to build valid URLs from partial information known to the calling object by adding information from the configuration of the running system. This allows to create complete URLs, pointing to a webpage that can e.g. be included in an email or as link on another page. To obtain a valid instance of an URLGenerator, proceed as follows:

   IURLGenerator ug = (IURLGenerator)ResourceFactory.getInstance()
                                    .getServiceFactory()
                                    .getService(IServiceTypesConst.URLGENERATOR_SERVICE);
 
A standard usecase would be to offer a link on a webpage that allows the user to navigate to the details of a given resource:
   String linkreference = ug.createLinkToDetailsPageRID(resource.getRID()).toString();
 
Please note, that some of the methods will return a complete URL, including protocol and server while others may only return a relative URL. Also, some of the returned RID have a query-parameter attached, so be careful when transforming into String.

Most field variables are explained in the package-html and in the configuration framework. They are needed for the internal mapping of configuration values to the internal variables. For the method getValue , use these field variables as parameter-keys. The method will then return the value configured for this key in the configuration framework.

Copyright 2004 SAP AG

See Also:
RID

Field Summary
static java.lang.String CONFIG_CHARCLOSE
          Deprecated.  
static java.lang.String CONFIG_CHAROPEN
          Deprecated.  
static java.lang.String TAG_APPLOG_DOWNLOAD_SERVLET_PATH
          Deprecated. TAG-Variables are used as keys for the given properties
static java.lang.String TAG_APPLOG_PATH
          Deprecated.  
static java.lang.String TAG_BUSINESS_CARD_PATH
          Deprecated.  
static java.lang.String TAG_CONTENT_ACCESS_PATH
          Deprecated.  
static java.lang.String TAG_DEFAULT_CONFIG_FILE_NAME
          Deprecated.  
static java.lang.String TAG_DETAILSPAGE
          Deprecated.  
static java.lang.String TAG_ENVIRONMENT
          Deprecated.  
static java.lang.String TAG_EXPLORER_SERVLET_PATH
          Deprecated.  
static java.lang.String TAG_FAVORITES
          Deprecated.  
static java.lang.String TAG_FOLDER_ACCESS_PATH
          Deprecated.  
static java.lang.String TAG_GROUPRESOURCE
          Deprecated.  
static java.lang.String TAG_HOST
          Deprecated.  
static java.lang.String TAG_ICE_PATH
          Deprecated.  
static java.lang.String TAG_IMAGE_PATH
          Deprecated.  
static java.lang.String TAG_JBUILDER
          Deprecated. as of NW04.
static java.lang.String TAG_LINKLIST
          Deprecated.  
static java.lang.String TAG_ROLERESOURCE
          Deprecated.  
static java.lang.String TAG_SERVICE_SERVLET_PATH
          Deprecated.  
static java.lang.String TAG_TOMCAT
          Deprecated. as of NW04.
static java.lang.String TAG_USER_RESOURCE_FORMAT_PHOTO
          Deprecated.  
static java.lang.String TAG_USER_RESOURCE_FORMAT_RDF
          Deprecated.  
static java.lang.String TAG_USER_RESOURCE_FORMAT_VCARD
          Deprecated.  
static java.lang.String TAG_USERHOME
          Deprecated.  
static java.lang.String TAG_USERMAPPING_SERVLET_PATH
          Deprecated.  
static java.lang.String TAG_USERRESOURCE
          Deprecated.  
static java.lang.String TAG_VIEWER_PATH
          Deprecated.  
static java.lang.String TAG_WEBRM_ACCESS_PATH
          Deprecated.  
static java.lang.String TAG_XML_FORMS_CSS
          Deprecated.  
static java.lang.String TAG_XML_FORMS_CSS_URL
          Deprecated.  
static java.lang.String TAG_XML_FORMS_EDITSERVLET_PATH
          Deprecated.  
static java.lang.String TAG_XML_FORMS_LISTSERVLET_PATH
          Deprecated.  
static java.lang.String TAG_XML_FORMS_PREVIEWSERVLET_PATH
          Deprecated.  
static java.lang.String TAG_XML_FORMS_XFBUILDERSERVLET_PATH
          Deprecated.  
static java.lang.String USER_BRIEFCASE
          Deprecated.  
static java.lang.String USER_CLIPBOARD
          Deprecated.  
static java.lang.String USER_FAVORITES
          Deprecated.  
static java.lang.String USER_INBOX
          Deprecated.  
static java.lang.String USER_LINKS
          Deprecated.  
static java.lang.String USER_QUERIES
          Deprecated.  
static java.lang.String USER_RESOURCE_FORMAT_PHOTO
          Deprecated.  
static java.lang.String USER_RESOURCE_FORMAT_RDF
          Deprecated.  
static java.lang.String USER_RESOURCE_FORMAT_VCARD
          Deprecated.  
static java.lang.String USER_TEMP
          Deprecated.  
 
Method Summary
 URI createLinkToDetailsPage(URI resourceURI)
          Deprecated. as of EP 5.0 SP2, replaced by createLinkToDetailsPageRID(RID)
 RID createLinkToDetailsPageRID(RID resourceRID)
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getResourcePageUri(PathKey, RID, RID) with parameter constant PathKey.DETAILS_PAGE
 RID createLinkToDetailsPageRID(RID resourceRID, RID startRID)
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getResourcePageUri(PathKey, RID, RID) with parameter constant PathKey.DETAILS_PAGE
 URI createLinkToExplorerPage(URI resourceURI)
          Deprecated. as of EP 5.0 SP2, replaced by createLinkToExplorerPageRID(RID)
 RID createLinkToExplorerPageRID(RID resourceRID)
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getResourcePageUri(PathKey, RID, RID) with parameter constant PathKey.EXPLORER_PAGE
 RID createLinkToExplorerPageRID(RID resourceRID, RID startRID)
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getResourcePageUri(PathKey, RID, RID) with parameter constant PathKey.EXPLORER_PAGE
 URI createServletCall(java.util.Properties properties)
          Deprecated. as of EP 5.0 SP2, replaced by createServletCallRID(Properties)
 RID createServletCallRID(java.util.Properties properties)
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getServicePageUri(java.util.List)
 java.lang.String getAppLogDownloadPath()
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.APPLOG_DOWNLOAD_PAGE
 java.lang.String getAppLogPath()
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.APPLOG_PAGE
 URI getBusinessCardApp(com.sapportals.portal.security.usermanagement.IUser user)
          Deprecated. as of EP 5.0 SP2, replaced by getBusinessCardAppRID(IUser)
 URI getBusinessCardApp(java.lang.String uid)
          Deprecated. as of EP 5.0 SP2, replaced by getBusinessCardAppRID(String)
 RID getBusinessCardAppRID(com.sapportals.portal.security.usermanagement.IUser user)
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getBusinessCardUri(String)
 RID getBusinessCardAppRID(java.lang.String uid)
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getBusinessCardUri(String)
 RID getCompleteRIDToShowFolder(ICollection folder)
          Deprecated. as of EP 5.0 SP2, replaced by createLinkToExplorerPageRID(RID)
 URI getCompleteURIToShowFolder(ICollection folder)
          Deprecated. as of EP 5.0 SP2, replaced by getCompleteRIDToShowFolder(ICollection)
 java.lang.String getContentAccessPath()
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.CONTENT_ACCESS_PATH
 java.lang.String getDefaultConfigFile()
          Deprecated. as of NW04.
 java.lang.String getDefaultConfigFile(java.lang.String key)
          Deprecated. as of NW04.
 java.lang.String getEditServletPath()
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.XML_FORMS_EDIT_PAGE
 java.lang.String getExplorerServletPath()
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.EXPLORER_PAGE
 java.lang.String getFavorites()
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.FAVORITES_PAGE
 java.lang.String getFolderAccessPath()
          Deprecated. as of EP 5.0 SP5, this method has been removed
 URI getGroupResource(com.sapportals.portal.security.usermanagement.IGroup group)
          Deprecated. as of EP 5.0 SP2, replaced by getGroupResourceRID(IGroup)
 URI getGroupResource(java.lang.String gid)
          Deprecated. as of EP 5.0 SP2, replaced by getGroupResourceRID(String)
 RID getGroupResourceRID(com.sapportals.portal.security.usermanagement.IGroup group)
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getGroupResourceRID(IGroup)
 RID getGroupResourceRID(java.lang.String gid)
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getGroupResourceRID(String)
 java.lang.String getHost()
          Deprecated. as of EP 5.0 SP5, this method has been removed
 java.lang.String getIcePath()
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.ICE_SERVER
 java.lang.String getImage(java.lang.String filename)
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getImageUri(String)
 java.lang.String getImagePath()
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.IMAGE_PATH
 java.lang.String getLinkList()
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.LINKLIST_PAGE
 java.lang.String getListServletPath()
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.XML_FORMS_LIST_PAGE
 java.lang.String getPreviewServletPath()
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.XML_FORMS_PREVIEW_PAGE
 RID getRIDfromWebURL(URL webAddress)
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.mapUri(IUri)
 URI getRoleResource(com.sapportals.portal.security.usermanagement.IRole group)
          Deprecated. as of EP 5.0 SP2, replaced by getRoleResourceRID(IRole)
 URI getRoleResource(java.lang.String rid)
          Deprecated. as of EP 5.0 SP2, replaced by getRoleResourceRID(String)
 RID getRoleResourceRID(com.sapportals.portal.security.usermanagement.IRole role)
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRoleResourceRID(IRole)
 RID getRoleResourceRID(java.lang.String rid)
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRoleResourceRID(String)
 java.lang.String getServiceServletPath()
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.SERVICE_PAGE.
 URI getUserFolder(com.sapportals.portal.security.usermanagement.IUser user, java.lang.String folder)
          Deprecated. as of EP 5.0 SP2, replaced by getUserFolderRID(IUser, String)
 RID getUserFolderRID(com.sapportals.portal.security.usermanagement.IUser user, java.lang.String folder)
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getUserFolderRID(IUser, String)
 URI getUserHome(com.sapportals.portal.security.usermanagement.IUser user)
          Deprecated. as of EP 5.0 SP2, replaced by getUserHomeRID(IUser)
 RID getUserHomeRID(com.sapportals.portal.security.usermanagement.IUser user)
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getUserHomeRID(IUser)
 java.lang.String getUsermappingServlet(java.lang.String systemId, java.lang.String successUrl, java.lang.String failureUrl, java.lang.String cancelUrl)
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getUsermappingPageUri(String, String, String, String)
 URI getUserResource(com.sapportals.portal.security.usermanagement.IUser user)
          Deprecated. as of EP 5.0 SP2, replaced by getUserResourceRID(IUser)
 URI getUserResource(com.sapportals.portal.security.usermanagement.IUser user, java.lang.String format)
          Deprecated. as of EP 5.0 SP2, replaced by getUserResourceRID(IUser, String)
 URI getUserResource(java.lang.String uid)
          Deprecated. as of EP 5.0 SP2, replaced by getUserResourceRID(String)
 URI getUserResource(java.lang.String uid, java.lang.String format)
          Deprecated. as of EP 5.0 SP2, replaced by getUserResourceRID(String, String)
 RID getUserResourceRID(com.sapportals.portal.security.usermanagement.IUser user)
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getUserResourceRID(IUser)
 RID getUserResourceRID(com.sapportals.portal.security.usermanagement.IUser user, java.lang.String format)
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getUserResourceRID(IUser, String)
 RID getUserResourceRID(java.lang.String uid)
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getUserResourceRID(String)
 RID getUserResourceRID(java.lang.String uid, java.lang.String format)
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getUserResourceRID(String, String)
 java.lang.String getValue(java.lang.String key)
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) or IURLGeneratorService.getAbsoluteUri(PathKey)
 java.lang.String getViewerPath()
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant
 java.lang.String getXFBuilderServletPath()
          Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.XML_FORMS_XFBUILDER_PAGE
 java.lang.String replaceURIPlaceholders(java.lang.String uri, IResource resource)
          Deprecated. Replaces placeholders in URI
 java.lang.String replaceURIPlaceholders(java.lang.String uri, IResourceContext context)
          Deprecated. Replaces placeholders in URI
 

Field Detail

USER_INBOX

public static final java.lang.String USER_INBOX
Deprecated. 

USER_FAVORITES

public static final java.lang.String USER_FAVORITES
Deprecated. 

USER_LINKS

public static final java.lang.String USER_LINKS
Deprecated. 

USER_BRIEFCASE

public static final java.lang.String USER_BRIEFCASE
Deprecated. 

USER_QUERIES

public static final java.lang.String USER_QUERIES
Deprecated. 

USER_CLIPBOARD

public static final java.lang.String USER_CLIPBOARD
Deprecated. 

USER_TEMP

public static final java.lang.String USER_TEMP
Deprecated. 

USER_RESOURCE_FORMAT_RDF

public static final java.lang.String USER_RESOURCE_FORMAT_RDF
Deprecated. 

USER_RESOURCE_FORMAT_VCARD

public static final java.lang.String USER_RESOURCE_FORMAT_VCARD
Deprecated. 

USER_RESOURCE_FORMAT_PHOTO

public static final java.lang.String USER_RESOURCE_FORMAT_PHOTO
Deprecated. 

TAG_APPLOG_DOWNLOAD_SERVLET_PATH

public static final java.lang.String TAG_APPLOG_DOWNLOAD_SERVLET_PATH
Deprecated. 
TAG-Variables are used as keys for the given properties

TAG_APPLOG_PATH

public static final java.lang.String TAG_APPLOG_PATH
Deprecated. 

TAG_CONTENT_ACCESS_PATH

public static final java.lang.String TAG_CONTENT_ACCESS_PATH
Deprecated. 

TAG_DETAILSPAGE

public static final java.lang.String TAG_DETAILSPAGE
Deprecated. 

TAG_EXPLORER_SERVLET_PATH

public static final java.lang.String TAG_EXPLORER_SERVLET_PATH
Deprecated. 

TAG_FAVORITES

public static final java.lang.String TAG_FAVORITES
Deprecated. 

TAG_ICE_PATH

public static final java.lang.String TAG_ICE_PATH
Deprecated. 

TAG_IMAGE_PATH

public static final java.lang.String TAG_IMAGE_PATH
Deprecated. 

TAG_LINKLIST

public static final java.lang.String TAG_LINKLIST
Deprecated. 

TAG_SERVICE_SERVLET_PATH

public static final java.lang.String TAG_SERVICE_SERVLET_PATH
Deprecated. 

TAG_USERMAPPING_SERVLET_PATH

public static final java.lang.String TAG_USERMAPPING_SERVLET_PATH
Deprecated. 

TAG_VIEWER_PATH

public static final java.lang.String TAG_VIEWER_PATH
Deprecated. 

TAG_XML_FORMS_CSS_URL

public static final java.lang.String TAG_XML_FORMS_CSS_URL
Deprecated. 

TAG_XML_FORMS_EDITSERVLET_PATH

public static final java.lang.String TAG_XML_FORMS_EDITSERVLET_PATH
Deprecated. 

TAG_XML_FORMS_LISTSERVLET_PATH

public static final java.lang.String TAG_XML_FORMS_LISTSERVLET_PATH
Deprecated. 

TAG_XML_FORMS_PREVIEWSERVLET_PATH

public static final java.lang.String TAG_XML_FORMS_PREVIEWSERVLET_PATH
Deprecated. 

TAG_XML_FORMS_XFBUILDERSERVLET_PATH

public static final java.lang.String TAG_XML_FORMS_XFBUILDERSERVLET_PATH
Deprecated. 

TAG_BUSINESS_CARD_PATH

public static final java.lang.String TAG_BUSINESS_CARD_PATH
Deprecated. 

TAG_DEFAULT_CONFIG_FILE_NAME

public static final java.lang.String TAG_DEFAULT_CONFIG_FILE_NAME
Deprecated. 

TAG_ENVIRONMENT

public static final java.lang.String TAG_ENVIRONMENT
Deprecated. 

TAG_FOLDER_ACCESS_PATH

public static final java.lang.String TAG_FOLDER_ACCESS_PATH
Deprecated. 

TAG_HOST

public static final java.lang.String TAG_HOST
Deprecated. 

TAG_GROUPRESOURCE

public static final java.lang.String TAG_GROUPRESOURCE
Deprecated. 

TAG_ROLERESOURCE

public static final java.lang.String TAG_ROLERESOURCE
Deprecated. 

TAG_USERHOME

public static final java.lang.String TAG_USERHOME
Deprecated. 

TAG_USERRESOURCE

public static final java.lang.String TAG_USERRESOURCE
Deprecated. 

TAG_WEBRM_ACCESS_PATH

public static final java.lang.String TAG_WEBRM_ACCESS_PATH
Deprecated. 

TAG_XML_FORMS_CSS

public static final java.lang.String TAG_XML_FORMS_CSS
Deprecated. 

TAG_USER_RESOURCE_FORMAT_RDF

public static final java.lang.String TAG_USER_RESOURCE_FORMAT_RDF
Deprecated. 

TAG_USER_RESOURCE_FORMAT_VCARD

public static final java.lang.String TAG_USER_RESOURCE_FORMAT_VCARD
Deprecated. 

TAG_USER_RESOURCE_FORMAT_PHOTO

public static final java.lang.String TAG_USER_RESOURCE_FORMAT_PHOTO
Deprecated. 

CONFIG_CHAROPEN

public static final java.lang.String CONFIG_CHAROPEN
Deprecated. 

CONFIG_CHARCLOSE

public static final java.lang.String CONFIG_CHARCLOSE
Deprecated. 

TAG_JBUILDER

public static final java.lang.String TAG_JBUILDER
Deprecated. as of NW04.


TAG_TOMCAT

public static final java.lang.String TAG_TOMCAT
Deprecated. as of NW04.

Method Detail

getUserHomeRID

public RID getUserHomeRID(com.sapportals.portal.security.usermanagement.IUser user)
                   throws WcmException
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getUserHomeRID(IUser)

Returns the RID to the user's home folder.
Parameters:
user - the user we want to get the home folder for
Returns:
the RID to the user's home folder
Throws:
WcmException - Exception raised in failure situation

getUserFolderRID

public RID getUserFolderRID(com.sapportals.portal.security.usermanagement.IUser user,
                            java.lang.String folder)
                     throws WcmException
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getUserFolderRID(IUser, String)

Returns RID for a folder specified by user context and folder name.
Parameters:
user - the user in question
folder - the folder in question
Returns:
the RID to the user/folder combination
Throws:
WcmException - must be thrown, when user is null , implementations of this interface might decide to also throw the exception in additional situations

getHost

public java.lang.String getHost()
Deprecated. as of EP 5.0 SP5, this method has been removed

Returns the ServerName of the current server the VM is running on.
Returns:
the ServerName of the current server the VM is running on. When the system is running in a cluster environment, the IP-Adress of the load balancer is returned.

getServiceServletPath

public java.lang.String getServiceServletPath()
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.SERVICE_PAGE.

Returns the ServiceServletPath set for the current server the VM is running on.
Returns:
the ServiceServletPath set for the current server the VM is running on. it consists of the protocol, the host and the serviceservlet path specified in the configuration of the IURLGenerator instance, e.g. http://myserver:8080/serviceservlet

getExplorerServletPath

public java.lang.String getExplorerServletPath()
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.EXPLORER_PAGE

Returns the ExplorerServletPath set for the current server the VM is running on.
Returns:
the ExplorerServletPath set for the current server the VM is running on. It consists of the protocol, the host and the explorerservlet path specified in the configuration of the IURLGenerator instance, e.g. http://myserver:8080/explorerservlet

getAppLogDownloadPath

public java.lang.String getAppLogDownloadPath()
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.APPLOG_DOWNLOAD_PAGE

Returns the AppLogDownload set for the current server the VM is running on.
Returns:
the AppLogDownload set for the current server the VM is running on. It consists of the protocol, the host and the applogdownload path specified in the configuration of the IURLGenerator instance, e.g. http://myserver:8080/applogdownload

getAppLogPath

public java.lang.String getAppLogPath()
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.APPLOG_PAGE

Returns the AppLogPath set for the current server the VM is running on.
Returns:
the AppLogPath set for the current server the VM is running on. It consists of the protocol, the host and the applogdownload path specified in the configuration of the IURLGenerator instance, e.g. http://myserver:8080/applog

getImagePath

public java.lang.String getImagePath()
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.IMAGE_PATH

Returns the ImagePath set for the current server the VM is running on.
Returns:
the ImagePath set for the current server the VM is running on. It returns a URL that allows to download the wanted image, e.g. when displaying an image on a website. It consists of the ContentAccessPath and the repository and path information to the image folder.

getImage

public java.lang.String getImage(java.lang.String filename)
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getImageUri(String)

Returns the complete ImagePath set for the current server the VM is running on and the filename given.
Parameters:
filename - the name of the file that represents the wanted Image
Returns:
the complete ImagePath set for the current server the VM is running on and the filename given.
See Also:
getImagePath()

getContentAccessPath

public java.lang.String getContentAccessPath()
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.CONTENT_ACCESS_PATH

Returns the URL to communicate with the WebDAV server of the CM system which allows to retrieve content to e.g. display it in a webbrowser window.
Returns:
the ContentAccessPath set for the current server the VM is running on.

getFolderAccessPath

public java.lang.String getFolderAccessPath()
Deprecated. as of EP 5.0 SP5, this method has been removed

Returns an url-part to navigate to the servlet which is defined as default to display the content (= children) of a folder
Returns:
the FolderAccessPath set for the current server the VM is running on.

getIcePath

public java.lang.String getIcePath()
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.ICE_SERVER

Returns the ICE path set for the current server the VM is running on.
Returns:
the ICE path set for the current server the VM is running on.

getFavorites

public java.lang.String getFavorites()
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.FAVORITES_PAGE

Returns the FavoritesPath set for the current server the VM is running on.
Returns:
the FavoritesPath set for the current server the VM is running on.

getLinkList

public java.lang.String getLinkList()
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.LINKLIST_PAGE

Returns the LinkListPath set for the current server the VM is running on.
Returns:
the LinkListPath set for the current server the VM is running on. It consists of the protocol, the host and the linklist servlet path specified in the configuration of the IURLGenerator instance, e.g. http://myserver:8080/linklist

getListServletPath

public java.lang.String getListServletPath()
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.XML_FORMS_LIST_PAGE

Returns the XMLForms ListServletPath set for the current server the VM is running on.
Returns:
the XMLForms ListServletPath set for the current server the VM is running on.

getEditServletPath

public java.lang.String getEditServletPath()
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.XML_FORMS_EDIT_PAGE

Returns the XMLForms EditServletPath set for the current server the VM is running on.
Returns:
the XMLForms EditServletPath set for the current server the VM is running on.

getPreviewServletPath

public java.lang.String getPreviewServletPath()
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.XML_FORMS_PREVIEW_PAGE

Returns the XMLForms PreviewServletPath set for the current server the VM is running on.
Returns:
the XMLForms PreviewServletPath set for the current server the VM is running on.

getXFBuilderServletPath

public java.lang.String getXFBuilderServletPath()
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.XML_FORMS_XFBUILDER_PAGE

Returns the XMLForms XFBuilderServletPath set for the current server the VM is running on.
Returns:
the XMLForms XFBuilderServletPath set for the current server the VM is running on.

getCompleteRIDToShowFolder

public RID getCompleteRIDToShowFolder(ICollection folder)
                               throws WcmException
Deprecated. as of EP 5.0 SP2, replaced by createLinkToExplorerPageRID(RID)

Returns a complete URL to put in a mail or on a html-button to open the folder and its content
Parameters:
folder - the folder to show
Returns:
a complete URL to put in a mail or on a html-button that will open a webpage, showing the folder and its content, returns null , if resource is not a folder Please use createLinkToExplorerPage instead
Throws:
WcmException - Exception raised in failure situation

getViewerPath

public java.lang.String getViewerPath()
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) with parameter constant

Returns the url to show the content of a resource
Returns:
the ViewerPath set for the current server the VM is running on. it consists of the protocol, the host and the viewer servlet path specified in the configuration of the IURLGenerator instance, e.g. http://myserver:8080/myViewer

getValue

public java.lang.String getValue(java.lang.String key)
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRelativeUri(PathKey) or IURLGeneratorService.getAbsoluteUri(PathKey)

Returns the value mapped to the given key.
Parameters:
key - the key of the property to return. Use IURLGenerator.TAG_ constants as keys
Returns:
the value mapped to the key given. returns null , if there is no value for the given key

getDefaultConfigFile

public java.lang.String getDefaultConfigFile()
Deprecated. as of NW04.

Returns the xmlfile which is set as default in the CM configuration and used for the wdf-navigation.
Returns:
the xmlfile which is set as default in the CM configuration and used for the wdf-navigation

getDefaultConfigFile

public java.lang.String getDefaultConfigFile(java.lang.String key)
Deprecated. as of NW04.

Returns the xmlfile which is set as default in the CM configuration and used for the wdf-navigation
Parameters:
key - this is not used anymore
Returns:
the xmlfile which is set as default in the CM configuration and used for the wdf-navigation

createServletCallRID

public RID createServletCallRID(java.util.Properties properties)
                         throws WcmException
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getServicePageUri(java.util.List)

Creates a complete URL to include in emails etc to start a service. The URL will point to a certain control, which understands the given properties. It might immediately carry out some instructions (e.g. delete a resource) or display a dialog. The IWcmConst holds a whole set of parameters starting with SERVICE_SERVLET which can be used as keys or default values in the Properties parameter.
Parameters:
properties - this includes parameters as defined in the IWcmConst.ServiceServletParameters You can also use "free" key-value pairs, but have to make sure, that receiving service will know about these keys
Returns:
the Uri to call the servlet
Throws:
WcmException - Exception raised in failure situation

getUsermappingServlet

public java.lang.String getUsermappingServlet(java.lang.String systemId,
                                              java.lang.String successUrl,
                                              java.lang.String failureUrl,
                                              java.lang.String cancelUrl)
                                       throws WcmException
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getUsermappingPageUri(String, String, String, String)

Returns the URL to a usermapping maintenance servlet
Parameters:
systemId - id of the system
successUrl - URL in case of success
failureUrl - URL in case of failure
cancelUrl - URL in case user cancels
Returns:
The UsermappingServlet value
Throws:
WcmException - Exception raised in failure situation

createLinkToDetailsPageRID

public RID createLinkToDetailsPageRID(RID resourceRID)
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getResourcePageUri(PathKey, RID, RID) with parameter constant PathKey.DETAILS_PAGE

Returns a URL to navigate to the details-view of a resource. Objects of type IResource can be viewed in a special dialog, showing properties and offering services available for this resource. The returned value consists of the protocol, the host and the details page specified in the configuration of the IURLGenerator instance, e.g. http://myserver:8080/details
Parameters:
resourceRID - the RID of the resource in question
Returns:
the RID to navigate to this page

createLinkToDetailsPageRID

public RID createLinkToDetailsPageRID(RID resourceRID,
                                      RID startRID)
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getResourcePageUri(PathKey, RID, RID) with parameter constant PathKey.DETAILS_PAGE

Returns a URL to navigate to the details-view of a resource.
Parameters:
resourceRID - The RID of the resource in question
startRID - The RID which is returned as StartPath-parameter
Returns:
the RID to navigate to this page
See Also:
The additional StartUri parameter must be a parent RID of the given resource RID. It forbids a navigation to any element being a root for the given resource RID.

createLinkToExplorerPageRID

public RID createLinkToExplorerPageRID(RID resourceRID)
                                throws WcmException
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getResourcePageUri(PathKey, RID, RID) with parameter constant PathKey.EXPLORER_PAGE

Returns a URL to navigate to the explorer-view of a collection. Objects of type ICollection can be viewed in a special dialog, showing child resources, navigation information etc. The returned value consists of the protocol, the host and the explorer page specified in the configuration of the IURLGenerator instance, e.g. http://myserver:8080/explorer
Parameters:
resourceRID - The Rid of the resource in question
Returns:
the RID to navigate to this page
Throws:
WcmException - Exception raised in failure situation. Is thrown when resourceRID is null .

createLinkToExplorerPageRID

public RID createLinkToExplorerPageRID(RID resourceRID,
                                       RID startRID)
                                throws WcmException
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getResourcePageUri(PathKey, RID, RID) with parameter constant PathKey.EXPLORER_PAGE

Returns a URL to navigate to the explorer-view of a collection
Parameters:
resourceRID - The Rid of the resource in question
startRID - The Rid which is returned as StartPath-parameter
Returns:
the RID to navigate to this page
Throws:
WcmException - Exception raised in failure situation. Is thrown when resourceRID is null .
See Also:
The additional StartUri parameter must be a parent RID of the given resource RID. It forbids a navigation to any element being a root for given resource RID. gets RID to show explorer page of resource

getUserResourceRID

public RID getUserResourceRID(com.sapportals.portal.security.usermanagement.IUser user)
                       throws WcmException
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getUserResourceRID(IUser)

Gets a resource RID representing a user
Parameters:
user - the user to get the RID for
Returns:
The RID to a corresponding user resource
Throws:
WcmException - Exception raised in failure situation

getUserResourceRID

public RID getUserResourceRID(com.sapportals.portal.security.usermanagement.IUser user,
                              java.lang.String format)
                       throws WcmException
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getUserResourceRID(IUser, String)

Gets a resource RID representing a user or user information in a specific format
Parameters:
user - the user in question
format - the wanted format
Returns:
The RID to a corresponding user resource
Throws:
WcmException - Exception raised in failure situation

getUserResourceRID

public RID getUserResourceRID(java.lang.String uid)
                       throws WcmException
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getUserResourceRID(String)

Gets a resource RID representing a user
Parameters:
uid - the id of the user
Returns:
The RID to a corresponding user resource
Throws:
WcmException - Exception raised in failure situation

getUserResourceRID

public RID getUserResourceRID(java.lang.String uid,
                              java.lang.String format)
                       throws WcmException
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getUserResourceRID(String, String)

Gets a resource URI representing a user or user information in a specific format
Parameters:
uid - the id of the user
format - the format wanted
Returns:
The URI to a corresponding user resource
Throws:
WcmException - Exception raised in failure situation

getGroupResourceRID

public RID getGroupResourceRID(com.sapportals.portal.security.usermanagement.IGroup group)
                        throws WcmException
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getGroupResourceRID(IGroup)

Gets a resource RID representing a group
Parameters:
group - the group in question
Returns:
The RID to a corresponding group collection resource
Throws:
WcmException - Exception raised in failure situation

getGroupResourceRID

public RID getGroupResourceRID(java.lang.String gid)
                        throws WcmException
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getGroupResourceRID(String)

Gets a resource RID representing a group
Parameters:
gid - the id of the group
Returns:
The URI to a corresponding group collection resource
Throws:
WcmException - Exception raised in failure situation

getRoleResourceRID

public RID getRoleResourceRID(com.sapportals.portal.security.usermanagement.IRole role)
                       throws WcmException
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRoleResourceRID(IRole)

Gets a resource RID representing a role
Parameters:
role - the role in question
Returns:
The URI to a corresponding role collection resource
Throws:
WcmException - Exception raised in failure situation

getRoleResourceRID

public RID getRoleResourceRID(java.lang.String rid)
                       throws WcmException
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getRoleResourceRID(String)

Gets a resource RID representing a role
Parameters:
rid - The id of the role
Returns:
The RID to a corresponding role collection resource
Throws:
WcmException - Exception raised in failure situation

getBusinessCardAppRID

public RID getBusinessCardAppRID(com.sapportals.portal.security.usermanagement.IUser user)
                          throws WcmException
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getBusinessCardUri(String)

Gets a resource RID for bringing up a business card for a user
Parameters:
user -  
Returns:
The RID to a corresponding service
Throws:
WcmException - Exception raised in failure situation

getBusinessCardAppRID

public RID getBusinessCardAppRID(java.lang.String uid)
                          throws WcmException
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.getBusinessCardUri(String)

Gets a resource RID for bringing up a business card for a user
Parameters:
uid - The id of the user
Returns:
The RID to a corresponding service
Throws:
WcmException - Exception raised in failure situation

replaceURIPlaceholders

public java.lang.String replaceURIPlaceholders(java.lang.String uri,
                                               IResourceContext context)
                                        throws ResourceException
Deprecated. 
Replaces placeholders in URI
Parameters:
uri - the uri to replace the placeholders in
context - the present context of the user who called this method
Returns:
TBD: Description of the outgoing return value
Throws:
ResourceException - Exception raised in failure situation

replaceURIPlaceholders

public java.lang.String replaceURIPlaceholders(java.lang.String uri,
                                               IResource resource)
                                        throws ResourceException
Deprecated. 
Replaces placeholders in URI
Parameters:
uri -  
resource -  
Returns:
TBD: Description of the outgoing return value
Throws:
ResourceException - Exception raised in failure situation

getUserFolder

public URI getUserFolder(com.sapportals.portal.security.usermanagement.IUser user,
                         java.lang.String folder)
                  throws WcmException
Deprecated. as of EP 5.0 SP2, replaced by getUserFolderRID(IUser, String)

methods with old URI-interface *********************************************************************************** Gets URI for a folder specified by user context and folder name
Parameters:
user - TBD: Description of the incoming method parameter
folder - TBD: Description of the incoming method parameter
Returns:
the URI to the user/folder combination
Throws:
WcmException - Exception raised in failure situation

getUserHome

public URI getUserHome(com.sapportals.portal.security.usermanagement.IUser user)
                throws WcmException
Deprecated. as of EP 5.0 SP2, replaced by getUserHomeRID(IUser)

Parameters:
user -  
Returns:
the URI to the user's home folder
Throws:
WcmException - Exception raised in failure situation

getCompleteURIToShowFolder

public URI getCompleteURIToShowFolder(ICollection folder)
                               throws WcmException
Deprecated. as of EP 5.0 SP2, replaced by getCompleteRIDToShowFolder(ICollection)

Parameters:
folder -  
Returns:
a complete URL to put in a mail or on a html-button that will open a webpage, showing the folder and its content, returns NULL, if resource is not a folder Please use createLinkToExplorerPage instead
Throws:
WcmException - Exception raised in failure situation

createServletCall

public URI createServletCall(java.util.Properties properties)
                      throws WcmException
Deprecated. as of EP 5.0 SP2, replaced by createServletCallRID(Properties)

creates a complete URL to include in emails etc to start a service
Parameters:
properties - this includes parameters as defined in the IWcmConst.ServiceServletParameters You can also use "free" key-value pairs, but have to make sure, that receiving service will know about these keys creates a complete URL to include in emails etc to start a service
Returns:
the Uri to call the servlet
Throws:
WcmException - Exception raised in failure situation

createLinkToDetailsPage

public URI createLinkToDetailsPage(URI resourceURI)
Deprecated. as of EP 5.0 SP2, replaced by createLinkToDetailsPageRID(RID)

gets URI to show details page of resource
Parameters:
resourceURI -  
Returns:
the URI to navigate to this page

createLinkToExplorerPage

public URI createLinkToExplorerPage(URI resourceURI)
                             throws WcmException
Deprecated. as of EP 5.0 SP2, replaced by createLinkToExplorerPageRID(RID)

gets URI to show explorer page of resource
Parameters:
resourceURI -  
Returns:
the URI to navigate to this page
Throws:
WcmException - Exception raised in failure situation

getUserResource

public URI getUserResource(com.sapportals.portal.security.usermanagement.IUser user)
                    throws WcmException
Deprecated. as of EP 5.0 SP2, replaced by getUserResourceRID(IUser)

Get a resource URI representing a user
Parameters:
user -  
Returns:
The URI to a corresponding user resource
Throws:
WcmException - Exception raised in failure situation

getUserResource

public URI getUserResource(com.sapportals.portal.security.usermanagement.IUser user,
                           java.lang.String format)
                    throws WcmException
Deprecated. as of EP 5.0 SP2, replaced by getUserResourceRID(IUser, String)

Get a resource RID representing a user or user information in a specific format
Parameters:
user - the user in question
format - the wanted format
Returns:
The RID to a corresponding user resource
Throws:
WcmException - Exception raised in failure situation

getUserResource

public URI getUserResource(java.lang.String uid)
                    throws WcmException
Deprecated. as of EP 5.0 SP2, replaced by getUserResourceRID(String)

Get a resource URI representing a user
Parameters:
uid -  
Returns:
The URI to a corresponding user resource
Throws:
WcmException - Exception raised in failure situation

getUserResource

public URI getUserResource(java.lang.String uid,
                           java.lang.String format)
                    throws WcmException
Deprecated. as of EP 5.0 SP2, replaced by getUserResourceRID(String, String)

Get a resource URI representing a user or user information in a specific format
Parameters:
uid - the id of the user
format - the format wanted
Returns:
The URI to a corresponding user resource
Throws:
WcmException - Exception raised in failure situation

getGroupResource

public URI getGroupResource(com.sapportals.portal.security.usermanagement.IGroup group)
                     throws WcmException
Deprecated. as of EP 5.0 SP2, replaced by getGroupResourceRID(IGroup)

Get a resource URI representing a group
Parameters:
group -  
Returns:
The URI to a corresponding group collection resource
Throws:
WcmException - Exception raised in failure situation

getGroupResource

public URI getGroupResource(java.lang.String gid)
                     throws WcmException
Deprecated. as of EP 5.0 SP2, replaced by getGroupResourceRID(String)

Get a resource URI representing a group
Parameters:
gid -  
Returns:
The URI to a corresponding group collection resource
Throws:
WcmException - Exception raised in failure situation

getRoleResource

public URI getRoleResource(com.sapportals.portal.security.usermanagement.IRole group)
                    throws WcmException
Deprecated. as of EP 5.0 SP2, replaced by getRoleResourceRID(IRole)

Get a resource URI representing a role
Parameters:
group -  
Returns:
The URI to a corresponding role collection resource
Throws:
WcmException - Exception raised in failure situation

getRIDfromWebURL

public RID getRIDfromWebURL(URL webAddress)
Deprecated. as of EP 5.0 SP5, replaced by IURLGeneratorService.mapUri(IUri)

Converts a given web URL in a RID of preset repository manager.
Parameters:
webAddress - a URL object to be converted
Returns:
RID object with converted web url

getRoleResource

public URI getRoleResource(java.lang.String rid)
                    throws WcmException
Deprecated. as of EP 5.0 SP2, replaced by getRoleResourceRID(String)

Get a resource URI representing a role
Parameters:
rid -  
Returns:
The URI to a corresponding role collection resource
Throws:
WcmException - Exception raised in failure situation

getBusinessCardApp

public URI getBusinessCardApp(com.sapportals.portal.security.usermanagement.IUser user)
                       throws WcmException
Deprecated. as of EP 5.0 SP2, replaced by getBusinessCardAppRID(IUser)

Get a resource URI for bringing up a business card for a user
Parameters:
user -  
Returns:
The URI to a corresponding service
Throws:
WcmException - Exception raised in failure situation

getBusinessCardApp

public URI getBusinessCardApp(java.lang.String uid)
                       throws WcmException
Deprecated. as of EP 5.0 SP2, replaced by getBusinessCardAppRID(String)

Get a resource URI for bringing up a business card for a user
Parameters:
uid -  
Returns:
The URI to a corresponding service
Throws:
WcmException - Exception raised in failure situation

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.