Interface JobSearchSession
- All Superinterfaces:
AutoCloseable, Closeable, JobQuerySession, OsidSession, OsidSession
This session provides methods for searching among Job objects.
The search query is constructed using the JobQuery .
getJobsByQuery() is the basic search method and returns a list of
Jobs . A more advanced search may be performed with
getJobsBySearch() . It accepts a JobSearch in addition to the
query for the purpose of specifying additional options affecting the
entire search, such as ordering. getJobsBySearch() returns a
JobSearchResults that can be used to access the resulting
JobList or be used to perform a search within the result set through
JobSearch .
This session defines views that offer differing behaviors for searching.
- federated foundry view: searches include jobs in foundries of which this foundry is an ancestor in the foundry hierarchy
- isolated foundry view: searches are restricted to jobs in this foundry
Jobs may have a query record indicated by their respective record
types. The query record is accessed via the JobQuery .
-
Method Summary
Modifier and TypeMethodDescriptiongetJobQueryFromInspector(JobQueryInspector jobQueryInspector) Gets a job query from an inspector.getJobsBySearch(JobQuery jobQuery, JobSearch jobSearch) Gets the search results matching the given search query using the given search.Gets a job search.Gets a job search order.Methods inherited from interface JobQuerySession
canSearchJobs, getFoundry, getFoundryId, getJobQuery, getJobsByQuery, useFederatedFoundryView, useIsolatedFoundryViewModifier and TypeMethodDescriptionbooleanTests if this user can performJoblookups.Gets theFoundryassociated with this session.Gets theFoundryIdassociated with this session.Gets a job query.getJobsByQuery(JobQuery jobQuery) Gets a list ofJobsmatching the given job 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
-
getJobSearch
JobSearch getJobSearch()Gets a job search.- Returns:
- the job search
- Compliance:
mandatory- This method must be implemented.
-
getJobSearchOrder
JobSearchOrder getJobSearchOrder()Gets a job search order. TheJobSearchOrderis supplied to aJobSearchto specify the ordering of results.- Returns:
- the job search order
- Compliance:
mandatory- This method must be implemented.
-
getJobsBySearch
JobSearchResults getJobsBySearch(JobQuery jobQuery, JobSearch jobSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
jobQuery- the job queryjobSearch- the job search- Returns:
- the returned search results
- Throws:
NullArgumentException-jobQueryorjobSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-jobQueryorjobSearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getJobQueryFromInspector
Gets a job query from an inspector. The inspector is available from aJobSearchResults.- Parameters:
jobQueryInspector- a job query inspector- Returns:
- the job query
- Throws:
NullArgumentException-jobQueryInspectorisnullUnsupportedException-jobQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-