Interface InstallationSearchOrder
- All Superinterfaces:
Extensible, OsidBrowsableSearchOrder, OsidExtensibleSearchOrder, OsidIdentifiableSearchOrder, OsidObjectSearchOrder, OsidSearchOrder, Suppliable
An interface for specifying the ordering of search results.
-
Method Summary
Modifier and TypeMethodDescriptionGets the search order for an agent.getInstallationSearchOrderRecord(Type installationRecordType) Gets the installation search order record corresponding to the given installation recordType.Multiple retrievals return the same underlying object.Gets the search order for a package.Gets the search order for a site.voidorderByAgent(SearchOrderStyle style) Specified a preference for ordering results by the agent.voidSpecified a preference for ordering results by the install date.voidSpecified a preference for ordering results by the last checked date.voidorderByPackage(SearchOrderStyle style) Specified a preference for ordering results by the package.voidorderBySite(SearchOrderStyle style) Specified a preference for ordering results by the site.booleanTests if anAgenteSearchOrderis available for agents.booleanTests if aPackageSearchOrderis available for packages.booleanTests if aSiteSearchOrderis available for sites.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 OsidIdentifiableSearchOrder
orderByIdModifier and TypeMethodDescriptionvoidorderById(SearchOrderStyle style) Specifies a preference for ordering the result set by theId.Methods inherited from interface OsidObjectSearchOrder
orderByCreateTime, orderByCumulativeRating, orderByDescription, orderByDisplayName, orderByGenusType, orderByLastModifiedTime, orderByState, orderByStatisticModifier and TypeMethodDescriptionvoidOrders by the timestamp of the first journal entry.voidorderByCumulativeRating(Id bookId, SearchOrderStyle style) Orders by the cumulative rating in a givenBook.voidSpecifies a preference for ordering the result set by the description.voidSpecifies a preference for ordering the result set by the display name.voidorderByGenusType(SearchOrderStyle style) Specifies a preference for ordering the result set by the genus type.voidOrders by the timestamp of the last journal entry.voidorderByState(Id processId, SearchOrderStyle style) Orders by the state in a givenProcess.voidorderByStatistic(Id meterId, SearchOrderStyle style) Orders by a statistic for a givenMeter.
-
Method Details
-
orderBySite
Specified a preference for ordering results by the site.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
supportsSiteSearchOrder
boolean supportsSiteSearchOrder()Tests if aSiteSearchOrderis available for sites.- Returns:
trueif a site search order is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSiteSearchOrder
SiteSearchOrder getSiteSearchOrder()Gets the search order for a site.- Returns:
- the site search order
- Throws:
UnimplementedException-supportsSiteSearchOrder()isfalse- Compliance:
optional- This method must be implemented if {@code supportsSiteSearchOrder()} is {@code true} .
-
orderByPackage
Specified a preference for ordering results by the package.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
supportsPackageSearchOrder
boolean supportsPackageSearchOrder()Tests if aPackageSearchOrderis available for packages.- Returns:
trueif a package search order is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getPackageSearchOrder
PackageSearchOrder getPackageSearchOrder()Gets the search order for a package.- Returns:
- the package search order
- Throws:
UnimplementedException-supportsPackageSearchOrder()isfalse- Compliance:
optional- This method must be implemented if {@code supportsPackageSearchOrder()} is {@code true} .
-
orderByInstallDate
Specified a preference for ordering results by the install date.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
orderByAgent
Specified a preference for ordering results by the agent.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
supportsAgentSearchOrder
boolean supportsAgentSearchOrder()Tests if anAgenteSearchOrderis available for agents.- Returns:
trueif an agent search order is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getAgentSearchOrder
AgentSearchOrder getAgentSearchOrder()Gets the search order for an agent.- Returns:
- the agent search order
- Throws:
UnimplementedException-supportsAgentSearchOrder()isfalse- Compliance:
optional- This method must be implemented if {@code supportsAgentSearchOrder()} is {@code true} .
-
orderByLastCheckDate
Specified a preference for ordering results by the last checked date.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
getInstallationSearchOrderRecord
InstallationSearchOrderRecord getInstallationSearchOrderRecord(Type installationRecordType) throws OperationFailedException Gets the installation search order record corresponding to the given installation recordType.Multiple retrievals return the same underlying object.- Parameters:
installationRecordType- an installation record type- Returns:
- the installation search order record
- Throws:
NullArgumentException-installationRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(installationRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-