public interface SequenceRuleEnablerAdminSession extends OsidSession
This session creates and removes sequence rule enablers. The data for
create and update is provided via the SequenceRuleEnablerForm.
| Modifier and Type | Method and Description |
|---|---|
void |
aliasSequenceRuleEnabler(Id sequenceRuleEnablerId,
Id aliasId)
Adds a
Id to a SequenceRuleEnabler for
the purpose of creating compatibility. |
boolean |
canCreateSequenceRuleEnabler()
Tests if this user can create sequence rule enablers.
|
boolean |
canCreateSequenceRuleEnablerWithRecordTypes(Type[] sequenceRuleEnablerRecordTypes)
Tests if this user can create a single
SequenceRuleEnabler
using the desired record types. |
boolean |
canDeleteSequenceRuleEnablers()
Tests if this user can delete sequence rule enablers.
|
boolean |
canManageSequenceRuleEnablerAliases()
Tests if this user can manage
Id aliases for sequence
rule enablers. |
boolean |
canUpdateSequenceRuleEnablers()
Tests if this user can update sequence rule enablers.
|
SequenceRuleEnabler |
createSequenceRuleEnabler(SequenceRuleEnablerForm sequenceRuleEnablerForm)
Creates a new
SequenceRuleEnabler. |
void |
deleteSequenceRuleEnabler(Id sequenceRuleEnablerId)
Deletes a
SequenceRuleEnabler. |
Bank |
getBank()
Gets the
Bank associated with this session. |
Id |
getBankId()
Gets the
Bank Id associated with this
session. |
SequenceRuleEnablerForm |
getSequenceRuleEnablerFormForCreate(Type[] sequenceRuleEnablerRecordTypes)
Gets the sequence rule enabler form for creating new sequence rule
enablers.
|
SequenceRuleEnablerForm |
getSequenceRuleEnablerFormForUpdate(Id sequenceRuleEnablerId)
Gets the sequence rule enabler form for updating an existing sequence
rule enabler.
|
void |
updateSequenceRuleEnabler(SequenceRuleEnablerForm sequenceRuleEnablerForm)
Updates an existing sequence rule enabler.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getBankId()
Bank Id associated with this
session. Bank Id associated with this sessionmandatory - This method must be implemented. Bank getBank() throws OperationFailedException, PermissionDeniedException
Bank associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canCreateSequenceRuleEnabler()
SequenceRuleEnabler
will result in a PERMISSION_DENIED. This is
intended as a hint to an application that may opt not to offer create
operations to an unauthorized user. false if SequenceRuleEnabler
creation is not authorized, true otherwisemandatory - This method must be implemented. boolean canCreateSequenceRuleEnablerWithRecordTypes(Type[] sequenceRuleEnablerRecordTypes)
SequenceRuleEnabler
using the desired record types. While
AssessmentAuthoringManager.getSequenceRuleEnablerRecordTypes()
can be used to examine which records are supported, this method tests
which record(s) are required for creating a specific
SequenceRuleEnabler. Providing an empty array tests if a
SequenceRuleEnabler can be created with no records.sequenceRuleEnablerRecordTypes - array of sequence rule enabler
record types true if SequenceRuleEnabler
creation using the specified record Types is
supported, false otherwiseNullArgumentException -
sequenceRuleEnablerRecordTypes is null mandatory - This method must be implemented. SequenceRuleEnablerForm getSequenceRuleEnablerFormForCreate(Type[] sequenceRuleEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException
sequenceRuleEnablerRecordTypes - array of sequence rule enabler
record typesNullArgumentException -
sequenceRuleEnablerRecordTypes is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException - unable to get form for requested
record typesmandatory - This method must be implemented. SequenceRuleEnabler createSequenceRuleEnabler(SequenceRuleEnablerForm sequenceRuleEnablerForm) throws OperationFailedException, PermissionDeniedException
SequenceRuleEnabler. sequenceRuleEnablerForm - the form for this
SequenceRuleEnabler SequenceRuleEnabler IllegalStateException - sequenceRuleEnablerForm
already used in a create transactionInvalidArgumentException - one or more of the form
elements is invalidNullArgumentException - sequenceRuleEnablerForm
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException - sequenceRuleEnablerForm
did not originate from
getSequenceRuleEnablerFormForCreate() mandatory - This method must be implemented. boolean canUpdateSequenceRuleEnablers()
SequenceRuleEnabler
will result in a PERMISSION_DENIED. This is
intended as a hint to an application that may opt not to offer update
operations to an unauthorized user. false if SequenceRuleEnabler
modification is not authorized, true otherwisemandatory - This method must be implemented. SequenceRuleEnablerForm getSequenceRuleEnablerFormForUpdate(Id sequenceRuleEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
sequenceRuleEnablerId - the Id of the
SequenceRuleEnabler NotFoundException - sequenceRuleEnablerId
is not foundNullArgumentException - sequenceRuleEnablerId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void updateSequenceRuleEnabler(SequenceRuleEnablerForm sequenceRuleEnablerForm) throws OperationFailedException, PermissionDeniedException
sequenceRuleEnablerForm - the form containing the elements to be
updatedIllegalStateException - sequenceRuleEnablerForm
already used in an update transactionInvalidArgumentException - the form contains an invalid
valueNullArgumentException - sequenceRuleEnablerForm
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException - sequenceRuleEnablerForm
did not originate from
getSequenceRuleEnablerFormForUpdate() mandatory - This method must be implemented. boolean canDeleteSequenceRuleEnablers()
SequenceRuleEnabler
will result in a PERMISSION_DENIED. This is
intended as a hint to an application that may opt not to offer delete
operations to an unauthorized user. false if SequenceRuleEnabler
deletion is not authorized, true otherwisemandatory - This method must be implemented. void deleteSequenceRuleEnabler(Id sequenceRuleEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
SequenceRuleEnabler. sequenceRuleEnablerId - the Id of the
SequenceRuleEnabler to removeNotFoundException - sequenceRuleEnablerId
not foundNullArgumentException - sequenceRuleEnablerId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canManageSequenceRuleEnablerAliases()
Id aliases for sequence
rule enablers. A return of true does not guarantee successful
authorization. A return of false indicates that it is known changing
an alias will result in a PERMISSION_DENIED. This is
intended as a hint to an application that may opt not to offer alias
operations to an unauthorized user. false if SequenceRuleEnabler
aliasing is not authorized, true otherwisemandatory - This method must be implemented. void aliasSequenceRuleEnabler(Id sequenceRuleEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Id to a SequenceRuleEnabler for
the purpose of creating compatibility. The primary Id
of the SequenceRuleEnabler is determined by the
provider. The new Id performs as an alias to the
primary Id . If the alias is a pointer to another
sequence rule enabler. it is reassigned to the given sequence rule
enabler Id. sequenceRuleEnablerId - the Id of a
SequenceRuleEnabler aliasId - the alias Id AlreadyExistsException - aliasId is
already assignedNotFoundException - sequenceRuleEnablerId
not foundNullArgumentException - sequenceRuleEnablerId
or aliasId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.