Interface AssessmentPartSearchSession
- All Superinterfaces:
AssessmentPartQuerySession, AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods for searching among
AssessmentPart objects. The search query is constructed using the
AssessmentPartyQuery .
getAssessmentPartsByQuery() is the basic search method and returns
a list of AssessmentParts . A more advanced search may be
performed with getAssessmentPartsBySearch() . It accepts an
AssessmentPartSearch in addition to the query for the purpose of
specifying additional options affecting the entire search, such as
workflow. getAssessmentPartsBySearch() returns an
AssessmentPartSearchResults that can be used to access the resulting
AssessmentPartList or be used to perform a search within the
result set through AssessmentPartSearch .
This session defines views that offer differing behaviors for searching.
- federated bank view: searches include assessment part in bank of which this bank matchmaker is an ancestor in the bank hierarchy
- isolated bank view: searches are restricted to assessment part in this bank
AssessmentParts may have a query record indicated by their
respective record types. Thequery record is accessed via the
AssessmentPartQuery .-
Method Summary
Modifier and TypeMethodDescriptiongetAssessmentPartQueryFromInspector(AssessmentPartQueryInspector assessmentPartQueryInspector) Gets an assessment part query from an inspector.getAssessmentPartsBySearch(AssessmentPartQuery assessmentPartQuery, AssessmentPartSearch assessmentPartSearch) Gets the search results matching the given search query using the given search.Gets an assessment part search.Gets an assessment part search order.Methods inherited from interface AssessmentPartQuerySession
canSearchAssessmentParts, getAssessmentPartQuery, getAssessmentPartsByQuery, getBank, getBankId, useFederatedBankView, useIsolatedBankView, useSequesteredAssessmentPartView, useUnsequesteredAssessmentPartViewModifier and TypeMethodDescriptionbooleanTests if this user can performAssessmentPartlookups.Gets an assessment part query.getAssessmentPartsByQuery(AssessmentPartQuery assessmentPartQuery) Gets a list ofAssessmentPartsmatching the given assessment part query.getBank()Gets theBankassociated with this session.Gets theBankIdassociated 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 assessment parts.voidThe methods in this session return all assessment parts, including sequestered assessment parts.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
-
getAssessmentPartSearch
AssessmentPartSearch getAssessmentPartSearch()Gets an assessment part search.- Returns:
- the assessment part search
- Compliance:
mandatory- This method must be implemented.
-
getAssessmentPartSearchOrder
AssessmentPartSearchOrder getAssessmentPartSearchOrder()Gets an assessment part search order. TheAssessmentPartSearchOrderis supplied to anAssessmentPartSearchto specify the ordering of results.- Returns:
- the assessment part search order
- Compliance:
mandatory- This method must be implemented.
-
getAssessmentPartsBySearch
AssessmentPartSearchResults getAssessmentPartsBySearch(AssessmentPartQuery assessmentPartQuery, AssessmentPartSearch assessmentPartSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
assessmentPartQuery- the assessment part queryassessmentPartSearch- the assessment part search- Returns:
- the returned search results
- Throws:
NullArgumentException-assessmentPartQueryorassessmentPartSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-assessmentPartQueryorassessmentPartSearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getAssessmentPartQueryFromInspector
AssessmentPartQuery getAssessmentPartQueryFromInspector(AssessmentPartQueryInspector assessmentPartQueryInspector) Gets an assessment part query from an inspector. The inspector is available from anAssessmentPartSearchResults.- Parameters:
assessmentPartQueryInspector- an assessment part query inspector- Returns:
- the assessment part query
- Throws:
NullArgumentException-assessmentPartQueryInspectorisnullUnsupportedException-assessmentPartQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-