public interface ProcessEnablerAdminSession extends OsidSession
This session creates and removes process enablers. The data for create
and update is provided via the ProcessEnablerForm.
| Modifier and Type | Method and Description |
|---|---|
void |
aliasProcessEnabler(Id processEnablerId,
Id aliasId)
Adds an
Id to a ProcessEnabler for the
purpose of creating compatibility. |
boolean |
canCreateProcessEnabler()
Tests if this user can create process enablers.
|
boolean |
canCreateProcessEnablerWithRecordTypes(Type[] processEnablerRecordTypes)
Tests if this user can create a single
ProcessEnabler
using the desired record types. |
boolean |
canDeleteProcessEnablers()
Tests if this user can delete process enablers.
|
boolean |
canManageProcessEnablerAliases()
Tests if this user can manage
Id aliases for process
enablers. |
boolean |
canUpdateProcessEnablers()
Tests if this user can update process enablers.
|
ProcessEnabler |
createProcessEnabler(ProcessEnablerForm processEnablerForm)
Creates a new
ProcessEnabler. |
void |
deleteProcessEnabler(Id processEnablerId)
Deletes a
ProcessEnabler. |
Office |
getOffice()
Gets the
Office associated with this session. |
Id |
getOfficeId()
Gets the
Office Id associated with this
session. |
ProcessEnablerForm |
getProcessEnablerFormForCreate(Type[] processEnablerRecordTypes)
Gets the process enabler form for creating new process enablers.
|
ProcessEnablerForm |
getProcessEnablerFormForUpdate(Id processEnablerId)
Gets the process enabler form for updating an existing process
enabler.
|
void |
updateProcessEnabler(ProcessEnablerForm processEnablerForm)
Updates an existing process enabler.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getOfficeId()
Office Id associated with this
session. Office Id associated with this sessionmandatory - This method must be implemented. Office getOffice() throws OperationFailedException, PermissionDeniedException
Office associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canCreateProcessEnabler()
ProcessEnabler 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 ProcessEnabler creation
is not authorized, true otherwisemandatory - This method must be implemented. boolean canCreateProcessEnablerWithRecordTypes(Type[] processEnablerRecordTypes)
ProcessEnabler
using the desired record types. While
WorkflowRulesManager.getProcessEnablerRecordTypes() can be
used to examine which records are supported, this method tests which
record(s) are required for creating a specific ProcessEnabler.
Providing an empty array tests if a ProcessEnabler
can be created with no records.processEnablerRecordTypes - array of process enabler record
types true if ProcessEnabler creation
using the specified record Types is supported,
false otherwiseNullArgumentException -
processEnablerRecordTypes is null mandatory - This method must be implemented. ProcessEnablerForm getProcessEnablerFormForCreate(Type[] processEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException
processEnablerRecordTypes - array of process enabler record
typesNullArgumentException -
processEnablerRecordTypes is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException - unable to get form for requested
record typesmandatory - This method must be implemented. ProcessEnabler createProcessEnabler(ProcessEnablerForm processEnablerForm) throws OperationFailedException, PermissionDeniedException
ProcessEnabler. processEnablerForm - the form for this ProcessEnabler
ProcessEnabler IllegalStateException - processEnablerForm
already used in a create transactionInvalidArgumentException - one or more of the form
elements is invalidNullArgumentException - processEnablerForm
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException - processEnablerForm
did not originate from
getProcessEnablerFormForCreate() mandatory - This method must be implemented. boolean canUpdateProcessEnablers()
ProcessEnabler 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 ProcessEnabler
modification is not authorized, true otherwisemandatory - This method must be implemented. ProcessEnablerForm getProcessEnablerFormForUpdate(Id processEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
processEnablerId - the Id of the
ProcessEnabler NotFoundException - processEnablerId is
not foundNullArgumentException - processEnablerId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void updateProcessEnabler(ProcessEnablerForm processEnablerForm) throws OperationFailedException, PermissionDeniedException
processEnablerForm - the form containing the elements to be
updatedIllegalStateException - processEnablerForm
already used in an update transactionInvalidArgumentException - the form contains an invalid
valueNullArgumentException - processEnablerForm
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException - processEnablerForm
did not originate from
getProcessEnablerFormForUpdate() mandatory - This method must be implemented. boolean canDeleteProcessEnablers()
ProcessEnabler 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 ProcessEnabler deletion
is not authorized, true otherwisemandatory - This method must be implemented. void deleteProcessEnabler(Id processEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ProcessEnabler. processEnablerId - the Id of the
ProcessEnabler to removeNotFoundException - processEnablerId not
foundNullArgumentException - processEnablerId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canManageProcessEnablerAliases()
Id aliases for process
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 ProcessEnabler aliasing
is not authorized, true otherwisemandatory - This method must be implemented. void aliasProcessEnabler(Id processEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Id to a ProcessEnabler for the
purpose of creating compatibility. The primary Id of
the ProcessEnabler is determined by the provider. The
new Id performs as an alias to the primary Id
. If the alias is a pointer to another process enabler. it is
reassigned to the given process enabler Id. processEnablerId - the Id of a
ProcessEnabler aliasId - the alias Id AlreadyExistsException - aliasId is
already assignedNotFoundException - processEnablerId not
foundNullArgumentException - processEnablerId
or aliasId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.