Interface CompositionSearchSession
- All Superinterfaces:
AutoCloseable, Closeable, CompositionQuerySession, OsidSession, OsidSession
This session provides methods for searching among Composition
objects. The search query is constructed using the
CompositionQuery .
getCompositionsByQuery() is the basic search method and returns a
list of Compositions . A more advanced search may be performed
with getCompositionsBySearch() .It accepts an Composition
in addition to the query for the purpose of specifying additional options
affecting the entire search, such as ordering.
getCompositionsBySearch() returns an CompositionSearchResults
that can be used to access the resulting Composition or be used to
perform a search within the result set through CompositionSearch .
This session defines views that offer differing behaviors when searching.
- federated repository view: searches include compositions in repositories of which this repository is an ancestor in the repository hierarchy
- isolated repository view: searches are restricted to subjects in this repository
Compositions may have a query record indicated by their respective
record types. The query record is accessed via the
CompositionQuery .
-
Method Summary
Modifier and TypeMethodDescriptiongetCompositionQueryFromInspector(CompositionQueryInspector compositionQueryInspector) Gets a composition query from an inspector.getCompositionsBySearch(CompositionQuery compositionQuery, CompositionSearch compositionSearch) Gets the search results matching the given search query using the given search.Gets a composition search.Gets a composition search order.Methods inherited from interface CompositionQuerySession
canSearchCompositions, getCompositionQuery, getCompositionsByQuery, getRepository, getRepositoryId, useFederatedRepositoryView, useIsolatedRepositoryView, useSequesteredCompositionView, useUnsequesteredCompositionViewModifier and TypeMethodDescriptionbooleanTests if this user can performCompositionsearches.Gets a composition query.getCompositionsByQuery(CompositionQuery compositionQuery) Gets a list ofCompositionsmatching the given composition query.Gets theRepositoryassociated with this session.Gets theRepositoryIdassociated with this session.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.voidThe methods in this session omit sequestered compositions.voidThe methods in this session return all compositions, including sequestered compositions.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
-
getCompositionSearch
CompositionSearch getCompositionSearch()Gets a composition search.- Returns:
- the composition search
- Compliance:
mandatory- This method must be implemented.
-
getCompositionSearchOrder
CompositionSearchOrder getCompositionSearchOrder()Gets a composition search order. TheCompositionSearchOrderis supplied to anCompositionSearchto specify the ordering of results.- Returns:
- the composition search order
- Compliance:
mandatory- This method must be implemented.
-
getCompositionsBySearch
CompositionSearchResults getCompositionsBySearch(CompositionQuery compositionQuery, CompositionSearch compositionSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
compositionQuery- the composition querycompositionSearch- the composition search- Returns:
- the composition search results
- Throws:
NullArgumentException-compositionQueryorcompositionSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-compositionQueryorcompositionSearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getCompositionQueryFromInspector
CompositionQuery getCompositionQueryFromInspector(CompositionQueryInspector compositionQueryInspector) Gets a composition query from an inspector. The inspector is available from aCompositionSearchResults.- Parameters:
compositionQueryInspector- a composition query inspector- Returns:
- the composition query
- Throws:
NullArgumentException-compositionQueryInspectorisnullUnsupportedException-compositionQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-