Interface AuthorizationSearchSession
- All Superinterfaces:
AuthorizationQuerySession, AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods for searching Authorization
objects. The search query is constructed using the
AuthorizationQuery .
getAuthorizationsByQuery() is the basic search method and returns
a list of Authorizations . A more advanced search may be performed
with getAuthorizationsBySearch() .It accepts an
AgentSearch in addition to the query for the purpose of specifying
additional options affecting the entire search, such as ordering.
getAuthorizationssBySearch() returns an
AuthorizationSearchResults that can be used to access the resulting
AuthorizationList or be used to perform a search within the result
set through AuthorizationSearch .
This session defines views that offer differing behaviors for searching.
- federated view: searches include authorizations in
Vaultsof which this vault is an ancestor in the vault hierarchy - isolated view: searches are restricted to authorizations in this
Vault - implicit authorization view: authorizations include implicit authorizations
- explicit authorization view: only explicit authorizations are returned
-
Method Summary
Modifier and TypeMethodDescriptiongetAuthorizationQueryFromInspector(AuthorizationQueryInspector authorizationQueryInspector) Gets an authorization query from an inspector.getAuthorizationsBySearch(AuthorizationQuery authorizationQuery, AuthorizationSearch authorizationSearch) Gets the search results matching the given search query using the given search.Gets an authorization search.Gets an authorization search order.Methods inherited from interface AuthorizationQuerySession
canSearchAuthorizations, getAuthorizationQuery, getAuthorizationsByQuery, getVault, getVaultId, useExplicitAuthorizationView, useFederatedVaultView, useImplicitAuthorizationView, useIsolatedVaultViewModifier and TypeMethodDescriptionbooleanTests if this user can perform authorization searches.Gets an authorization query.getAuthorizationsByQuery(AuthorizationQuery authorizationQuery) Gets a list ofAuthorizationsmatching the given query.getVault()Gets theVaultassociated with this session.Gets theVaultIdassociated with this session.voidSets the view for methods in this session to explicit authorizations.voidFederates the view for methods in this session.voidSets the view for methods in this session to implicit authorizations.voidIsolates the view for methods in this session.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
-
getAuthorizationSearch
AuthorizationSearch getAuthorizationSearch()Gets an authorization search.- Returns:
- the authorization search
- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationSearchOrder
AuthorizationSearchOrder getAuthorizationSearchOrder()Gets an authorization search order. TheAuthorizationSearchOrderis supplied to anAuthorizationSearchto specify the ordering of results.- Returns:
- the authorization search order
- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationsBySearch
AuthorizationSearchResults getAuthorizationsBySearch(AuthorizationQuery authorizationQuery, AuthorizationSearch authorizationSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
authorizationQuery- the authorization queryauthorizationSearch- the authorization search- Returns:
- the returned search results
- Throws:
NullArgumentException-authorizationQueryorauthorizationSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-authorizationSearchorauthorizationQueryis not of this service- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationQueryFromInspector
AuthorizationQuery getAuthorizationQueryFromInspector(AuthorizationQueryInspector authorizationQueryInspector) Gets an authorization query from an inspector. The inspector is available from anAuthorizationSearchResults.- Parameters:
authorizationQueryInspector- an authorization query inspector- Returns:
- the authorization query
- Throws:
NullArgumentException-authorizationQueryInspectorisnullUnsupportedException-authorizationQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-