Interface StepConstrainerEnablerAdminSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session creates and removes step constrainer enablers. The data
for create and update is provided via the
StepConstrainerEnablerForm .
-
Method Summary
Modifier and TypeMethodDescriptionvoidaliasStepConstrainerEnabler(Id stepConstrainerEnablerId, Id aliasId) Adds aIdto aStepConstrainerEnablerfor the purpose of creating compatibility.booleanTests if this user can create step constrainer enablers.booleancanCreateStepConstrainerEnablerWithRecordTypes(Type[] stepConstrainerEnablerRecordTypes) Tests if this user can create a singleStepConstrainerEnablerusing the desired record types.booleanTests if this user can delete step constrainer enablers.booleanTests if this user can manageIdaliases for step constrainer enablers.booleanTests if this user can update step constrainer enablers.createStepConstrainerEnabler(StepConstrainerEnablerForm stepConstrainerEnablerForm) Creates a newStepConstrainerEnabler.voiddeleteStepConstrainerEnabler(Id stepConstrainerEnablerId) Deletes aStepConstrainerEnabler.Gets theOfficeassociated with this session.Gets theOfficeIdassociated with this session.getStepConstrainerEnablerFormForCreate(Type[] stepConstrainerEnablerRecordTypes) Gets the step constrainer enabler form for creating new step constrainer enablers.getStepConstrainerEnablerFormForUpdate(Id stepConstrainerEnablerId) Gets the step constrainer enabler form for updating an existing step constrainer enabler.voidupdateStepConstrainerEnabler(StepConstrainerEnablerForm stepConstrainerEnablerForm) Updates an existing step constrainer 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.
-
canCreateStepConstrainerEnabler
boolean canCreateStepConstrainerEnabler()Tests if this user can create step constrainer enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating aStepConstrainerEnablerwill 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:
falseifStepConstrainerEnablercreation is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canCreateStepConstrainerEnablerWithRecordTypes
Tests if this user can create a singleStepConstrainerEnablerusing the desired record types. WhileWorkflowRulesManager.getStepConstrainerEnablerRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificStepConstrainerEnabler. Providing an empty array tests if aStepConstrainerEnablercan be created with no records.- Parameters:
stepConstrainerEnablerRecordTypes- array of step constrainer enabler record types- Returns:
trueifStepConstrainerEnablercreation using the specified recordTypesis supported,falseotherwise- Throws:
NullArgumentException-stepConstrainerEnablerRecordTypesisnull- Compliance:
mandatory- This method must be implemented.
-
getStepConstrainerEnablerFormForCreate
StepConstrainerEnablerForm getStepConstrainerEnablerFormForCreate(Type[] stepConstrainerEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException Gets the step constrainer enabler form for creating new step constrainer enablers. A new form should be requested for each create transaction.- Parameters:
stepConstrainerEnablerRecordTypes- array of step constrainer enabler record types- Returns:
- the step constrainer enabler form
- Throws:
NullArgumentException-stepConstrainerEnablerRecordTypesisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException- unable to get form for requested record types- Compliance:
mandatory- This method must be implemented.
-
createStepConstrainerEnabler
StepConstrainerEnabler createStepConstrainerEnabler(StepConstrainerEnablerForm stepConstrainerEnablerForm) throws OperationFailedException, PermissionDeniedException Creates a newStepConstrainerEnabler.- Parameters:
stepConstrainerEnablerForm- the form for thisStepConstrainerEnabler- Returns:
- the new
StepConstrainerEnabler - Throws:
IllegalStateException-stepConstrainerEnablerFormalready used in a create transactionInvalidArgumentException- one or more of the form elements is invalidNullArgumentException-stepConstrainerEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-stepConstrainerEnablerFormdid not originate fromgetStepConstrainerEnablerFormForCreate()- Compliance:
mandatory- This method must be implemented.
-
canUpdateStepConstrainerEnablers
boolean canUpdateStepConstrainerEnablers()Tests if this user can update step constrainer enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating aStepConstrainerEnablerwill 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:
falseifStepConstrainerEnablermodification is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getStepConstrainerEnablerFormForUpdate
StepConstrainerEnablerForm getStepConstrainerEnablerFormForUpdate(Id stepConstrainerEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the step constrainer enabler form for updating an existing step constrainer enabler. A new step constrainer enabler form should be requested for each update transaction.- Parameters:
stepConstrainerEnablerId- theIdof theStepConstrainerEnabler- Returns:
- the step constrainer enabler form
- Throws:
NotFoundException-stepConstrainerEnablerIdis not foundNullArgumentException-stepConstrainerEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
updateStepConstrainerEnabler
void updateStepConstrainerEnabler(StepConstrainerEnablerForm stepConstrainerEnablerForm) throws OperationFailedException, PermissionDeniedException Updates an existing step constrainer enabler.- Parameters:
stepConstrainerEnablerForm- the form containing the elements to be updated- Throws:
IllegalStateException-stepConstrainerEnablerFormalready used in an update transactionInvalidArgumentException- the form contains an invalid valueNullArgumentException-stepConstrainerEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-stepConstrainerEnablerFormdid not originate fromgetStepConstrainerEnablerFormForUpdate()- Compliance:
mandatory- This method must be implemented.
-
canDeleteStepConstrainerEnablers
boolean canDeleteStepConstrainerEnablers()Tests if this user can delete step constrainer enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting aStepConstrainerEnablerwill 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:
falseifStepConstrainerEnablerdeletion is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
deleteStepConstrainerEnabler
void deleteStepConstrainerEnabler(Id stepConstrainerEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Deletes aStepConstrainerEnabler.- Parameters:
stepConstrainerEnablerId- theIdof theStepConstrainerEnablerto remove- Throws:
NotFoundException-stepConstrainerEnablerIdnot foundNullArgumentException-stepConstrainerEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageStepConstrainerEnablerAliases
boolean canManageStepConstrainerEnablerAliases()Tests if this user can manageIdaliases for step constrainer 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:
falseifStepConstrainerEnableraliasing is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
aliasStepConstrainerEnabler
void aliasStepConstrainerEnabler(Id stepConstrainerEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds aIdto aStepConstrainerEnablerfor the purpose of creating compatibility. The primaryIdof theStepConstrainerEnableris determined by the provider. The newIdperforms as an alias to the primaryId. If the alias is a pointer to another step constrainer enabler. it is reassigned to the given step constrainer enablerId.- Parameters:
stepConstrainerEnablerId- theIdof aStepConstrainerEnableraliasId- the aliasId- Throws:
AlreadyExistsException-aliasIdis already assignedNotFoundException-stepConstrainerEnablerIdnot foundNullArgumentException-stepConstrainerEnablerIdoraliasIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-