public interface JobConstrainerFoundryAssignmentSession extends OsidSession
This session provides methods to re-assign JobConstrainer
to Foundry
mappings. A JobConstrainer
may appear in multiple Foundry
objects and removing
the last reference to a JobConstrainer
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 JobConstrainer
to another
Foundry
is not a copy operation (eg: does not change its
Id
).
Modifier and Type | Method and Description |
---|---|
void |
assignJobConstrainerToFoundry(Id jobConstrainerId,
Id foundryId)
Adds an existing
JobConstrainer to a Foundry. |
boolean |
canAssignJobConstrainers()
Tests if this user can alter job constrainer/foundry mappings.
|
boolean |
canAssignJobConstrainersToFoundry(Id foundryId)
Tests if this user can alter job constrainer/foundry mappings.
|
IdList |
getAssignableFoundryIds(Id foundryId)
Gets a list of foundries including and under the given foundry node in
which any job constrainer can be assigned.
|
IdList |
getAssignableFoundryIdsForJobConstrainer(Id foundryId,
Id jobConstrainerId)
Gets a list of foundries including and under the given foundry node in
which a specific job constrainer can be assigned.
|
void |
unassignJobConstrainerFromFoundry(Id jobConstrainerId,
Id foundryId)
Removes a
JobConstrainer from a Foundry. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canAssignJobConstrainers()
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 canAssignJobConstrainersToFoundry(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 getAssignableFoundryIdsForJobConstrainer(Id foundryId, Id jobConstrainerId) throws OperationFailedException
foundryId
- the Id
of the Foundry
jobConstrainerId
- the Id
of the
JobConstrainer
Ids
NullArgumentException
- foundryId
or
jobConstrainerId
is null
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. void assignJobConstrainerToFoundry(Id jobConstrainerId, Id foundryId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
JobConstrainer
to a Foundry.
jobConstrainerId
- the Id
of the
JobConstrainer
foundryId
- the Id
of the Foundry
AlreadyExistsException
- jobConstrainerId
is already assigned to foundryId
NotFoundException
- jobConstrainerId
or
foundryId
not foundNullArgumentException
- jobConstrainerId
or foundryId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignJobConstrainerFromFoundry(Id jobConstrainerId, Id foundryId) throws NotFoundException, OperationFailedException, PermissionDeniedException
JobConstrainer
from a Foundry.
jobConstrainerId
- the Id
of the
JobConstrainer
foundryId
- the Id
of the Foundry
NotFoundException
- jobConstrainerId
or
foundryId
not found or jobConstrainerId
not assigned to foundryId
NullArgumentException
- jobConstrainerId
or foundryId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.