|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISearchManager
Search Interface which honors security placed on nodes. Node link properties are not currently supported in a search expression. Note: new methods may be added to this interface periodically -- therefore, this not a good CM extension point. The recommended extension point is at the Service Provider Interface, in package com.bea.content.spi
Method Summary | |
---|---|
ISortableFilterablePagedList<ID> |
idSearch(ContentContext context,
Search search)
Performs a search in the content repository and returns a list of all ID's of matching nodes in the system. |
void |
indexContentByPath(ContentContext context,
String path)
Index content by path. |
void |
indexContentByType(ContentContext context,
ID typeId)
Index content by type. |
ISortableFilterablePagedList<Node> |
postSearchSort(ContentContext context,
Search search)
Perform a search in the content repository, then sorts the results. |
ISortableFilterablePagedList<Node> |
search(ContentContext context,
Search search)
Perform a search in the content repository. |
Method Detail |
---|
ISortableFilterablePagedList<Node> search(ContentContext context, Search search) throws RepositoryException
context
- The content context objectsearch
- The search object
RepositoryException
- If an error happens in searchISortableFilterablePagedList<Node> postSearchSort(ContentContext context, Search search) throws RepositoryException
For example, the BEA Repository can normally only sort system properties and any manually-added explicit properties (properties mapped to a column on the CM_NODE table). Other node properties cannot normally be sorted on.
If sorting on non system properties, this method works will only return correct results if the sortcritiera includes sorting properties which are single valued
If no sortCriteria is specified, it will not sort the results. The sort criteria must be specified
as part of the search object. If specified as a ContextKey
on the
ContentContext
, then the sorting will be performed by the paging subsystem instead of the VCR. The
paging subsystem does not sort on implicit property values out of the box, so it is important to specify
the parameters to this method appropriately.
context
- The content context objectsearch
- The search object
RepositoryException
- If an error happens in searchISortableFilterablePagedList<ID> idSearch(ContentContext context, Search search) throws RepositoryException
context
- The ContentContext objectsearch
- The search object
RepositoryException
- If an error happens in searchvoid indexContentByPath(ContentContext context, String path) throws RepositoryException
context
- The ContentContext objectpath
- The path of the node on which to start the index operation.
RepositoryException
- If an error happensvoid indexContentByType(ContentContext context, ID typeId) throws RepositoryException
typeId
- The id of the type.
RepositoryException
- If an error happens
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |