Interface JobConstrainerSearchSession
- All Superinterfaces:
AutoCloseable, Closeable, JobConstrainerQuerySession, OsidSession, OsidSession
This session provides methods for searching among
JobConstrainer objects. The search query is constructed using the
JobConstraineryQuery .
getJobConstrainersByQuery() is the basic search method and returns
a list of JobConstrainers . A more advanced search may be
performed with getJobConstrainersBySearch() . It accepts a
JobConstrainerSearch in addition to the query for the purpose of
specifying additional options affecting the entire search, such as
resourcing. getJobConstrainersBySearch() returns a
JobConstrainerSearchResults that can be used to access the resulting
JobConstrainerList or be used to perform a search within the
result set through JobConstrainerSearch .
This session defines views that offer differing behaviors for searching.
- federated foundry view: searches include job constrainer in foundries of which this foundry is an ancestor in the foundry hierarchy
- isolated foundry view: searches are restricted to job constrainer in this foundry
JobConstrainers may have a job constrainer query record indicated
by their respective record types. The job constrainer query record is
accessed via the JobConstrainerQuery .-
Method Summary
Modifier and TypeMethodDescriptiongetJobConstrainerQueryFromInspector(JobConstrainerQueryInspector jobConstrainerQueryInspector) Gets a job constrainer query from an inspector.getJobConstrainersBySearch(JobConstrainerQuery jobConstrainerQuery, JobConstrainerSearch jobConstrainerSearch) Gets the search results matching the given search query using the given search.Gets a job constrainer search.Gets a job constrainer search order.Methods inherited from interface JobConstrainerQuerySession
canSearchJobConstrainers, getFoundry, getFoundryId, getJobConstrainerQuery, getJobConstrainersByQuery, useFederatedFoundryView, useIsolatedFoundryViewModifier and TypeMethodDescriptionbooleanTests if this user can performJobConstrainerlookups.Gets theFoundryassociated with this session.Gets theFoundryIdassociated with this session.Gets a job constrainer query.getJobConstrainersByQuery(JobConstrainerQuery jobConstrainerQuery) Gets a list ofJobConstrainersmatching the given job constrainer 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
-
getJobConstrainerSearch
JobConstrainerSearch getJobConstrainerSearch()Gets a job constrainer search.- Returns:
- the job constrainer search
- Compliance:
mandatory- This method must be implemented.
-
getJobConstrainerSearchOrder
JobConstrainerSearchOrder getJobConstrainerSearchOrder()Gets a job constrainer search order. TheJobConstrainerSearchOrderis supplied to aJobConstrainerSearchto specify the ordering of results.- Returns:
- the job constrainer search order
- Compliance:
mandatory- This method must be implemented.
-
getJobConstrainersBySearch
JobConstrainerSearchResults getJobConstrainersBySearch(JobConstrainerQuery jobConstrainerQuery, JobConstrainerSearch jobConstrainerSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
jobConstrainerQuery- the job constrainer queryjobConstrainerSearch- the job constrainer search- Returns:
- the returned search results
- Throws:
NullArgumentException-jobConstrainerQueryorjobConstrainerSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-jobConstrainerQueryorjobConstrainerSearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getJobConstrainerQueryFromInspector
JobConstrainerQuery getJobConstrainerQueryFromInspector(JobConstrainerQueryInspector jobConstrainerQueryInspector) Gets a job constrainer query from an inspector. The inspector is available from aJobConstrainerSearchResults.- Parameters:
jobConstrainerQueryInspector- a job constrainer query inspector- Returns:
- the job constrainer query
- Throws:
NullArgumentException-jobConstrainerQueryInspectorisnullUnsupportedException-jobConstrainerQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-