public interface InstallationSearchOrder extends OsidObjectSearchOrder
An interface for specifying the ordering of search results.
Modifier and Type | Method and Description |
---|---|
AgentSearchOrder |
getAgentSearchOrder()
Gets the search order for an agent.
|
InstallationSearchOrderRecord |
getInstallationSearchOrderRecord(Type installationRecordType)
Gets the installation search order record corresponding to the given
installation record
Type. |
PackageSearchOrder |
getPackageSearchOrder()
Gets the search order for a package.
|
SiteSearchOrder |
getSiteSearchOrder()
Gets the search order for a site.
|
void |
orderByAgent(SearchOrderStyle style)
Specified a preference for ordering results by the agent.
|
void |
orderByInstallDate(SearchOrderStyle style)
Specified a preference for ordering results by the install date.
|
void |
orderByLastCheckDate(SearchOrderStyle style)
Specified a preference for ordering results by the last checked date.
|
void |
orderByPackage(SearchOrderStyle style)
Specified a preference for ordering results by the package.
|
void |
orderBySite(SearchOrderStyle style)
Specified a preference for ordering results by the site.
|
boolean |
supportsAgentSearchOrder()
Tests if an
AgenteSearchOrder is available for agents. |
boolean |
supportsPackageSearchOrder()
Tests if a
PackageSearchOrder is available for
packages. |
boolean |
supportsSiteSearchOrder()
Tests if a
SiteSearchOrder is available for sites. |
orderByCreateTime, orderByCumulativeRating, orderByDescription, orderByDisplayName, orderByGenusType, orderByLastModifiedTime, orderByState, orderByStatistic
orderById
getRecordTypes, hasRecordType
void orderBySite(SearchOrderStyle style)
style
- search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. boolean supportsSiteSearchOrder()
SiteSearchOrder
is available for sites. true
if a site search order is available,
false
otherwisemandatory
- This method must be implemented. SiteSearchOrder getSiteSearchOrder()
UnimplementedException
-
supportsSiteSearchOrder()
is false
optional
- This method must be implemented if
supportsSiteSearchOrder()
is true.
void orderByPackage(SearchOrderStyle style)
style
- search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. boolean supportsPackageSearchOrder()
PackageSearchOrder
is available for
packages. true
if a package search order is available,
false
otherwisemandatory
- This method must be implemented. PackageSearchOrder getPackageSearchOrder()
UnimplementedException
-
supportsPackageSearchOrder()
is false
optional
- This method must be implemented if
supportsPackageSearchOrder()
is true.
void orderByInstallDate(SearchOrderStyle style)
style
- search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. void orderByAgent(SearchOrderStyle style)
style
- search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. boolean supportsAgentSearchOrder()
AgenteSearchOrder
is available for agents. true
if an agent search order is available,
false
otherwisemandatory
- This method must be implemented. AgentSearchOrder getAgentSearchOrder()
UnimplementedException
-
supportsAgentSearchOrder()
is false
optional
- This method must be implemented if
supportsAgentSearchOrder()
is true.
void orderByLastCheckDate(SearchOrderStyle style)
style
- search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. InstallationSearchOrderRecord getInstallationSearchOrderRecord(Type installationRecordType) throws OperationFailedException
Type.
Multiple retrievals return
the same underlying object.installationRecordType
- an installation record typeNullArgumentException
- installationRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(installationRecordType)
is false
mandatory
- This method must be implemented.