public interface JobProcessorFoundryAssignmentSession extends OsidSession
This session provides methods to re-assign JobProcessor
to Foundry mappings. A JobProcessor may
appear in multiple Foundry objects and removing the last
reference to a JobProcessor 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 JobProcessor to another
Foundry is not a copy operation (eg: does not change its Id
).
| Modifier and Type | Method and Description |
|---|---|
void |
assignJobProcessorToFoundry(Id jobProcessorId,
Id foundryId)
Adds an existing
JobProcessor to a Foundry. |
boolean |
canAssignJobProcessors()
Tests if this user can alter job processor/foundry mappings.
|
boolean |
canAssignJobProcessorsToFoundry(Id foundryId)
Tests if this user can alter job processor/foundry mappings.
|
IdList |
getAssignableFoundryIds(Id foundryId)
Gets a list of foundries including and under the given foundry node in
which any job processor can be assigned.
|
IdList |
getAssignableFoundryIdsForJobProcessor(Id foundryId,
Id jobProcessorId)
Gets a list of foundries including and under the given foundry node in
which a specific job processor can be assigned.
|
void |
unassignJobProcessorFromFoundry(Id jobProcessorId,
Id foundryId)
Removes a
JobProcessor from a Foundry. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canAssignJobProcessors()
PERMISSION_DENIED. This is intended as a hint to
an application that may opt not to offer lookup operations to
unauthorized users. false if mapping is not authorized, true
otherwisemandatory - This method must be implemented. boolean canAssignJobProcessorsToFoundry(Id foundryId)
PERMISSION_DENIED. This is intended as a hint to
an application that may opt not to offer lookup 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 getAssignableFoundryIdsForJobProcessor(Id foundryId, Id jobProcessorId) throws OperationFailedException
foundryId - the Id of the Foundry jobProcessorId - the Id of the
JobProcessor Ids NullArgumentException - foundryId or
jobProcessorId is null OperationFailedException - unable to complete requestmandatory - This method must be implemented. void assignJobProcessorToFoundry(Id jobProcessorId, Id foundryId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
JobProcessor to a Foundry.
jobProcessorId - the Id of the
JobProcessor foundryId - the Id of the Foundry AlreadyExistsException - jobProcessorId
is already assigned to foundryId NotFoundException - jobProcessorId or
foundryId not foundNullArgumentException - jobProcessorId
or foundryId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignJobProcessorFromFoundry(Id jobProcessorId, Id foundryId) throws NotFoundException, OperationFailedException, PermissionDeniedException
JobProcessor from a Foundry. jobProcessorId - the Id of the
JobProcessor foundryId - the Id of the Foundry NotFoundException - jobProcessorId or
foundryId not found or jobProcessorId
not assigned to foundryId NullArgumentException - jobProcessorId
or foundryId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.