|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
IURLGeneratorService
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
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 |
public static final java.lang.String USER_INBOX
public static final java.lang.String USER_FAVORITES
public static final java.lang.String USER_LINKS
public static final java.lang.String USER_BRIEFCASE
public static final java.lang.String USER_QUERIES
public static final java.lang.String USER_CLIPBOARD
public static final java.lang.String USER_TEMP
public static final java.lang.String USER_RESOURCE_FORMAT_RDF
public static final java.lang.String USER_RESOURCE_FORMAT_VCARD
public static final java.lang.String USER_RESOURCE_FORMAT_PHOTO
public static final java.lang.String TAG_APPLOG_DOWNLOAD_SERVLET_PATH
public static final java.lang.String TAG_APPLOG_PATH
public static final java.lang.String TAG_CONTENT_ACCESS_PATH
public static final java.lang.String TAG_DETAILSPAGE
public static final java.lang.String TAG_EXPLORER_SERVLET_PATH
public static final java.lang.String TAG_FAVORITES
public static final java.lang.String TAG_ICE_PATH
public static final java.lang.String TAG_IMAGE_PATH
public static final java.lang.String TAG_LINKLIST
public static final java.lang.String TAG_SERVICE_SERVLET_PATH
public static final java.lang.String TAG_USERMAPPING_SERVLET_PATH
public static final java.lang.String TAG_VIEWER_PATH
public static final java.lang.String TAG_XML_FORMS_CSS_URL
public static final java.lang.String TAG_XML_FORMS_EDITSERVLET_PATH
public static final java.lang.String TAG_XML_FORMS_LISTSERVLET_PATH
public static final java.lang.String TAG_XML_FORMS_PREVIEWSERVLET_PATH
public static final java.lang.String TAG_XML_FORMS_XFBUILDERSERVLET_PATH
public static final java.lang.String TAG_BUSINESS_CARD_PATH
public static final java.lang.String TAG_DEFAULT_CONFIG_FILE_NAME
public static final java.lang.String TAG_ENVIRONMENT
public static final java.lang.String TAG_FOLDER_ACCESS_PATH
public static final java.lang.String TAG_HOST
public static final java.lang.String TAG_GROUPRESOURCE
public static final java.lang.String TAG_ROLERESOURCE
public static final java.lang.String TAG_USERHOME
public static final java.lang.String TAG_USERRESOURCE
public static final java.lang.String TAG_WEBRM_ACCESS_PATH
public static final java.lang.String TAG_XML_FORMS_CSS
public static final java.lang.String TAG_USER_RESOURCE_FORMAT_RDF
public static final java.lang.String TAG_USER_RESOURCE_FORMAT_VCARD
public static final java.lang.String TAG_USER_RESOURCE_FORMAT_PHOTO
public static final java.lang.String CONFIG_CHAROPEN
public static final java.lang.String CONFIG_CHARCLOSE
public static final java.lang.String TAG_JBUILDER
public static final java.lang.String TAG_TOMCAT
| Method Detail |
public RID getUserHomeRID(com.sapportals.portal.security.usermanagement.IUser user)
throws WcmException
IURLGeneratorService.getUserHomeRID(IUser)
user - the user we want to get the home folder forWcmException - Exception raised in failure situation
public RID getUserFolderRID(com.sapportals.portal.security.usermanagement.IUser user,
java.lang.String folder)
throws WcmException
IURLGeneratorService.getUserFolderRID(IUser, String)
user - the user in questionfolder - the folder in questionWcmException - must be thrown, when user is null ,
implementations of this interface might decide to also throw the
exception in additional situationspublic java.lang.String getHost()
public java.lang.String getServiceServletPath()
IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.SERVICE_PAGE.
IURLGenerator
instance, e.g. http://myserver:8080/serviceservletpublic java.lang.String getExplorerServletPath()
IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.EXPLORER_PAGE
IURLGenerator instance, e.g.
http://myserver:8080/explorerservletpublic java.lang.String getAppLogDownloadPath()
IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.APPLOG_DOWNLOAD_PAGE
IURLGenerator
instance, e.g. http://myserver:8080/applogdownloadpublic java.lang.String getAppLogPath()
IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.APPLOG_PAGE
IURLGenerator
instance, e.g. http://myserver:8080/applogpublic java.lang.String getImagePath()
IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.IMAGE_PATH
ContentAccessPath and the repository and path information to
the image folder.public java.lang.String getImage(java.lang.String filename)
IURLGeneratorService.getImageUri(String)
filename - the name of the file that represents the wanted ImagegetImagePath()public java.lang.String getContentAccessPath()
IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.CONTENT_ACCESS_PATH
public java.lang.String getFolderAccessPath()
public java.lang.String getIcePath()
IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.ICE_SERVER
public java.lang.String getFavorites()
IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.FAVORITES_PAGE
public java.lang.String getLinkList()
IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.LINKLIST_PAGE
IURLGenerator
instance, e.g. http://myserver:8080/linklistpublic java.lang.String getListServletPath()
IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.XML_FORMS_LIST_PAGE
public java.lang.String getEditServletPath()
IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.XML_FORMS_EDIT_PAGE
public java.lang.String getPreviewServletPath()
IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.XML_FORMS_PREVIEW_PAGE
public java.lang.String getXFBuilderServletPath()
IURLGeneratorService.getRelativeUri(PathKey) with parameter constant PathKey.XML_FORMS_XFBUILDER_PAGE
public RID getCompleteRIDToShowFolder(ICollection folder)
throws WcmException
createLinkToExplorerPageRID(RID)
folder - the folder to shownull
, if resource is not a folder Please use
createLinkToExplorerPage insteadWcmException - Exception raised in failure situationpublic java.lang.String getViewerPath()
IURLGeneratorService.getRelativeUri(PathKey) with parameter constant
IURLGenerator
instance, e.g. http://myserver:8080/myViewerpublic java.lang.String getValue(java.lang.String key)
IURLGeneratorService.getRelativeUri(PathKey) or IURLGeneratorService.getAbsoluteUri(PathKey)
key - the key of the property to return. Use IURLGenerator.TAG_
constants as keysnull , if
there is no value for the given keypublic java.lang.String getDefaultConfigFile()
public java.lang.String getDefaultConfigFile(java.lang.String key)
key - this is not used anymore
public RID createServletCallRID(java.util.Properties properties)
throws WcmException
IURLGeneratorService.getServicePageUri(java.util.List)
IWcmConst holds a whole set of
parameters starting with SERVICE_SERVLET which can be used as
keys or default values in the Properties parameter.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 keysWcmException - Exception raised in failure situation
public java.lang.String getUsermappingServlet(java.lang.String systemId,
java.lang.String successUrl,
java.lang.String failureUrl,
java.lang.String cancelUrl)
throws WcmException
IURLGeneratorService.getUsermappingPageUri(String, String, String,
String)
systemId - id of the systemsuccessUrl - URL in case of successfailureUrl - URL in case of failurecancelUrl - URL in case user cancelsWcmException - Exception raised in failure situationpublic RID createLinkToDetailsPageRID(RID resourceRID)
IURLGeneratorService.getResourcePageUri(PathKey, RID, RID) with parameter constant PathKey.DETAILS_PAGE
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/detailsresourceRID - the RID of the resource in question
public RID createLinkToDetailsPageRID(RID resourceRID,
RID startRID)
IURLGeneratorService.getResourcePageUri(PathKey, RID, RID) with parameter constant PathKey.DETAILS_PAGE
resourceRID - The RID of the resource in questionstartRID - The RID which is returned as StartPath-parameterThe 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.
public RID createLinkToExplorerPageRID(RID resourceRID)
throws WcmException
IURLGeneratorService.getResourcePageUri(PathKey, RID, RID) with parameter constant PathKey.EXPLORER_PAGE
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/explorerresourceRID - The Rid of the resource in questionWcmException - Exception raised in failure situation. Is thrown
when resourceRID is null .
public RID createLinkToExplorerPageRID(RID resourceRID,
RID startRID)
throws WcmException
IURLGeneratorService.getResourcePageUri(PathKey, RID, RID) with parameter constant PathKey.EXPLORER_PAGE
resourceRID - The Rid of the resource in questionstartRID - The Rid which is returned as StartPath-parameterWcmException - Exception raised in failure situation. Is thrown
when resourceRID is null .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
public RID getUserResourceRID(com.sapportals.portal.security.usermanagement.IUser user)
throws WcmException
IURLGeneratorService.getUserResourceRID(IUser)
user - the user to get the RID forWcmException - Exception raised in failure situation
public RID getUserResourceRID(com.sapportals.portal.security.usermanagement.IUser user,
java.lang.String format)
throws WcmException
IURLGeneratorService.getUserResourceRID(IUser, String)
user - the user in questionformat - the wanted formatWcmException - Exception raised in failure situation
public RID getUserResourceRID(java.lang.String uid)
throws WcmException
IURLGeneratorService.getUserResourceRID(String)
uid - the id of the userWcmException - Exception raised in failure situation
public RID getUserResourceRID(java.lang.String uid,
java.lang.String format)
throws WcmException
IURLGeneratorService.getUserResourceRID(String, String)
uid - the id of the userformat - the format wantedWcmException - Exception raised in failure situation
public RID getGroupResourceRID(com.sapportals.portal.security.usermanagement.IGroup group)
throws WcmException
IURLGeneratorService.getGroupResourceRID(IGroup)
group - the group in questionWcmException - Exception raised in failure situation
public RID getGroupResourceRID(java.lang.String gid)
throws WcmException
IURLGeneratorService.getGroupResourceRID(String)
gid - the id of the groupWcmException - Exception raised in failure situation
public RID getRoleResourceRID(com.sapportals.portal.security.usermanagement.IRole role)
throws WcmException
IURLGeneratorService.getRoleResourceRID(IRole)
role - the role in questionWcmException - Exception raised in failure situation
public RID getRoleResourceRID(java.lang.String rid)
throws WcmException
IURLGeneratorService.getRoleResourceRID(String)
rid - The id of the roleWcmException - Exception raised in failure situation
public RID getBusinessCardAppRID(com.sapportals.portal.security.usermanagement.IUser user)
throws WcmException
IURLGeneratorService.getBusinessCardUri(String)
user - WcmException - Exception raised in failure situation
public RID getBusinessCardAppRID(java.lang.String uid)
throws WcmException
IURLGeneratorService.getBusinessCardUri(String)
uid - The id of the userWcmException - Exception raised in failure situation
public java.lang.String replaceURIPlaceholders(java.lang.String uri,
IResourceContext context)
throws ResourceException
uri - the uri to replace the placeholders incontext - the present context of the user who called this methodResourceException - Exception raised in failure situation
public java.lang.String replaceURIPlaceholders(java.lang.String uri,
IResource resource)
throws ResourceException
uri - resource - ResourceException - Exception raised in failure situation
public URI getUserFolder(com.sapportals.portal.security.usermanagement.IUser user,
java.lang.String folder)
throws WcmException
getUserFolderRID(IUser,
String)
user - TBD: Description of the incoming method parameterfolder - TBD: Description of the incoming method parameterWcmException - Exception raised in failure situation
public URI getUserHome(com.sapportals.portal.security.usermanagement.IUser user)
throws WcmException
getUserHomeRID(IUser)
user - WcmException - Exception raised in failure situation
public URI getCompleteURIToShowFolder(ICollection folder)
throws WcmException
getCompleteRIDToShowFolder(ICollection)
folder - WcmException - Exception raised in failure situation
public URI createServletCall(java.util.Properties properties)
throws WcmException
createServletCallRID(Properties)
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
serviceWcmException - Exception raised in failure situationpublic URI createLinkToDetailsPage(URI resourceURI)
createLinkToDetailsPageRID(RID)
resourceURI -
public URI createLinkToExplorerPage(URI resourceURI)
throws WcmException
createLinkToExplorerPageRID(RID)
resourceURI - WcmException - Exception raised in failure situation
public URI getUserResource(com.sapportals.portal.security.usermanagement.IUser user)
throws WcmException
getUserResourceRID(IUser)
user - WcmException - Exception raised in failure situation
public URI getUserResource(com.sapportals.portal.security.usermanagement.IUser user,
java.lang.String format)
throws WcmException
getUserResourceRID(IUser,
String)
user - the user in questionformat - the wanted formatWcmException - Exception raised in failure situation
public URI getUserResource(java.lang.String uid)
throws WcmException
getUserResourceRID(String)
uid - WcmException - Exception raised in failure situation
public URI getUserResource(java.lang.String uid,
java.lang.String format)
throws WcmException
getUserResourceRID(String, String)
uid - the id of the userformat - the format wantedWcmException - Exception raised in failure situation
public URI getGroupResource(com.sapportals.portal.security.usermanagement.IGroup group)
throws WcmException
getGroupResourceRID(IGroup)
group - WcmException - Exception raised in failure situation
public URI getGroupResource(java.lang.String gid)
throws WcmException
getGroupResourceRID(String)
gid - WcmException - Exception raised in failure situation
public URI getRoleResource(com.sapportals.portal.security.usermanagement.IRole group)
throws WcmException
getRoleResourceRID(IRole)
group - WcmException - Exception raised in failure situationpublic RID getRIDfromWebURL(URL webAddress)
IURLGeneratorService.mapUri(IUri)
webAddress - a URL object to be convertedRID object with converted web url
public URI getRoleResource(java.lang.String rid)
throws WcmException
getRoleResourceRID(String)
rid - WcmException - Exception raised in failure situation
public URI getBusinessCardApp(com.sapportals.portal.security.usermanagement.IUser user)
throws WcmException
getBusinessCardAppRID(IUser)
user - WcmException - Exception raised in failure situation
public URI getBusinessCardApp(java.lang.String uid)
throws WcmException
getBusinessCardAppRID(String)
uid - WcmException - Exception raised in failure situation
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||