|
Oracle Content Management SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ifs.search.SearchQualification | +--oracle.ifs.search.FolderRestrictQualification
The FolderRestrictQualification(FRQ) represents a condition to restrict the Search to a particular area of the folder Hierarchy. FRQs apply only to classes that can be foldered.
A FRQ is represented by the Search Class and a Folder. The Folder represents the root of the hierarchy under consideration. Users can also specify the depth of the Search. For e.g. a depth of 2 implies only objects that are upto 2 levels below the Start Folder should be considered. The default is to consider objects to an unlimited depth. Search class is used to specify the class that is being looked for in the folder.
Note that late binding is not supported for the specification of the starting folder. FRQs are converted into a SubSelect containing a 'connect-by' clause in SQL. Such queries are expensive, and should be used judiciously.
// // Usage Examples // // Simple Folder restriction condition // Get all documents that are under a particular folder FolderRestrictQualification frq1 = new FoldereRestrictQualification(); Folder startFolder; frq1.setStartFolder(startFolder); frq1.setSearchClassname(Document.CLASS_NAME); // // If you prefer to use the AttributeValue, then use this. // AttributeValue av = AttributeValue.newAttributeValue(startFolder); frq1.setStartFolder(av); // // To search for all Public objects that are foldered, // frq1.setSearchClassName(PublicObject.CLASS_NAME);
Fields inherited from class oracle.ifs.search.SearchQualification |
LATE_BIND_OPER |
Constructor Summary | |
FolderRestrictQualification()
Constructs a FolderRestrictQualification. |
Method Summary | |
java.lang.String |
getSearchClassname()
Returns the name of the search class. |
Folder |
getStartingFolder(LibrarySession session)
Returns the start folder |
boolean |
isMultiLevel()
Return whether the search is for items directly in the starting folder, or at any level below the starting folder. |
void |
setMultiLevel(boolean multiLevel)
Sets whether the search is for items directly in the starting folder, or at any level below the starting folder. |
void |
setSearchClassname(java.lang.String className)
Sets the SearchClass. |
void |
setStartFolder(AttributeValue av)
Sets the startFolder. |
void |
setStartFolder(Folder folder)
Sets the startFolder. |
Methods inherited from class oracle.ifs.search.SearchQualification |
clone |
Constructor Detail |
public FolderRestrictQualification()
Method Detail |
public void setSearchClassname(java.lang.String className)
className
- The class of the attributeSearchSpecification
,
SearchClassSpecification
public java.lang.String getSearchClassname()
public void setStartFolder(AttributeValue av) throws IfsException
value
- the start Folder.IfsException
- 22002 if value is null.public void setStartFolder(Folder folder) throws IfsException
value
- the start Folder.IfsException
- 22002 if value is null.public Folder getStartingFolder(LibrarySession session) throws IfsException
session
- LibrarySessionIfsException
- if the operation failspublic void setMultiLevel(boolean multiLevel) throws IfsException
multiLevel
- if true, the search is for any level; if false,
the search is only for items directly in the
starting folder.public boolean isMultiLevel()
|
Oracle Content Management SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |