|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface describing a repository manager. A repository manager is the main unit, needed to integrate a repository into the repository framework.
| Method Summary | |
java.lang.String |
getId()
Get the unique id of the repository manager (usually assigned and made unique through the configuration framework). |
NameInfo |
getNameInfo()
Get the NameInfo of a repository manager. |
java.lang.String |
getRidPrefix()
Get the root token of a resource id, this resource manager claims responsibility for. |
java.util.Map |
getSubManagers()
Get map of sub managers indexed by sub manager interface, e.g. a repository manager with a content and property sub manager implemented in one class and a separate security sub manager implemented in another class, returns a map with the content and property sub manager added twice via the content sub manager interface and the property sub manager interface and the security sub manager via the security sub manager interface. |
java.util.Set |
getSupportedOptions(IResourceHandle resourceHandle)
Get set of options this repository manager supports. |
IResourceHandle |
lookup(IRid rid)
Look up a resource in this repository by resource identifer. |
java.util.List |
lookup(java.util.List ridList,
boolean contentToBeFetched,
java.util.List propertyNamesToBeFetched)
Look up resources in repository by list of resource ids and prefetch content and certain properties when requested. Note: This method needs not to be handled atomically! |
java.util.List |
lookup(java.util.List ridList,
java.util.Map content,
java.util.Map properties,
java.lang.String[] permissionNames)
Look up resources in repository by list of resource ids and check thereby for the given permission names. |
| Method Detail |
public java.lang.String getId()
public java.lang.String getRidPrefix()
public NameInfo getNameInfo()
NameInfo of a repository manager. The NameInfo
contains information about the restrictions for resource and collection
names.public java.util.Map getSubManagers()
public IResourceHandle lookup(IRid rid)
throws ResourceException
null if the resource does not exist.rid - resource identifier to be looked up.null if the resource with the
specified RID does not exist. null must be returned only
if the resource definitively does not exist; if the lookup fails for
some other reason (e.g. internal error, invalid RID) an appropriate
exception such as ServiceNotAvailableException must be thrown.ResourceException - if the RID is invalid or the lookup failed.
public java.util.List lookup(java.util.List ridList,
boolean contentToBeFetched,
java.util.List propertyNamesToBeFetched)
throws ResourceException,
OperationNotCompletedException
ridList - list of resource ids to be looked upcontentToBeFetched - flag indicating whether or not content should
prefetched; content not prefetched must still be available via
subsequent IContentManager callspropertyNamesToBeFetched - list of property names to be prefetched;
properties not prefetched must still be available via subsequent
IPropertyManager callsResourceException - Exception raised in failure situationOperationNotCompletedException - when the operation failed in
parts
public java.util.List lookup(java.util.List ridList,
java.util.Map content,
java.util.Map properties,
java.lang.String[] permissionNames)
throws ResourceException,
OperationNotCompletedException
ridList - list of resource ids to be looked upcontent - map of content to be used for the returned resources, where
the key is the RID and the value is the contentproperties - map of properties to be used for the returned resources,
where the key is the RID and the value is a list of propertiespermissionNames - array of permission names to be checked for or null
or empty for no checkResourceException - Exception raised in failure situationOperationNotCompletedException - when the operation failed in
partspublic java.util.Set getSupportedOptions(IResourceHandle resourceHandle)
resourceHandle - resource handle
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||