public interface ChainAntimatroidAssignmentSession extends OsidSession
This session provides methods to re-assign Chains to
Antimatroid mappings. A Chain may appear in
multiple Antimatroid objects and removing the last
reference to a Chain is the equivalent of deleting it. Each
Antimatroid may have its own authorizations governing who
is allowed to operate on it.
Adding a reference of a Chain to another
Antimatroid is not a copy operation (eg: does not change its
Id ).
| Modifier and Type | Method and Description |
|---|---|
void |
assignChainToAntimatroid(Id chainId,
Id antimatroidId)
Adds an existing
Chain to a Antimatroid. |
boolean |
canAssignChains()
Tests if this user can alter chain/antimatroid mappings.
|
boolean |
canAssignChainsToAntimatroid(Id antimatroidId)
Tests if this user can alter chain/antimatroid mappings.
|
IdList |
getAssignableAntimatroidIds(Id antimatroidId)
Gets a list of antimatroids including and under the given antimatroid
node in which any chain can be assigned.
|
IdList |
getAssignableAntimatroidIdsForChain(Id antimatroidId,
Id chainId)
Gets a list of antimatroids including and under the given antimatroid
node in which a specific chain can be assigned.
|
void |
unassignChainFromAntimatroid(Id chainId,
Id antimatroidId)
Removes a
Chain from a Antimatroid. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canAssignChains()
PERMISSION_DENIED. This is intended as a hint to
an application that may opt not to offer assignment operations to
unauthorized users. false if chain is not authorized, true
otherwisemandatory - This method must be implemented. boolean canAssignChainsToAntimatroid(Id antimatroidId)
PERMISSION_DENIED. This is intended as a hint to
an application that may opt not to offer assignment operations to
unauthorized users.antimatroidId - the Id of the Antimatroid
false if mapping is not authorized, true
otherwiseNullArgumentException - antimatroidId is
null mandatory - This method must be implemented. IdList getAssignableAntimatroidIds(Id antimatroidId) throws OperationFailedException
antimatroidId - the Id of the Antimatroid
Ids NullArgumentException - antimatroidId is
null OperationFailedException - unable to complete requestmandatory - This method must be implemented. IdList getAssignableAntimatroidIdsForChain(Id antimatroidId, Id chainId) throws OperationFailedException
antimatroidId - the Id of the Antimatroid
chainId - the Id of the Chain Ids NullArgumentException - antimatroidId or
chainId is null OperationFailedException - unable to complete requestmandatory - This method must be implemented. void assignChainToAntimatroid(Id chainId, Id antimatroidId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Chain to a Antimatroid. chainId - the Id of the Chain antimatroidId - the Id of the Antimatroid
AlreadyExistsException - chainId is
already assigned to antimatroidId NotFoundException - chainId or
antimatroidId not foundNullArgumentException - chainId or
antimatroidId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignChainFromAntimatroid(Id chainId, Id antimatroidId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Chain from a Antimatroid. chainId - the Id of the Chain antimatroidId - the Id of the Antimatroid
NotFoundException - chainId or
antimatroidId not found or chainId not
assigned to antimatroidId NullArgumentException - chainId or
antimatroidId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.