|
SAP NetWeaver 7.31 (SP01) KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IVariantManager
Read-only interface defining a repository sub-manager for resource variants. It provides access to logical and
physical variant resources. A repository manager may support variant and non-variant resources in the same repository
instance - this means isA( might not return ILogicalVariantResource.class)true
for all resources.
The manager has access to the variant context as a map of properties which is attached to the access context ().
To support applications not aware of variants the repository should be able to work with a default context if the
variant context is missing. The repository should also be able to use default values for missing properties.
Alternative in both cased: throw an IAccessContext.getVariantContext() .
Because the variant context may contain properties of other repository types, unknown properties have to be ignored.
If a property name is known but the type does not match or the value is not allowed, an
InvalidVariantContextException has to be thrown.
InvalidVariantContextException
ILogicalVariantResource,
IPhysicalVariantResource| Method Summary | |
|---|---|
List |
findPhysicalResources(IResourceHandle logicalResourceHandle,
Map contextProperties)
Returns a list of all physical resources which match the given map of context-relevant properties. |
Map |
getAllInvariantProperties(IResourceHandle logicalResourceHandle)
Returns a map of all invariant properties of the logical resource. |
IProperty |
getInvariantProperty(IResourceHandle logicalResourceHandle,
IPropertyName propertyName)
Returns the specified invariant property or null if it does not exist. |
Map |
getListedInvariantProperties(IResourceHandle logicalResourceHandle,
List propertyNameList)
Returns a map of invariant properties with the specified names. |
IResourceHandle |
getLogicalResource(IResourceHandle physicalResourceHandle)
Returns the logical resource handle the physical resource handle belongs to - must not be null. |
IResourceHandle |
getPhysicalResource(IResourceHandle logicalResourceHandle)
Returns the physical resource handle that was the result of the context resolution for the given logical resource handle (at the time when the logical resource handle was created). |
boolean |
isLogicalResource(IResourceHandle handle)
Returns true if the given handle refers to a logical resource. |
boolean |
isPhysicalResource(IResourceHandle handle)
Returns true if the given handle refers to a physical resource. |
| Method Detail |
|---|
boolean isPhysicalResource(IResourceHandle handle)
throws ResourceException
true if the given handle refers to a physical resource.
handle - A resource handle
true if the given handle refers to a physical resource.
ResourceException
boolean isLogicalResource(IResourceHandle handle)
throws ResourceException
true if the given handle refers to a logical resource.
handle - A resource handle
true if the given handle refers to a logical resource.
ResourceException
IResourceHandle getPhysicalResource(IResourceHandle logicalResourceHandle)
throws ResourceException
logicalResourceHandle -
ResourceException
IResourceHandle getLogicalResource(IResourceHandle physicalResourceHandle)
throws ResourceException
null.
physicalResourceHandle -
null.
ResourceException
List findPhysicalResources(IResourceHandle logicalResourceHandle,
Map contextProperties)
throws ResourceException,
OperationNotSupportedException
null the list must contain all existing physical
resources (at least one). If one of the properties in the map is not a known context property an exception
has to be thrown.
logicalResourceHandle - The handle of a logical resource.contextProperties - A map of context properties to be used as a search condition. Map keys:
IPropertyName Map values
IProperty
null.
ResourceException - If one of the properties in the map is not a known context property.
OperationNotSupportedException
Map getAllInvariantProperties(IResourceHandle logicalResourceHandle)
throws ResourceException
logicalResourceHandle -
IPropertyName, values = IProperty. The map may be
empty but not null.
ResourceException
Map getListedInvariantProperties(IResourceHandle logicalResourceHandle,
List propertyNameList)
throws ResourceException
logicalResourceHandle - propertyNameList - A list of property names - must not be null. Names of non-invariant properties are
ignored.
IPropertyName, values = IProperty. The map may be
empty but not null.
ResourceException
IProperty getInvariantProperty(IResourceHandle logicalResourceHandle,
IPropertyName propertyName)
throws ResourceException
null if it does not exist.
logicalResourceHandle - propertyName -
null if it does not exist.
ResourceException| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
|
SAP NetWeaver 7.31 (SP01) KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||