|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
The resource factory has methods to create resource objects (IResource) and to access the manager and service factories.
IManagerFactory,
Copyright (c) SAP Portals Europe GmbH 2001
| Method Summary | |
boolean |
checkExistence(com.sapportals.wcm.util.uri.RID rid,
IResourceContext context)
Returns true if a resource exists for the given resource
identifier. |
com.sapportals.wcm.repository.filter.IFilterFactory |
getFilterFactory()
Returns a instance of the FilterFactory |
com.sapportals.wcm.repository.manager.IManagerFactory |
getManagerFactory()
Returns a instance of the ManagerFactory |
java.lang.Object |
getObject(com.sapportals.wcm.util.uri.RID rid,
IResourceContext context,
java.lang.Class asClass)
Returns a resource object converted into a semantic object for the given resource identifier and context. |
IResource |
getResource(com.sapportals.wcm.util.uri.RID rid,
boolean resolveInternalLinks,
IResourceContext context)
Returns a resource object instance for the given RID and context. |
IResource |
getResource(com.sapportals.wcm.util.uri.RID rid,
IResourceContext context)
Returns a resource object instance for the given resource identifier and context. |
IResource |
getResource(com.sapportals.wcm.util.uri.RID rid,
IResourceContext context,
boolean createCollections)
Returns a resource object instance for the given RID and context. |
IResourceList |
getResources(com.sapportals.wcm.util.uri.IRidList ridList,
java.util.Map propertyMaps,
com.sapportals.wcm.repository.ResourceErrors errors,
IResourceContext context)
Returns a list of resource instances for a list of resource identifiers and possible {@IPropertyMap}s for the resources. |
IResourceList |
getResources(com.sapportals.wcm.util.uri.IRidList ridList,
java.util.Map propertyMaps,
com.sapportals.wcm.repository.ResourceErrors errors,
java.lang.String[] permissionNames,
IResourceContext context)
Returns a list of resource instances for a list of resource identifiers and possible {@IPropertyMap}s for the resources. |
IResourceList |
getResources(com.sapportals.wcm.util.uri.IRidList ridList,
com.sapportals.wcm.repository.ResourceErrors errors,
IResourceContext context)
Returns a list of resource instances for an array of resource identifiers. |
IResourceList |
getResources(com.sapportals.wcm.util.uri.IRidList ridList,
com.sapportals.wcm.repository.ResourceErrors errors,
java.lang.String[] permissionNames,
IResourceContext context)
Returns a list of resource instances for an array of resource identifiers and removes resources without the specified permission(s) from the result list. |
IResourceContext |
getServiceContext()
Returns a new resource context for services with an anonymous user |
IResourceContext |
getServiceContext(java.lang.String userID)
Returns a new resource context for services with an anonymous user |
IRepositoryServiceFactory |
getServiceFactory()
Returns a instance of the ServiceFactory |
| Method Detail |
public boolean checkExistence(com.sapportals.wcm.util.uri.RID rid,
IResourceContext context)
throws com.sapportals.wcm.repository.ResourceException,
com.sapportals.wcm.repository.AuthorizationRequiredException
true if a resource exists for the given resource
identifier.rid - The RID to checkcontext - The resource contextcom.sapportals.wcm.repository.ResourceException - Exception raised in failure situationcom.sapportals.wcm.repository.AuthorizationRequiredException - Exception raised in failure
situation
public com.sapportals.wcm.repository.filter.IFilterFactory getFilterFactory()
throws com.sapportals.wcm.repository.ResourceException
com.sapportals.wcm.repository.ResourceException - Exception raised in failure situation
public com.sapportals.wcm.repository.manager.IManagerFactory getManagerFactory()
throws com.sapportals.wcm.repository.ResourceException
com.sapportals.wcm.repository.ResourceException - Exception raised in failure situation
public java.lang.Object getObject(com.sapportals.wcm.util.uri.RID rid,
IResourceContext context,
java.lang.Class asClass)
throws com.sapportals.wcm.repository.ResourceException
rid - TBD: Description of the incoming method parametercontext - TBD: Description of the incoming method parameterasClass - TBD: Description of the incoming method parametercom.sapportals.wcm.repository.ResourceException - Exception raised in failure situation
public IResource getResource(com.sapportals.wcm.util.uri.RID rid,
boolean resolveInternalLinks,
IResourceContext context)
throws com.sapportals.wcm.repository.ResourceException
rid - The RID of the resourceresolveInternalLinks - true : If the RID contains
internal links to collections the framework will find and return the
target resource. In this case the RID of the returned resource will
not be equal to the specified RID parameter. false : If
the RID contains internal links to collections a
InternalLinkException exception is thrown.context - The resource context objectcom.sapportals.wcm.repository.ResourceException - Exception raised in failure situationIResource.getRID(),
IResource.getAccessRID()
public IResource getResource(com.sapportals.wcm.util.uri.RID rid,
IResourceContext context)
throws com.sapportals.wcm.repository.ResourceException
getResource(rid, true,
context) . Returns null if the resource does not exist.rid - The resource identifier of the resource.context - The resource context.null is returned only
if the resource definitively does not exist. If it can not be created
by the repositoy for some other reason (e.g. internal error) an
appropriate exception such as ServiceUnavailableException will
be throwncom.sapportals.wcm.repository.ResourceException - Exception raised in failure situation
public IResource getResource(com.sapportals.wcm.util.uri.RID rid,
IResourceContext context,
boolean createCollections)
throws com.sapportals.wcm.repository.ResourceException
rid - The RID of the resourcecreateCollections - If the resource does not exists create a new
collection with that name. All collections in the path will be
created.context - The resource context objectcom.sapportals.wcm.repository.ResourceException - Exception raised in failure situation
public IResourceList getResources(com.sapportals.wcm.util.uri.IRidList ridList,
java.util.Map propertyMaps,
com.sapportals.wcm.repository.ResourceErrors errors,
IResourceContext context)
throws com.sapportals.wcm.repository.ResourceException
Repositories are however encouraged to sacrifice exactness for speed, e.g. prefer the client supplied properties compared to (maybe costly) resource lookups and validations.
ridList - A list of resource identifiers. The list can contain RIDs
from different managers.propertyMaps - a map holding an IPropertyMap with the resource
identifier {@RID} as key.errors - A reference to a ResourceErrors instance. If
this is null all exceptions will be ignored.context - The resource contextcom.sapportals.wcm.repository.ResourceException - Exception raised in failure situation
public IResourceList getResources(com.sapportals.wcm.util.uri.IRidList ridList,
java.util.Map propertyMaps,
com.sapportals.wcm.repository.ResourceErrors errors,
java.lang.String[] permissionNames,
IResourceContext context)
throws com.sapportals.wcm.repository.ResourceException
Repositories are however encouraged to sacrifice exactness for speed, e.g. prefer the client supplied properties compared to (maybe costly) resource lookups and validations.
ridList - A list of resource identifiers. The list can contain RIDs
from different managers.propertyMaps - a map holding an IPropertyMap with the resource
identifier {@RID} as key.errors - A reference to a ResourceErrors instance. If
this is null all exceptions will be ignored.permissionNames - An array of permission names. Permission name
constants are defined in IPermission.context - The resource contextcom.sapportals.wcm.repository.ResourceException - Exception raised in failure situation
public IResourceList getResources(com.sapportals.wcm.util.uri.IRidList ridList,
com.sapportals.wcm.repository.ResourceErrors errors,
IResourceContext context)
throws com.sapportals.wcm.repository.ResourceException
ResourceErrors instance.ridList - A list of resource identifiers. The list can contain RIDs
from different managers.errors - A reference to a ResourceErrors instance. If
this is null all exceptions will be ignored.context - The resource contextcom.sapportals.wcm.repository.ResourceException - Exception raised in failure situation
public IResourceList getResources(com.sapportals.wcm.util.uri.IRidList ridList,
com.sapportals.wcm.repository.ResourceErrors errors,
java.lang.String[] permissionNames,
IResourceContext context)
throws com.sapportals.wcm.repository.ResourceException
ridList - A list of resource identifiers. The list can contain RIDs
from different managers.errors - A reference to a ResourceErrors instance. If
this is null all exceptions will be ignored.permissionNames - An array of permission names. Permission name
constants are defined in IPermission.context - The resource contextcom.sapportals.wcm.repository.ResourceException - Exception raised in failure situation
public IResourceContext getServiceContext()
throws com.sapportals.wcm.repository.ResourceException
com.sapportals.wcm.repository.ResourceException - on error
public IResourceContext getServiceContext(java.lang.String userID)
throws com.sapportals.wcm.repository.ResourceException
userID - the ID of the service user accountcom.sapportals.wcm.repository.ResourceException - on error
public IRepositoryServiceFactory getServiceFactory()
throws com.sapportals.wcm.repository.ResourceException
com.sapportals.wcm.repository.ResourceException - Exception raised in failure situation
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||