|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceLocator
This interface can be used for searching portal resources based on existing content mappings.
This interface is thread safe and can be cached.
An instance of this interface can be obtained via the ContentMappingInfoHome
interface.
ContentMappingInfoHome
Method Summary | |
---|---|
IterableListModel<ObjectID> |
findAllResourcesByObjectType(ObjectType objectType)
Returns the ObjectIDs of all portal resources of a given object type contained in the current virtual portal that are mapped to at least one content resource. |
IterableListModel<ObjectID> |
findResourcesByContentId(java.lang.String contentId)
Returns all portal resources mapped directly to the given content ID. |
IterableListModel<ObjectID> |
findResourcesByContentPath(java.lang.String contentPath)
Returns all portal resources mapped directly to the given contentPath (no path prefix matching is performed). |
IterableListModel<ObjectID> |
findResourcesByLongestPathMatch(java.util.List<java.lang.String> contentPathElementIDs)
This method locates portal resources mapped to a specific content resource. |
IterableListModel<ObjectID> |
findResourcesByObjectTypeOrderedByLastModified(ObjectType objectType,
int beginIndex,
int endIndex)
Returns the ObjectIDs for a sub sequence of all portal resources of a given object type contained in the current virtual portal that are mapped to at least one content resource. |
Method Detail |
---|
IterableListModel<ObjectID> findResourcesByLongestPathMatch(java.util.List<java.lang.String> contentPathElementIDs) throws ContentMappingDataBackendException, MalformedContentPathException
contentPathElementIDs
- The ordered list of content ID values identifying the content resources contained in the path from the resource's content root resource to the resource.
E.g. for a resource identified by a content path of /a/b/c it would be a list of length 3, containing the content ID values of the resources /a, /a/b and /a/b/c in the given order.
ObjectID
values. If no mapped resources exist, an empty list model is returned.
Example: Assume the following resource mappings:
ContentMappingDataBackendException
- In case there is a problem while acessing persitent storage.
MalformedContentPathException
- In case the provided path value is not a valid content path.IterableListModel<ObjectID> findResourcesByContentPath(java.lang.String contentPath) throws ContentMappingDataBackendException
null
contentPath
- The path to the content resource.
ContentMappingDataBackendException
IterableListModel<ObjectID> findResourcesByContentId(java.lang.String contentId) throws ContentMappingDataBackendException
null
contentId
- The ID of the content resource.
ContentMappingDataBackendException
IterableListModel<ObjectID> findAllResourcesByObjectType(ObjectType objectType) throws ContentMappingDataBackendException, MalformedContentPathException
objectType
- The object type (e.g. ObjectTypeConstants.CONTENT_NODE.getType())
ContentMappingDataBackendException
MalformedContentPathException
IterableListModel<ObjectID> findResourcesByObjectTypeOrderedByLastModified(ObjectType objectType, int beginIndex, int endIndex) throws ContentMappingDataBackendException, MalformedContentPathException
objectType
- The object type (e.g. ObjectTypeConstants.CONTENT_NODE.getType())beginIndex
- The index of the first item to returnendIndex
- The index of the first item that is not returned but truncated.
ContentMappingDataBackendException
MalformedContentPathException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |