public interface TriggerEnablerAdminSession extends OsidSession
This session creates and removes trigger enablers. The data for create
and update is provided via the TriggerEnablerForm.
| Modifier and Type | Method and Description |
|---|---|
void |
aliasTriggerEnabler(Id triggerEnablerId,
Id aliasId)
Adds an
Id to a TriggerEnabler for the
purpose of creating compatibility. |
boolean |
canCreateTriggerEnabler()
Tests if this user can create trigger enablers.
|
boolean |
canCreateTriggerEnablerWithRecordTypes(Type[] triggerEnablerRecordTypes)
Tests if this user can create a single
TriggerEnabler
using the desired record types. |
boolean |
canDeleteTriggerEnablers()
Tests if this user can delete trigger enablers.
|
boolean |
canManageTriggerEnablerAliases()
Tests if this user can manage
Id aliases for trigger
enablers. |
boolean |
canUpdateTriggerEnablers()
Tests if this user can update trigger enablers.
|
TriggerEnabler |
createTriggerEnabler(TriggerEnablerForm triggerEnablerForm)
Creates a new
TriggerEnabler. |
void |
deleteTriggerEnabler(Id triggerEnablerId)
Deletes a
TriggerEnabler. |
System |
getSystem()
Gets the
System associated with this session. |
Id |
getSystemId()
Gets the
System Id associated with this
session. |
TriggerEnablerForm |
getTriggerEnablerFormForCreate(Type[] triggerEnablerRecordTypes)
Gets the trigger enabler form for creating new trigger enablers.
|
TriggerEnablerForm |
getTriggerEnablerFormForUpdate(Id triggerEnablerId)
Gets the trigger enabler form for updating an existing trigger
enabler.
|
void |
updateTriggerEnabler(TriggerEnablerForm triggerEnablerForm)
Updates an existing trigger enabler.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getSystemId()
System Id associated with this
session. System Id associated with this sessionmandatory - This method must be implemented. System getSystem() throws OperationFailedException, PermissionDeniedException
System associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canCreateTriggerEnabler()
TriggerEnabler 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 TriggerEnabler creation
is not authorized, true otherwisemandatory - This method must be implemented. boolean canCreateTriggerEnablerWithRecordTypes(Type[] triggerEnablerRecordTypes)
TriggerEnabler
using the desired record types. While
OfferingRulesManager.getTriggerEnablerRecordTypes() can be
used to examine which records are supported, this method tests which
record(s) are required for creating a specific TriggerEnabler.
Providing an empty array tests if a TriggerEnabler
can be created with no records.triggerEnablerRecordTypes - array of trigger enabler record
types true if TriggerEnabler creation
using the specified record Types is supported,
false otherwiseNullArgumentException -
triggerEnablerRecordTypes is null mandatory - This method must be implemented. TriggerEnablerForm getTriggerEnablerFormForCreate(Type[] triggerEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException
triggerEnablerRecordTypes - array of trigger enabler record
typesNullArgumentException -
triggerEnablerRecordTypes is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException - unable to get form for requested
record typesmandatory - This method must be implemented. TriggerEnabler createTriggerEnabler(TriggerEnablerForm triggerEnablerForm) throws OperationFailedException, PermissionDeniedException
TriggerEnabler. triggerEnablerForm - the form for this TriggerEnabler
TriggerEnabler IllegalStateException - triggerEnablerForm
already used in a create transactionInvalidArgumentException - one or more of the form
elements is invalidNullArgumentException - triggerEnablerForm
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException - triggerEnablerForm did
not originate from getTriggerEnablerFormForCreate() mandatory - This method must be implemented. boolean canUpdateTriggerEnablers()
TriggerEnabler 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 TriggerEnabler
modification is not authorized, true otherwisemandatory - This method must be implemented. TriggerEnablerForm getTriggerEnablerFormForUpdate(Id triggerEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
triggerEnablerId - the Id of the
TriggerEnabler NotFoundException - triggerEnablerId is
not foundNullArgumentException - triggerEnablerId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void updateTriggerEnabler(TriggerEnablerForm triggerEnablerForm) throws OperationFailedException, PermissionDeniedException
triggerEnablerForm - the form containing the elements to be
updatedIllegalStateException - triggerEnablerForm
already used in an update transactionInvalidArgumentException - the form contains an invalid
valueNullArgumentException - triggerEnablerForm
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException - triggerEnablerForm
did not originate from
getTriggerEnablerFormForUpdate() mandatory - This method must be implemented. boolean canDeleteTriggerEnablers()
TriggerEnabler 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 TriggerEnabler deletion
is not authorized, true otherwisemandatory - This method must be implemented. void deleteTriggerEnabler(Id triggerEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
TriggerEnabler. triggerEnablerId - the Id of the
TriggerEnabler to removeNotFoundException - triggerEnablerId not
foundNullArgumentException - triggerEnablerId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canManageTriggerEnablerAliases()
Id aliases for trigger
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 TriggerEnabler aliasing
is not authorized, true otherwisemandatory - This method must be implemented. void aliasTriggerEnabler(Id triggerEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Id to a TriggerEnabler for the
purpose of creating compatibility. The primary Id of
the TriggerEnabler is determined by the provider. The
new Id performs as an alias to the primary Id
. If the alias is a pointer to another trigger enabler. it is
reassigned to the given trigger enabler Id. triggerEnablerId - the Id of a
TriggerEnabler aliasId - the alias Id AlreadyExistsException - aliasId is
already assignedNotFoundException - triggerEnablerId not
foundNullArgumentException - triggerEnablerId
or aliasId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.