Interface JobProcessorSearchSession
- All Superinterfaces:
AutoCloseable, Closeable, JobProcessorQuerySession, OsidSession, OsidSession
This session provides methods for searching among JobProcessor
objects. The search query is constructed using the
JobProcessoryQuery .
getJobProcessorsByQuery() is the basic search method and returns a
list of JobProcessors . A more advanced search may be performed
with getJobProcessorsBySearch() .It accepts a
JobProcessorSearch in addition to the query for the purpose of specifying
additional options affecting the entire search, such as resourcing.
getJobProcessorsBySearch() returns a JobProcessorSearchResults
that can be used to access the resulting JobProcessorList or be
used to perform a search within the result set through
JobProcessorSearch .
This session defines views that offer differing behaviors for searching.
- federated foundry view: searches include job processor in foundries of which this foundry is an ancestor in the foundry hierarchy
- isolated foundry view: searches are restricted to job processor in this foundry
JobProcessors may have a job processor query record indicated by
their respective record types. The job processor query record is accessed
via the JobProcessorQuery .-
Method Summary
Modifier and TypeMethodDescriptiongetJobProcessorQueryFromInspector(JobProcessorQueryInspector jobProcessorQueryInspector) Gets a job processor query from an inspector.getJobProcessorsBySearch(JobProcessorQuery jobProcessorQuery, JobProcessorSearch jobProcessorSearch) Gets the search results matching the given search query using the given search.Gets a job processor search.Gets a job processor search order.Methods inherited from interface JobProcessorQuerySession
canSearchJobProcessors, getFoundry, getFoundryId, getJobProcessorQuery, getJobProcessorsByQuery, useFederatedFoundryView, useIsolatedFoundryViewModifier and TypeMethodDescriptionbooleanTests if this user can performJobProcessorlookups.Gets theFoundryassociated with this session.Gets theFoundryIdassociated with this session.Gets a job processor query.getJobProcessorsByQuery(JobProcessorQuery jobProcessorQuery) Gets a list ofJobProcessorsmatching the given job processor 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, 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
-
getJobProcessorSearch
JobProcessorSearch getJobProcessorSearch()Gets a job processor search.- Returns:
- the job processor search
- Compliance:
mandatory- This method must be implemented.
-
getJobProcessorSearchOrder
JobProcessorSearchOrder getJobProcessorSearchOrder()Gets a job processor search order. TheJobProcessorSearchOrderis supplied to aJobProcessorSearchto specify the ordering of results.- Returns:
- the job processor search order
- Compliance:
mandatory- This method must be implemented.
-
getJobProcessorsBySearch
JobProcessorSearchResults getJobProcessorsBySearch(JobProcessorQuery jobProcessorQuery, JobProcessorSearch jobProcessorSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
jobProcessorQuery- the job processor queryjobProcessorSearch- the job processor search- Returns:
- the returned search results
- Throws:
NullArgumentException-jobProcessorQueryorjobProcessorSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-jobProcessorQueryorjobProcessorSearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getJobProcessorQueryFromInspector
JobProcessorQuery getJobProcessorQueryFromInspector(JobProcessorQueryInspector jobProcessorQueryInspector) Gets a job processor query from an inspector. The inspector is available from aJobProcessorSearchResults.- Parameters:
jobProcessorQueryInspector- a job processor query inspector- Returns:
- the job processor query
- Throws:
NullArgumentException-jobProcessorQueryInspectorisnullUnsupportedException-jobProcessorQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-