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