|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ifs.search.SearchSpecification | +--oracle.ifs.search.AttributeSearchSpecification | +--oracle.ifs.search.ContextSearchSpecification
A ContextSearchSpecification represents a Search on both Attributes and Content. The SearchQualification (SearchTree) of a ContextSearchSpecification should have at least one ContextQualification.
The user must also specify the Class on which the ContextQualifications are to be applied.
The user can also specify the Media on which the Text Queries are to be performed. If the Media are not specified, the Searched Media are determined by the Policy on the Searched Class.
The Text Query of each ContextQualification is applied on each Media. The result will contain entries from all the Media. The Media rows will be joined with the ContextClass, so that only the Content of objects in the ContextClass is considered. Otherwise, there is nothing special about what is returned by a Context Search. For every result row, the conditions defined by the SearchTree must hold.
Constructor Summary | |
ContextSearchSpecification()
|
Method Summary | |
java.lang.String |
getContextClassname()
Gets the Context Search Class name. |
oracle.ifs.beans.Media[] |
getMedia(LibrarySession sess)
Returns the set of Media objects, which will be searched over. |
void |
setContextClassname(java.lang.String cn)
Set the Class to be used for Text Queries. |
void |
setMedia(oracle.ifs.beans.Media[] media)
Explicitly sets the Media to search over. |
Methods inherited from class oracle.ifs.search.AttributeSearchSpecification |
getSearchClassSpecification, getSearchQualification, getSearchSortSpecification, setSearchClassSpecification, setSearchQualification, setSearchSortSpecification |
Constructor Detail |
public ContextSearchSpecification()
Method Detail |
public void setMedia(oracle.ifs.beans.Media[] media) throws IfsException
media
- list of media objectsIfsException
- if media are invalid.public oracle.ifs.beans.Media[] getMedia(LibrarySession sess) throws IfsException
sess
- Session used to find Media objects.IfsException
- if operation failspublic void setContextClassname(java.lang.String cn) throws IfsException
cn
- Text Queries in ContextQualifications are applied on the content
of objects of this class.IfsException
- if the operation failspublic java.lang.String getContextClassname() throws IfsException
IfsException
- if the operation fails
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |