Interface InstallationSearchSession
- All Superinterfaces:
AutoCloseable, Closeable, InstallationQuerySession, OsidSession, OsidSession
This session provides methods for searching Installations . The
search query is constructed using the InstallationQuery . The
installation record Type also specifies the record for the
installation query.
getInstallationsByQuery() is the basic search method and returns a
list of Installations . A more advanced search may be performed
with getInstallationsBySearch() .It accepts an
InstallationSearch in addition to the query for the purpose of specifying
additional options affecting the entire search, such as ordering.
getInstallationsBySearch() returns an InstallationSearchResults
that can be used to access the resulting InstallationList or be
used to perform a search within the result set through
InstallationSearch .
Installations may have a query record indicated by their respective
record types. The query record is accessed via the
InstallationQuery .
-
Method Summary
Modifier and TypeMethodDescriptiongetInstallationsBySearch(InstallationQuery installationQuery, InstallationSearch installationSearch) Gets the search results matching the given search query using the given search.Gets an installation search.Gets an installation search order.getInstallationsQueryFromInspector(InstallationQueryInspector installatonQueryInspector) Gets an installation query from an inspector.Methods inherited from interface InstallationQuerySession
canSearchInstallations, getInstallationQuery, getInstallationsByQuery, getSite, getSiteId, useDenormalizedDependencyView, useDenormalizedVersionView, useNormalizedDependencyView, useNormalizedVersionViewModifier and TypeMethodDescriptionbooleanTests if this user can performInstallationsearches.Gets an installation query.getInstallationsByQuery(InstallationQuery installationQuery) Gets a list ofInstallationsmatching the given installation query.getSite()Gets theSiteassociated with this session.Gets theSiteIdassociated with this session.voidA denormalized view returns all dependencies.voidAll versions of the same installation are returned.voidA normalized view uses a singleInstallationto represent a set of package dependencies.voidThe returns from the lookup methods may omit multiple versions of the same installation.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getInstallationSearch
InstallationSearch getInstallationSearch()Gets an installation search.- Returns:
- the installation search
- Compliance:
mandatory- This method must be implemented.
-
getInstallationSearchOrder
InstallationSearchOrder getInstallationSearchOrder()Gets an installation search order. TheInstallationSearchOrderis supplied to anInstallationSearchto specify the ordering of results.- Returns:
- the installation search order
- Compliance:
mandatory- This method must be implemented.
-
getInstallationsBySearch
InstallationSearchResults getInstallationsBySearch(InstallationQuery installationQuery, InstallationSearch installationSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
installationQuery- the installation queryinstallationSearch- the installation search- Returns:
- the returned search results
- Throws:
NullArgumentException-installationQueryorinstallationSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-installationSearchorinstallationQueryis not of this service- Compliance:
mandatory- This method must be implemented.
-
getInstallationsQueryFromInspector
InstallationQuery getInstallationsQueryFromInspector(InstallationQueryInspector installatonQueryInspector) Gets an installation query from an inspector. The inspector is available from aInstallationSearchResults.- Parameters:
installatonQueryInspector- an installation query inspector- Returns:
- the installaton query
- Throws:
NullArgumentException-installationQueryInspectorisnullUnsupportedException-installationQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-