Modifier and Type | Field and Description |
---|---|
static String |
RESOURCETYPEREGISTRY_SERVICE |
Modifier and Type | Method and Description |
---|---|
IResourceType |
get(IResource resource)
Deprecated.
as of NW04. Renamed because of problems with overloading resolution, use
getViaResource(IResource) instead. |
IResourceType |
get(String typeId)
Returns the resource type with the specified identifier.
|
IResourceType |
get(String typeId,
boolean isCollection)
Returns the resource type with the specified identifier, but limited to
either plain resource or collection types, as opposed to
get(String) . |
IResourceType[] |
getResourceTypes()
Returns all resource types, and an empty array if no resource types have
been registered.
|
IResourceType[] |
getResourceTypes(boolean isCollection)
Returns either all plain resource or all collection types, depending on
the value of the parameter
isCollection , and an empty array
if no such resource types have been registered. |
IResourceType |
getViaResource(IResource resource)
Returns the resource type of the specified resource.
|
IResourceType |
getViaResource(IResource resource,
boolean resolveInternalLinks)
Returns the resource type of the specified resource.
|
getDescription, getDescription, getID
static final String RESOURCETYPEREGISTRY_SERVICE
IResourceType get(String typeId)
null
or empty, the resource type configured as normal
resource type is returned. If the identifier is unknown,
IResourceType.UNKNOWN_RESOURCE_TYPE
is returned. As opposed to
get(String, boolean)
, it is not checked whether the specified
resource type describes a plain resource or a collection.typeId
- Identifier of the resource typeIResourceType get(String typeId, boolean isCollection)
get(String)
. That is, a call of
IResourceType.isCollection()
on the result is guaranteed to yield
the value of the parameter isCollection
. If the identifier is
null
or empty, the resource type configured as normal
resource type or normal collection type is returned, depending on the
value of the parameter isCollection
. If the identifier,
limited to either plain resource or collection types, is unknown,
IResourceType.UNKNOWN_RESOURCE_TYPE
or
IResourceType.UNKNOWN_COLLECTION_TYPE
is returned, depending on
the value of the parameter isCollection
.typeId
- Identifier of the resource typeisCollection
- true
iff a collection type is requestedIResourceType get(IResource resource)
getViaResource(IResource)
instead.get(String, boolean)
with
resource.getResourceType()
and
resource.isCollection()
as arguments.resource
- ResourceIResourceType getViaResource(IResource resource)
get(String, boolean)
with
resource.getResourceType()
and
resource.isCollection()
as arguments.resource
- ResourceIResourceType getViaResource(IResource resource, boolean resolveInternalLinks)
get(IResource)
but on demand resolves internal links before determining the resource type.resource
- ResourceresolveInternalLinks
- true
iff internal links are to
be resolved before returning the resource
typeIResourceType[] getResourceTypes()
IResourceType[] getResourceTypes(boolean isCollection)
isCollection
, and an empty array
if no such resource types have been registered.isCollection
- true
iff collections types are requestedisCollection
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
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