Interface SequenceRuleEnablerBankAssignmentSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to re-assign SequenceRuleEnabler
to Bank mappings. a SequenceRuleEnabler may appear in
multiple Bank objects and removing the last reference to a
SequenceRuleEnabler 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 SequenceRuleEnabler to another
Bank is not a copy operation (eg: does not change its Id ).
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignSequenceRuleEnablerToBank(Id sequenceRuleEnablerId, Id bankId) Adds an existingSequenceRuleEnablerto aBank.booleanTests if this user can alter sequence rule enabler/bank mappings.booleanTests if this user can alter sequence rule enabler/bank mappings.getAssignableBankIds(Id bankId) Gets a list of bank including and under the given bank node in which any sequence rule enabler can be assigned.getAssignableBankIdsForSequenceRuleEnabler(Id bankId, Id sequenceRuleEnablerId) Gets a list of bank including and under the given bank node in which a specific sequence rule enabler can be assigned.voidreassignSequenceRuleEnablerToBank(Id sequenceRuleEnablerId, Id fromBankId, Id toBankId) Moves aSequenceRuleEnablerfrom oneBankto another.voidunassignSequenceRuleEnablerFromBank(Id sequenceRuleEnablerId, Id bankId) Removes aSequenceRuleEnablerfrom aBank.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
canAssignSequenceRuleEnablers
boolean canAssignSequenceRuleEnablers()Tests if this user can alter sequence rule enabler/bank mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.- Returns:
falseif mapping is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canAssignSequenceRuleEnablersToBank
Tests if this user can alter sequence rule enabler/bank mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.- Parameters:
bankId- theIdof theBank- Returns:
falseif mapping is not authorized,trueotherwise- Throws:
NullArgumentException-bankIdisnull- Compliance:
mandatory- This method must be implemented.
-
getAssignableBankIds
Gets a list of bank including and under the given bank node in which any sequence rule enabler can be assigned.- Parameters:
bankId- theIdof theBank- Returns:
- list of assignable bank
Ids - Throws:
NullArgumentException-bankIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getAssignableBankIdsForSequenceRuleEnabler
IdList getAssignableBankIdsForSequenceRuleEnabler(Id bankId, Id sequenceRuleEnablerId) throws OperationFailedException Gets a list of bank including and under the given bank node in which a specific sequence rule enabler can be assigned.- Parameters:
bankId- theIdof theBanksequenceRuleEnablerId- theIdof theSequenceRuleEnabler- Returns:
- list of assignable bank
Ids - Throws:
NullArgumentException-bankIdorsequenceRuleEnablerIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
assignSequenceRuleEnablerToBank
void assignSequenceRuleEnablerToBank(Id sequenceRuleEnablerId, Id bankId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingSequenceRuleEnablerto aBank.- Parameters:
sequenceRuleEnablerId- theIdof theSequenceRuleEnablerbankId- theIdof theBank- Throws:
AlreadyExistsException-sequenceRuleEnablerIdis already assigned tobankIdNotFoundException-sequenceRuleEnablerIdorbankIdnot foundNullArgumentException-sequenceRuleEnablerIdorbankIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignSequenceRuleEnablerFromBank
void unassignSequenceRuleEnablerFromBank(Id sequenceRuleEnablerId, Id bankId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aSequenceRuleEnablerfrom aBank.- Parameters:
sequenceRuleEnablerId- theIdof theSequenceRuleEnablerbankId- theIdof theBank- Throws:
NotFoundException-sequenceRuleEnablerIdorbankIdnot found orsequenceRuleEnablerIdnot assigned tobankIdNullArgumentException-sequenceRuleEnablerIdorbankIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
reassignSequenceRuleEnablerToBank
void reassignSequenceRuleEnablerToBank(Id sequenceRuleEnablerId, Id fromBankId, Id toBankId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Moves aSequenceRuleEnablerfrom oneBankto another. Mappings to otherBanksare unaffected.- Parameters:
sequenceRuleEnablerId- theIdof theSequenceRuleEnablerfromBankId- theIdof the currentBanktoBankId- theIdof the destinationBank- Throws:
AlreadyExistsException-sequenceRuleEnablerIdalready assigned totoBankIdNotFoundException-sequenceRuleEnablerId, fromBankId, ortoBankIdnot found orsequenceRuleEnablerIdnot mapped tofromBankIdNullArgumentException-sequenceRuleEnablerId, fromBankId, ortoBankIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-