public interface JobFoundryAssignmentSession extends OsidSession
This session provides methods to re-assign Jobs to
Foundry mappings. A Job may appear in
multiple Foundry objects and removing the last reference to
a Job is the equivalent of deleting it. Each Foundry
may have its own authorizations governing who is allowed to
operate on it.
Adding a reference of a Job to another Foundry
is not a copy operation (eg: does not change its Id
).
| Modifier and Type | Method and Description |
|---|---|
void |
assignJobToFoundry(Id jobId,
Id foundryId)
Adds an existing
Job to a Foundry. |
boolean |
canAssignJobs()
Tests if this user can alter job/foundry mappings.
|
boolean |
canAssignJobsToFoundry(Id foundryId)
Tests if this user can alter job/foundry mappings.
|
IdList |
getAssignableFoundryIds(Id foundryId)
Gets a list of foundries including and under the given foundry node in
which any job can be assigned.
|
IdList |
getAssignableFoundryIdsForJob(Id foundryId,
Id jobId)
Gets a list of foundries including and under the given foundry node in
which a specific job can be assigned.
|
void |
unassignJobFromFoundry(Id jobId,
Id foundryId)
Removes a
Job from a Foundry. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canAssignJobs()
PERMISSION_DENIED. This is intended as a hint to
an application that may opt not to offer assignment operations to
unauthorized users. false if resourcing is not authorized,
true otherwisemandatory - This method must be implemented. boolean canAssignJobsToFoundry(Id foundryId)
PERMISSION_DENIED. This is intended as a hint to
an application that may opt not to offer assignment operations to
unauthorized users.foundryId - the Id of the Foundry false if mapping is not authorized, true
otherwiseNullArgumentException - foundryId is
null mandatory - This method must be implemented. IdList getAssignableFoundryIds(Id foundryId) throws OperationFailedException
foundryId - the Id of the Foundry Ids NullArgumentException - foundryId is
null OperationFailedException - unable to complete requestmandatory - This method must be implemented. IdList getAssignableFoundryIdsForJob(Id foundryId, Id jobId) throws OperationFailedException
foundryId - the Id of the Foundry jobId - the Id of the Job Ids NullArgumentException - foundryId or
jobId is null OperationFailedException - unable to complete requestmandatory - This method must be implemented. void assignJobToFoundry(Id jobId, Id foundryId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Job to a Foundry. jobId - the Id of the Job foundryId - the Id of the Foundry NotFoundException - jobId or
foundryId not foundNullArgumentException - jobId or
foundryId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignJobFromFoundry(Id jobId, Id foundryId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Job from a Foundry. jobId - the Id of the Job foundryId - the Id of the Foundry NotFoundException - jobId or
foundryId not foundNullArgumentException - jobId or
foundryId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.