Interface SequenceRuleEnablerQuerySession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
- All Known Subinterfaces:
SequenceRuleEnablerSearchSession
This session provides methods for searching among
SequenceRuleEnabler objects. The search query is constructed using the
SequenceRuleEnablerQuery.
This session defines views that offer differing behaviors for searching.
- federated bank view: searches include sequence rule enablers in bank of which this bank is an ancestor in the bank hierarchy
- isolated bank view: searches are restricted to sequence rule enablers in this bank
sequence rule enablers may have a query record indicated by their
respective record types. The query record is accessed via the
SequenceRuleEnablerQuery.
Like all OsidSessions,
SequenceRuleEnablerQuerySessions are dedicated to single processing
threads and a single authenticated user.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can performSequenceRuleEnablerlookups.getBank()Gets theBankassociated with this session.Gets theBankIdassociated with this session.Gets a sequence rule enabler query.getSequenceRuleEnablersByQuery(SequenceRuleEnablerQuery sequenceRuleEnablerQuery) Gets a list ofSequenceRuleEnablersmatching the given sequence rule enabler query.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatTypes, getLocales, isAuthenticated, startTransaction, supportsTransactions
-
Method Details
-
getBankId
Id getBankId()Gets theBankIdassociated with this session.- Returns:
- the
Bank Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getBank
Gets theBankassociated with this session.- Returns:
- the bank
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSearchSequenceRuleEnablers
boolean canSearchSequenceRuleEnablers()Tests if this user can performSequenceRuleEnablerlookups. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may not offer lookup operations to unauthorized users.- Returns:
falseif search methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
useFederatedBankView
void useFederatedBankView()Federates the view for methods in this session. A federated view will include sequence rule enablers in banks which are children of this step in the bank hierarchy.- Compliance:
mandatory- This method must be implemented.
-
useIsolatedBankView
void useIsolatedBankView()Isolates the view for methods in this session. An isolated view restricts lookups to this bank only.- Compliance:
mandatory- This method must be implemented.
-
getSequenceRuleEnablerQuery
SequenceRuleEnablerQuery getSequenceRuleEnablerQuery()Gets a sequence rule enabler query.- Returns:
- the sequence rule enabler query
- Compliance:
mandatory- This method must be implemented.
-
getSequenceRuleEnablersByQuery
SequenceRuleEnablerList getSequenceRuleEnablersByQuery(SequenceRuleEnablerQuery sequenceRuleEnablerQuery) throws OperationFailedException, PermissionDeniedException Gets a list ofSequenceRuleEnablersmatching the given sequence rule enabler query.- Parameters:
sequenceRuleEnablerQuery- the sesequence rule enabler query- Returns:
- the returned
SequenceRuleEnablerList - Throws:
NullArgumentException-sequenceRuleEnablerQueryisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-sequenceRuleEnablerQueryis not of this service- Compliance:
mandatory- This method must be implemented.
-