|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentMappingLocator
This interface can be used for searching specific content mappings based on
various filter criteria. 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<ContentMapping> |
findContentMappingsByContentId(java.lang.String contentId)
Returns all content mappings mapped directly to a given content ID. |
IterableListModel<ContentMapping> |
findContentMappingsByContentPath(java.lang.String contentPath)
Returns all content mappings mapped directly to a given content path value (no path prefix matching is performed). |
ContentMapping |
findSystemContentMappingByContentID(java.lang.String contentId)
Returns the system content mapping mapped directly to a given content ID. |
ContentMapping |
findSystemContentMappingByContentPath(java.lang.String contentPath)
Returns the system content mapping mapped directly to a given content path value (no path prefix matching is performed). |
LongestPathMatch |
getLongestPathMatch(java.util.List<java.lang.String> contentPathElementIDs,
Identifiable currentResource)
This method locates content mappings based on a specific content resource. |
LongestPathMatch |
getLongestPathMatch(java.util.List<java.lang.String> contentPathElementIDs,
Identifiable currentResource,
ContentMappingFilter filter)
This method locates content mappings based on a specific content resource. |
Method Detail |
---|
LongestPathMatch getLongestPathMatch(java.util.List<java.lang.String> contentPathElementIDs, Identifiable currentResource) throws ContentMappingException
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.currentResource
- The current users currently selected portal resource. This
parameter may be null
.
LongestPathMatch
object containing the match
result. This method never returns null
.
ContentMappingException
ContentMappingLocator#findContentMappingByLongestPathMatch(String,
List, Identifiable)
LongestPathMatch getLongestPathMatch(java.util.List<java.lang.String> contentPathElementIDs, Identifiable currentResource, ContentMappingFilter filter) throws ContentMappingException
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.currentResource
- The current users currently selected portal resource. This
parameter may be null
.filter
- A ContentMappingFilter to filter the mappings that map to a
page which is visible to the current user.
LongestPathMatch
object containing the match
result. This method never returns null
.
ContentMappingException
ContentMappingLocator#findContentMappingByLongestPathMatch(String,
List, Identifiable)
IterableListModel<ContentMapping> findContentMappingsByContentPath(java.lang.String contentPath) throws ContentMappingDataBackendException
null
contentPath
- The path to the content resource.
ContentMappingDataBackendException
IterableListModel<ContentMapping> findContentMappingsByContentId(java.lang.String contentId) throws ContentMappingDataBackendException
null
.
contentId
- The ID of the content resource.
ContentMappingDataBackendException
ContentMapping findSystemContentMappingByContentID(java.lang.String contentId) throws ContentMappingDataBackendException
null
.
contentId
- The ID of the content resource.
null
.
ContentMappingDataBackendException
- the content mapping data backend exceptionContentMapping findSystemContentMappingByContentPath(java.lang.String contentPath) throws ContentMappingDataBackendException
null
.
contentPath
- The path of the content resource.
null
.
ContentMappingDataBackendException
- the content mapping data backend exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |