Interface DirectorySearch
- All Superinterfaces:
Extensible, OsidCondition, OsidSearch, Suppliable
The search interface for gioverning directory searches.
An example to find directories whose name is "Library" sorted by the path name.
DirectoryQuery query = session.getDirectoryQuery();
query.addNameMatch("Library", wordStringMatchType, true);
DirectorySearch search = session.getDirectorySearch();
search.orderByPath();
DirectorySearchResults results = session.getDirectoriesBySearch(query, search);
DirectoryList directories = results.getDirectories();
-
Method Summary
Modifier and TypeMethodDescriptiongetDirectorySearchRecord(Type directorySearchRecordType) Gets the directory search record corresponding to the given directory search recordType.voidorderDirectoryResults(DirectorySearchOrder directorySearchOrder) Specify an ordering to the search results.voidsearchAmongDirectories(IdList directoryIds) Execute this search among the given list of diectories.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface OsidSearch
limitResultSetModifier and TypeMethodDescriptionvoidlimitResultSet(long start, long end) By default, searches return all matching results.
-
Method Details
-
searchAmongDirectories
Execute this search among the given list of diectories.- Parameters:
directoryIds- list of directoryIds- Throws:
NullArgumentException-directoryIdsisnull- Compliance:
mandatory- This method must be implemented.
-
orderDirectoryResults
Specify an ordering to the search results.- Parameters:
directorySearchOrder- directory search order- Throws:
NullArgumentException-directorySearchOrderisnullUnsupportedException-directorySearchOrderis not of this service- Compliance:
mandatory- This method must be implemented.
-
getDirectorySearchRecord
DirectorySearchRecord getDirectorySearchRecord(Type directorySearchRecordType) throws OperationFailedException Gets the directory search record corresponding to the given directory search recordType. This method is used to retrieve an object implementing the requested record.- Parameters:
directorySearchRecordType- a directory search record type- Returns:
- the directory search record
- Throws:
NullArgumentException-directorySearchRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(directorySearchRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-