Interface StepProcessorEnablerAdminSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session creates and removes step processor enablers. The data for
create and update is provided via the StepProcessorEnablerForm .
-
Method Summary
Modifier and TypeMethodDescriptionvoidaliasStepProcessorEnabler(Id stepProcessorEnablerId, Id aliasId) Adds aIdto aStepProcessorEnablerfor the purpose of creating compatibility.booleanTests if this user can create step processor enablers.booleancanCreateStepProcessorEnablerWithRecordTypes(Type[] stepProcessorEnablerRecordTypes) Tests if this user can create a singleStepProcessorEnablerusing the desired record types.booleanTests if this user can delete step processor enablers.booleanTests if this user can manageIdaliases for step processor enablers.booleanTests if this user can update step processor enablers.createStepProcessorEnabler(StepProcessorEnablerForm stepProcessorEnablerForm) Creates a newStepProcessorEnabler.voiddeleteStepProcessorEnabler(Id stepProcessorEnablerId) Deletes aStepProcessorEnabler.Gets theOfficeassociated with this session.Gets theOfficeIdassociated with this session.getStepProcessorEnablerFormForCreate(Type[] stepProcessorEnablerRecordTypes) Gets the step processor enabler form for creating new step processor enablers.getStepProcessorEnablerFormForUpdate(Id stepProcessorEnablerId) Gets the step processor enabler form for updating an existing step processor enabler.voidupdateStepProcessorEnabler(StepProcessorEnablerForm stepProcessorEnablerForm) Updates an existing step processor enabler.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
-
getOfficeId
Id getOfficeId()Gets theOfficeIdassociated with this session.- Returns:
- the
Office Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getOffice
Gets theOfficeassociated with this session.- Returns:
- the office
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canCreateStepProcessorEnabler
boolean canCreateStepProcessorEnabler()Tests if this user can create step processor enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating aStepProcessorEnablerwill result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer create operations to an unauthorized user.- Returns:
falseifStepProcessorEnablercreation is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canCreateStepProcessorEnablerWithRecordTypes
Tests if this user can create a singleStepProcessorEnablerusing the desired record types. WhileWorkflowRulesManager.getStepProcessorEnablerRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificStepProcessorEnabler. Providing an empty array tests if aStepProcessorEnablercan be created with no records.- Parameters:
stepProcessorEnablerRecordTypes- array of step processor enabler types- Returns:
trueifStepProcessorEnablercreation using the specified recordTypesis supported,falseotherwise- Throws:
NullArgumentException-stepProcessorEnablerRecordTypesisnull- Compliance:
mandatory- This method must be implemented.
-
getStepProcessorEnablerFormForCreate
StepProcessorEnablerForm getStepProcessorEnablerFormForCreate(Type[] stepProcessorEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException Gets the step processor enabler form for creating new step processor enablers. A new form should be requested for each create transaction.- Parameters:
stepProcessorEnablerRecordTypes- array of step processor enabler types- Returns:
- the step processor enabler form
- Throws:
NullArgumentException-stepProcessorEnablerRecordTypesisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException- unable to get form for requested record types- Compliance:
mandatory- This method must be implemented.
-
createStepProcessorEnabler
StepProcessorEnabler createStepProcessorEnabler(StepProcessorEnablerForm stepProcessorEnablerForm) throws OperationFailedException, PermissionDeniedException Creates a newStepProcessorEnabler.- Parameters:
stepProcessorEnablerForm- the form for thisStepProcessorEnabler- Returns:
- the new
StepProcessorEnabler - Throws:
IllegalStateException-stepProcessorEnablerFormalready used in a create transactionInvalidArgumentException- one or more of the form elements is invalidNullArgumentException-stepProcessorEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-stepProcessorEnablerFormdid not originate fromgetStepProcessorEnablerFormForCreate()- Compliance:
mandatory- This method must be implemented.
-
canUpdateStepProcessorEnablers
boolean canUpdateStepProcessorEnablers()Tests if this user can update step processor enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating aStepProcessorEnablerwill result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer update operations to an unauthorized user.- Returns:
falseifStepProcessorEnablermodification is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getStepProcessorEnablerFormForUpdate
StepProcessorEnablerForm getStepProcessorEnablerFormForUpdate(Id stepProcessorEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the step processor enabler form for updating an existing step processor enabler. A new step processor enabler form should be requested for each update transaction.- Parameters:
stepProcessorEnablerId- theIdof theStepProcessorEnabler- Returns:
- the step processor enabler form
- Throws:
NotFoundException-stepProcessorEnablerIdis not foundNullArgumentException-stepProcessorEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
updateStepProcessorEnabler
void updateStepProcessorEnabler(StepProcessorEnablerForm stepProcessorEnablerForm) throws OperationFailedException, PermissionDeniedException Updates an existing step processor enabler.- Parameters:
stepProcessorEnablerForm- the form containing the elements to be updated- Throws:
IllegalStateException-stepProcessorEnablerFormalready used in an update transactionInvalidArgumentException- the form contains an invalid valueNullArgumentException-stepProcessorEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-stepProcessorEnablerFormdid not originate fromgetStepProcessorEnablerFormForUpdate()- Compliance:
mandatory- This method must be implemented.
-
canDeleteStepProcessorEnablers
boolean canDeleteStepProcessorEnablers()Tests if this user can delete step processor enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting aStepProcessorEnablerwill result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer delete operations to an unauthorized user.- Returns:
falseifStepProcessorEnablerdeletion is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
deleteStepProcessorEnabler
void deleteStepProcessorEnabler(Id stepProcessorEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Deletes aStepProcessorEnabler.- Parameters:
stepProcessorEnablerId- theIdof theStepProcessorEnablerto remove- Throws:
NotFoundException-stepProcessorEnablerIdnot foundNullArgumentException-stepProcessorEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageStepProcessorEnablerAliases
boolean canManageStepProcessorEnablerAliases()Tests if this user can manageIdaliases for step processor 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 aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.- Returns:
falseifStepProcessorEnableraliasing is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
aliasStepProcessorEnabler
void aliasStepProcessorEnabler(Id stepProcessorEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds aIdto aStepProcessorEnablerfor the purpose of creating compatibility. The primaryIdof theStepProcessorEnableris determined by the provider. The newIdperforms as an alias to the primaryId. If the alias is a pointer to another step processor enabler. it is reassigned to the given step processor enablerId.- Parameters:
stepProcessorEnablerId- theIdof aStepProcessorEnableraliasId- the aliasId- Throws:
AlreadyExistsException-aliasIdis already assignedNotFoundException-stepProcessorEnablerIdnot foundNullArgumentException-stepProcessorEnablerIdoraliasIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-