Interface DemographicSearch
- All Superinterfaces:
Extensible, OsidCondition, OsidSearch, Suppliable
The search interface for governing demographic searches.
-
Method Summary
Modifier and TypeMethodDescriptiongetDemographicSearchRecord(Type demographicSearchRecordType) Gets the demographic search record corresponding to the given demographic search recordType.This method is used to retrieve an object implementing the requested record.voidorderDemographicResults(DemographicSearchOrder demographicSearchOrder) Specify an ordering to the search results.voidsearchAmongDemographics(IdList demographicIds) Execute this search among the given list of demographics.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
-
searchAmongDemographics
Execute this search among the given list of demographics.- Parameters:
demographicIds- list of demographics- Throws:
NullArgumentException-demographicIdsisnull- Compliance:
mandatory- This method must be implemented.
-
orderDemographicResults
Specify an ordering to the search results.- Parameters:
demographicSearchOrder- demographic search order- Throws:
NullArgumentException-demographicSearchOrderisnullUnsupportedException-demographicSearchOrderis not of this service- Compliance:
mandatory- This method must be implemented.
-
getDemographicSearchRecord
DemographicSearchRecord getDemographicSearchRecord(Type demographicSearchRecordType) throws OperationFailedException Gets the demographic search record corresponding to the given demographic search recordType.This method is used to retrieve an object implementing the requested record.- Parameters:
demographicSearchRecordType- a demographic search record type- Returns:
- the demographic search record
- Throws:
NullArgumentException-demographicSearchRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(demographicSearchRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-