public interface JobProcessorRuleLookupSession extends OsidSession
This session provides methods to retrieve JobProcessor
to Job
mappings.
This lookup session defines several views:
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupJobProcessorRules()
Tests if this user can perform lookups of job processor/job mappings.
|
Foundry |
getFoundry()
Gets the
Foundry associated with this session. |
Id |
getFoundryId()
Gets the
Foundry Id associated with this
session. |
IdList |
getJobIdsForJobProcessor(Id jobProcessorId)
Gets the
Job Ids mapped to a
JobProcessor. |
IdList |
getJobProcessorIdsForJob(Id jobId)
Gets the
JobProcessor Id associated with a Job. |
JobProcessorList |
getJobProcessorsForJob(Id jobId)
Gets the
JobProcessor associated with a Job. |
JobList |
getJobsForJobProcessor(Id jobProcessorId)
Gets the
Jobs mapped to a JobProcessor. |
void |
useComparativeJobProcessorRuleView()
The returns from the lookup methods may omit or translate elements
based on this session, such as authorization, and not result in an
error.
|
void |
useFederatedFoundryView()
Federates the view for methods in this session.
|
void |
useIsolatedFoundryView()
Isolates the view for methods in this session.
|
void |
usePlenaryJobProcessorRuleView()
A complete view of the
JobProcessor and Job
returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getFoundryId()
Foundry
Id
associated with this
session. Foundry Id
associated with this sessionmandatory
- This method must be implemented. Foundry getFoundry() throws OperationFailedException, PermissionDeniedException
Foundry
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canLookupJobProcessorRules()
PERMISSION_DENIED.
This is intended as
a hint to an application that may opt not to offer lookup operations
to unauthorized users. false
if looking up mappings is not authorized,
true
otherwisemandatory
- This method must be implemented. void useComparativeJobProcessorRuleView()
mandatory
- This method is must be implemented. void usePlenaryJobProcessorRuleView()
JobProcessor
and Job
returns is desired. Methods will return what is requested or
result in an error. This view is used when greater precision is
desired at the expense of interoperability.mandatory
- This method is must be implemented. void useFederatedFoundryView()
mandatory
- This method is must be implemented. void useIsolatedFoundryView()
mandatory
- This method is must be implemented. IdList getJobProcessorIdsForJob(Id jobId) throws NotFoundException, OperationFailedException, PermissionDeniedException
JobProcessor Id
associated with a Job.
jobId
- Id
of the Job
Ids
NotFoundException
- jobId
is not foundNullArgumentException
- jobId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. JobProcessorList getJobProcessorsForJob(Id jobId) throws NotFoundException, OperationFailedException, PermissionDeniedException
JobProcessor
associated with a Job.
jobId
- Id
of the Auction
NotFoundException
- jobId
is not foundNullArgumentException
- jobId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getJobIdsForJobProcessor(Id jobProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Job
Ids
mapped to a
JobProcessor.
jobProcessorId
- Id
of a JobProcessor
Ids
NotFoundException
- jobProcessorId
is
not foundNullArgumentException
- jobProcessorId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. JobList getJobsForJobProcessor(Id jobProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Jobs
mapped to a JobProcessor.
jobProcessorId
- Id
of a JobProcessor
NotFoundException
- jobProcessorId
is
not foundNullArgumentException
- jobProcessorId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.