public interface SequenceRuleBankAssignmentSession extends OsidSession
This session provides methods to re-assign SequenceRule
to Bank mappings. a SequenceRule may appear
in multiple Bank objects and removing the last reference to
a SequenceRule is the equivalent of deleting it. Each
Bank may have its own authorizations governing who is
allowed to operate on it.
Adding a reference of a SequenceRule to another
Bank is not a copy operation (eg: does not change its Id
).
| Modifier and Type | Method and Description |
|---|---|
void |
assignSequenceRuleToBank(Id sequenceRuleId,
Id bankId)
Adds an existing
SequenceRule to a Bank. |
boolean |
canAssignSequenceRules()
Tests if this user can alter sequence rule/bank mappings.
|
boolean |
canAssignSequenceRulesToBank(Id bankId)
Tests if this user can alter sequence rule/bank mappings.
|
IdList |
getAssignableBankIds(Id bankId)
Gets a list of bank including and under the given bank node in which
any sequence rule can be assigned.
|
IdList |
getAssignableBankIdsForSequenceRule(Id bankId,
Id sequenceRuleId)
Gets a list of bank including and under the given bank node in which a
specific sequence rule can be assigned.
|
void |
reassignSequenceRuleToBank(Id sequenceRuleId,
Id fromBankId,
Id toBankId)
Moves a
SequenceRule from one Bank to
another. |
void |
unassignSequenceRuleFromBank(Id sequenceRuleId,
Id bankId)
Removes a
SequenceRule from a Bank. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canAssignSequenceRules()
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 canAssignSequenceRulesToBank(Id bankId)
PERMISSION_DENIED. This is intended as a hint to
an application that may opt not to offer lookup operations to
unauthorized users.bankId - the Id of the Bank false if mapping is not authorized, true
otherwiseNullArgumentException - bankId is
null mandatory - This method must be implemented. IdList getAssignableBankIds(Id bankId) throws OperationFailedException
bankId - the Id of the Bank Ids NullArgumentException - bankId is
null OperationFailedException - unable to complete requestmandatory - This method must be implemented. IdList getAssignableBankIdsForSequenceRule(Id bankId, Id sequenceRuleId) throws OperationFailedException
bankId - the Id of the Bank sequenceRuleId - the Id of the
SequenceRule Ids NullArgumentException - bankId or
sequenceRuleId is null OperationFailedException - unable to complete requestmandatory - This method must be implemented. void assignSequenceRuleToBank(Id sequenceRuleId, Id bankId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
SequenceRule to a Bank. sequenceRuleId - the Id of the
SequenceRule bankId - the Id of the Bank AlreadyExistsException - sequenceRuleId
is already assigned to bankId NotFoundException - sequenceRuleId or
bankId not foundNullArgumentException - sequenceRuleId
or bankId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignSequenceRuleFromBank(Id sequenceRuleId, Id bankId) throws NotFoundException, OperationFailedException, PermissionDeniedException
SequenceRule from a Bank. sequenceRuleId - the Id of the
SequenceRule bankId - the Id of the Bank NotFoundException - sequenceRuleId or
bankId not found or sequenceRuleId
not assigned to bankId NullArgumentException - sequenceRuleId
or bankId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void reassignSequenceRuleToBank(Id sequenceRuleId, Id fromBankId, Id toBankId) throws NotFoundException, OperationFailedException, PermissionDeniedException
SequenceRule from one Bank to
another. Mappings to other Banks are unaffected.sequenceRuleId - the Id of the
SequenceRule fromBankId - the Id of the current Bank
toBankId - the Id of the destination Bank
NotFoundException - sequenceRuleId, fromBankId,
or toBankId not found or
sequenceRuleId not mapped to fromBankId NullArgumentException - sequenceRuleId,
fromBankId, or toBankId is null
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.