Interface ProficiencySmartObjectiveBankSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A ProficiencyQuery can be retrieved from this session
and mapped to this ObjectiveBank to create a virtual collection of
Proficiencies . The proficiencies may be sequenced using the
ProficiencySearchOrder from this session.
This ObjectiveBank has a default query that matches any
proficiency and a default search order that specifies no sequencing. The
queries may be examined using a ProficiencyQueryInspector . The
query may be modified by converting the inspector back to a
ProficiencyQuery .
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyProficiencyQuery(ProficiencyQuery proficiencyQuery) Applies a proficiency query to this objective bank.voidapplyProficiencySequencing(ProficiencySearchOrder proficiencySearchOrder) Applies a proficiency search order to this objective bank.booleanTests if this user can manage smart objective banks.Gets theObjectiveBankassociated with this session.Gets theFamiltIdassociated with this session.Gets a proficiency query.getProficiencyQueryFromInspector(ProficiencyQueryInspector proficiencyQueryInspector) Gets a proficiency query from an inspector.Gets a proficiency search order.Gets a proficiency query inspector for this objective bank.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
-
getObjectiveBankId
Id getObjectiveBankId()Gets theFamiltIdassociated with this session.- Returns:
- the
ObjectiveBank Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getObjectiveBank
Gets theObjectiveBankassociated with this session.- Returns:
- the obective bank
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageSmartObjectiveBanks
boolean canManageSmartObjectiveBanks()Tests if this user can manage smart objective banks. 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 opt not to offer smart operations.- Returns:
falseif smart objective bank methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getProficiencyQuery
ProficiencyQuery getProficiencyQuery()Gets a proficiency query.- Returns:
- the proficiency query
- Compliance:
mandatory- This method must be implemented.
-
getProficiencySearchOrder
ProficiencySearchOrder getProficiencySearchOrder()Gets a proficiency search order.- Returns:
- the proficiency search order
- Compliance:
mandatory- This method must be implemented.
-
applyProficiencyQuery
void applyProficiencyQuery(ProficiencyQuery proficiencyQuery) throws OperationFailedException, PermissionDeniedException Applies a proficiency query to this objective bank.- Parameters:
proficiencyQuery- the proficiency query- Throws:
NullArgumentException-proficiencyQueryisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-proficiencyQuerynot of this service- Compliance:
mandatory- This method must be implemented.
-
inspectProficiencyQuery
ProficiencyQueryInspector inspectProficiencyQuery() throws OperationFailedException, PermissionDeniedExceptionGets a proficiency query inspector for this objective bank.- Returns:
- the proficiency query inspector
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
applyProficiencySequencing
void applyProficiencySequencing(ProficiencySearchOrder proficiencySearchOrder) throws OperationFailedException, PermissionDeniedException Applies a proficiency search order to this objective bank.- Parameters:
proficiencySearchOrder- the proficiency search order- Throws:
NullArgumentException-proficiencySearchOrderisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-proficiencySearchOrdernot of this service- Compliance:
mandatory- This method must be implemented.
-
getProficiencyQueryFromInspector
ProficiencyQuery getProficiencyQueryFromInspector(ProficiencyQueryInspector proficiencyQueryInspector) Gets a proficiency query from an inspector.- Parameters:
proficiencyQueryInspector- a proficiency query inspector- Returns:
- the proficiency query
- Throws:
NullArgumentException-relatinshipQueryInspectorisnullUnsupportedException-proficiencyQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-