Interface StepProcessorAdminSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session creates and removes step processors. The data for create
and update is provided via the StepProcessorForm .
-
Method Summary
Modifier and TypeMethodDescriptionvoidaliasStepProcessor(Id stepProcessorId, Id aliasId) Adds aIdto aStepProcessorfor the purpose of creating compatibility.booleanTests if this user can create step processors.booleancanCreateStepProcessorWithRecordTypes(Type[] stepProcessorRecordTypes) Tests if this user can create a singleStepProcessorusing the desired record types.booleanTests if this user can delete step processors.booleanTests if this user can manageIdaliases for step processors.booleanTests if this user can update step processors.createStepProcessor(StepProcessorForm stepProcessorForm) Creates a newStepProcessor.voiddeleteStepProcessor(Id stepProcessorId) Deletes aStepProcessor.Gets theOfficeassociated with this session.Gets theOfficeIdassociated with this session.getStepProcessorFormForCreate(Type[] stepProcessorRecordTypes) Gets the step processor form for creating new step processors.getStepProcessorFormForUpdate(Id stepProcessorId) Gets the step processor form for updating an existing step processor.voidupdateStepProcessor(StepProcessorForm stepProcessorForm) Updates an existing step processor.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.
-
canCreateStepProcessor
boolean canCreateStepProcessor()Tests if this user can create step processors. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating aStepProcessorwill 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:
falseifStepProcessorcreation is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canCreateStepProcessorWithRecordTypes
Tests if this user can create a singleStepProcessorusing the desired record types. WhileWorkflowRulesManager.getStepProcessorRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificStepProcessor. Providing an empty array tests if aStepProcessorcan be created with no records.- Parameters:
stepProcessorRecordTypes- array of step processor record types- Returns:
trueifStepProcessorcreation using the specified recordTypesis supported,falseotherwise- Throws:
NullArgumentException-stepProcessorRecordTypesisnull- Compliance:
mandatory- This method must be implemented.
-
getStepProcessorFormForCreate
StepProcessorForm getStepProcessorFormForCreate(Type[] stepProcessorRecordTypes) throws OperationFailedException, PermissionDeniedException Gets the step processor form for creating new step processors. A new form should be requested for each create transaction.- Parameters:
stepProcessorRecordTypes- array of step processor record types- Returns:
- the step processor form
- Throws:
NullArgumentException-stepProcessorRecordTypesisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException- unable to get form for requested record types- Compliance:
mandatory- This method must be implemented.
-
createStepProcessor
StepProcessor createStepProcessor(StepProcessorForm stepProcessorForm) throws OperationFailedException, PermissionDeniedException Creates a newStepProcessor.- Parameters:
stepProcessorForm- the form for thisStepProcessor- Returns:
- the new
StepProcessor - Throws:
IllegalStateException-stepProcessorFormalready used in a create transactionInvalidArgumentException- one or more of the form elements is invalidNullArgumentException-stepProcessorFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-stepProcessorForm did not originate from getStepProcessorFormForCreate()- Compliance:
mandatory- This method must be implemented.
-
canUpdateStepProcessors
boolean canUpdateStepProcessors()Tests if this user can update step processors. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating aStepProcessorwill 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:
falseifStepProcessormodification is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getStepProcessorFormForUpdate
StepProcessorForm getStepProcessorFormForUpdate(Id stepProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the step processor form for updating an existing step processor. A new step processor form should be requested for each update transaction.- Parameters:
stepProcessorId- theIdof theStepProcessor- Returns:
- the step processor form
- Throws:
NotFoundException-stepProcessorIdis not foundNullArgumentException-stepProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
updateStepProcessor
void updateStepProcessor(StepProcessorForm stepProcessorForm) throws OperationFailedException, PermissionDeniedException Updates an existing step processor.- Parameters:
stepProcessorForm- the form containing the elements to be updated- Throws:
IllegalStateException-stepProcessorFormalready used in an update transactionInvalidArgumentException- the form contains an invalid valueNullArgumentException-stepProcessorFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-stepProcessorForm did not originate from getStepProcessorFormForUpdate()- Compliance:
mandatory- This method must be implemented.
-
canDeleteStepProcessors
boolean canDeleteStepProcessors()Tests if this user can delete step processors. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting aStepProcessorwill 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:
falseifStepProcessordeletion is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
deleteStepProcessor
void deleteStepProcessor(Id stepProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Deletes aStepProcessor.- Parameters:
stepProcessorId- theIdof theStepProcessorto remove- Throws:
NotFoundException-stepProcessorIdnot foundNullArgumentException-stepProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageStepProcessorAliases
boolean canManageStepProcessorAliases()Tests if this user can manageIdaliases for step processors. 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:
falseifStepProcessoraliasing is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
aliasStepProcessor
void aliasStepProcessor(Id stepProcessorId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds aIdto aStepProcessorfor the purpose of creating compatibility. The primaryIdof theStepProcessoris determined by the provider. The newIdperforms as an alias to the primaryId. If the alias is a pointer to another step processor. it is reassigned to the given step processorId.- Parameters:
stepProcessorId- theIdof aStepProcessoraliasId- the aliasId- Throws:
AlreadyExistsException-aliasIdis already assignedNotFoundException-stepProcessorIdnot foundNullArgumentException-stepProcessorIdoraliasIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-