com.sap.netweaver.bc.rf.mi.variant
Interface IVariantManager
[contained in: com.sap.netweaver.bc.rf.par - bc.rf.mi_api.jar]
- All Known Subinterfaces:
- IMutableVariantManager
- public interface IVariantManager
Read-Only interface describing a repository sub manager for variants.
Resources may be stored in a repository supporting this sub manager in
different variants. A variant of a resource is a specific instance of the
resource for a specific frame of context, e.g. in a special language or of a
specific MIME type. This interface allows to access the different variants of
such "variant-enabled" resources.
|
Method Summary |
boolean |
isVariantsEnabled(IResourceHandle resourceHandle)
Return true when for the given resource handle multiple variants can be
stored. |
IResourceHandle |
lookupVariant(IRid rid)
TBD: Unknown function (concerning selection of the resource, e.g. by
special MIME type or special language different from actual user language).
|
IResourceHandle |
lookupVariant(IRid rid,
long timestamp)
TBD: Unknown function (concerning selection of the resource, e.g. by
special MIME type or special language different from actual user language).
|
isVariantsEnabled
public boolean isVariantsEnabled(IResourceHandle resourceHandle)
throws ResourceException
- Return true when for the given resource handle multiple variants can be
stored.
- Parameters:
resourceHandle - resource handle- Returns:
- true when for the given resource handle multiple variants can be
stored
- Throws:
ResourceException - when the resource handle is either invalid or
the state can't be determined
lookupVariant
public IResourceHandle lookupVariant(IRid rid)
throws ResourceException
- TBD: Unknown function (concerning selection of the resource, e.g. by
special MIME type or special language different from actual user language).
Guess: Look up variant of resource in repository by resource id and the
actual resource context.
- Parameters:
rid - resource id to be looked up- Returns:
- looked up resource variant
- Throws:
ResourceException - when the resource id is invalid or this the
resource has no variant for the given selection
lookupVariant
public IResourceHandle lookupVariant(IRid rid,
long timestamp)
throws ResourceException
- TBD: Unknown function (concerning selection of the resource, e.g. by
special MIME type or special language different from actual user language).
Guess: Look up variant of resource in repository by resource id and the
actual resource context. Return only latest matching variant not older in
version than the given timestamp.
- Parameters:
rid - resource id to be looked uptimestamp - timestamp specifying the upper bound for the returned
version- Returns:
- looked up resource variant
- Throws:
ResourceException - when the resource id is invalid or this the
resource has no variant for the given selection matching the given
timestamp upper bound
Copyright © 2004 by
SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein
as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other
countries all over the world. All other product and service names mentioned are the trademarks of their respective companies.
Data contained in this document serves informational purposes only. National product specifications may vary.
These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies
("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be
liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are
those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein
should be construed as constituting an additional warranty.