Interface HierarchySearch
- All Superinterfaces:
Extensible, OsidCondition, OsidSearch, Suppliable
HierarchySearch defines the interface for specifying hierarchy
search options.
-
Method Summary
Modifier and TypeMethodDescriptiongetHierarchySearchRecord(Type hierarchySearchRecordType) Gets the hierarchy search record corresponding to the given hierarchy search recordType.voidorderHierarchyResults(HierarchySearchOrder hierarchySearchOrder) Specify an ordering to the search results.voidsearchAmongHierarchies(IdList hierarchyIds) Execute this search using a given list of hierarchies.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
-
searchAmongHierarchies
Execute this search using a given list of hierarchies.- Parameters:
hierarchyIds- list of hierarchies- Throws:
NullArgumentException-hierarchyIdsisnull- Compliance:
mandatory- This method must be implemented.
-
orderHierarchyResults
Specify an ordering to the search results.- Parameters:
hierarchySearchOrder- hierarchy search order- Throws:
NullArgumentException-hierarchySearchOrderisnullUnsupportedException-hierarchySearchOrderis not of this service- Compliance:
mandatory- This method must be implemented.
-
getHierarchySearchRecord
HierarchySearchRecord getHierarchySearchRecord(Type hierarchySearchRecordType) throws OperationFailedException Gets the hierarchy search record corresponding to the given hierarchy search recordType. This method is used to retrieve an object implementing the requested record.- Parameters:
hierarchySearchRecordType- a hierarchy search record type- Returns:
- the hierarchy search record
- Throws:
NullArgumentException-hierarchySearchRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(hierarchyRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-