public class ResourceURLCreator extends Object
htmlb-Link
. Depending on the parameters and
the resource itself, the IObjectTypeHandlerService
is used to
calculate the valid targetModifier and Type | Class and Description |
---|---|
static class |
ResourceURLCreator.TargetType
Deprecated.
As of NetWeaver 7.1
|
Modifier and Type | Field and Description |
---|---|
static String |
BROKEN_LINK_PAGE
Deprecated.
|
static ResourceURLCreator.TargetType |
DETAILS
Deprecated.
|
static String |
START_URI
Deprecated.
|
static ResourceURLCreator.TargetType |
VIEW
Deprecated.
|
Constructor and Description |
---|
ResourceURLCreator(IResource res)
Deprecated.
As of NetWeaver 7.1
|
ResourceURLCreator(IResource res,
ICollection start)
Deprecated.
As of NetWeaver 7.1
|
ResourceURLCreator(IResource res,
RID start)
Deprecated.
As of NetWeaver 7.1
|
Modifier and Type | Method and Description |
---|---|
String |
getURL(ResourceURLCreator.TargetType type,
boolean useOTH)
Deprecated.
As of NetWeaver 7.1
|
public static final String START_URI
public static final String BROKEN_LINK_PAGE
public static final ResourceURLCreator.TargetType VIEW
public static final ResourceURLCreator.TargetType DETAILS
public ResourceURLCreator(IResource res, ICollection start) throws WcmException
res
- the resource to create a target link for. Must not be null
start
- defines how far back in the hierarchy the user is allowed to browse. If
start is null
or it is not an ancestor of the given resource, a debug
information will be added to the log and the resource itself will be used as the
maximum hierarchy level for navigation. If the resource is not an ICollection
,
the resource's parent collection will be used instead.WcmException
- if the framework can not retrieve the RID
from one of the resourcespublic ResourceURLCreator(IResource res) throws WcmException
res
- the resource to create a target link for. Must not be null
. The
resource itself will be the maximum hierarchy the user can browse to. If the resource is
not an ICollection
, it's parent will be used as maximum hierarchy.WcmException
- if the framework can not retrieve the RID
from one of the resourcespublic ResourceURLCreator(IResource res, RID start) throws WcmException
res
- the resource to create a target link for. Must not be null
start
- defines how far back in the hierarchy the user is allowed to browse. If
start is null
or it is not an ancestor of the given resource, a debug
information will be added to the log and the resource itself will be used as the
maximum hierarchy level for navigation. If the resource is not an ICollection
,
the resource's parent collection will be used instead.WcmException
- if the framework can not retrieve the RID
from the resourcepublic String getURL(ResourceURLCreator.TargetType type, boolean useOTH) throws WcmException
type
- defines what kind of target is needed for the resource, e.g. viewing or
details, must not be null
.useOTH
- enables or disables OTH usageWcmException
- when an exception occurs in the repository frameworkAccess Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com]
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice