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