Interface FileSearch
- All Superinterfaces:
Extensible, OsidCondition, OsidSearch, Suppliable
The search interface for governing file searches.
-
Method Summary
Modifier and TypeMethodDescriptiongetFileSearchRecord(Type fileSearchRecordType) Gets the file search record corresponding to the given file search recordType.voidorderFileResults(FileSearchOrder fileSearchOrder) Specify an ordering to the search results.voidsearchAmongFiles(IdList fileIds) Execute this search among the given list of files.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
-
searchAmongFiles
Execute this search among the given list of files.- Parameters:
fileIds- list of fileIds- Throws:
NullArgumentException-fileIdsisnull- Compliance:
mandatory- This method must be implemented.
-
orderFileResults
Specify an ordering to the search results.- Parameters:
fileSearchOrder- file search order- Throws:
NullArgumentException-fileSearchOrderisnullUnsupportedException-fileSearchOrderis not of this service- Compliance:
mandatory- This method must be implemented.
-
getFileSearchRecord
Gets the file search record corresponding to the given file search recordType. This method is used to retrieve an object implementing the requested record.- Parameters:
fileSearchRecordType- a file search record type- Returns:
- the file search record
- Throws:
NullArgumentException-fileSearchRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(fileSearchRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-