public interface ITypeManager
This behaviour allows resources with the given limited interface of a standard resource handle to be "casted" to other objects with a specific interface, e.g. to a customer or contract or whatever.
It is also possible, to get a default instance for a resource handle, i.e. to "cast" a resource to a default type. This is useful for access layers not knowing what to access but needing the real object behind it in order to give it away to another layer not knowing the repository framework, but being able to handle instances of the default type.Created 28. Januar 2003
Modifier and Type | Method and Description |
---|---|
Object |
as(IResourceHandle resourceHandle,
Class requestedType)
Get resource AS instance of the given requested type ("cast").
|
boolean |
isA(IResourceHandle resourceHandle,
Class requestedType)
Check if resource IS An or providing an instance of the given requested
type ("instanceof").
|
boolean isA(IResourceHandle resourceHandle, Class requestedType) throws ResourceException
resourceHandle
- resource handlerequestedType
- requested type (or null for implicit default type)ResourceException
- when either the resource handle is invalid or
the lookup wasn't successfulObject as(IResourceHandle resourceHandle, Class requestedType) throws ResourceException
resourceHandle
- resource handlerequestedType
- requested type (or null for implicit default type)ResourceException
- when either the resource handle is invalid or
the lookup wasn't successfulAccess 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