Interface ProcessProcessorEnablerAdminSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session creates, updates, and deletes
ProcessProcessorEnablers . The data for create and update is provided by
the consumer via the form object. OsidForms are requested for each
create or update and may not be reused.
Create and update operations differ in their usage. To create a
ProcessProcessorEnabler , a ProcessProcessorEnablerForm is
requested using getProcessProcessorEnablerFormForCreate()
specifying the desired record Types or none if no record
Types are needed. The returned ProcessProcessorEnablerForm will
indicate that it is to be used with a create operation and can be used to
examine metdata or validate data prior to creation. Once the
ProcessProcessorEnablerForm is submiited to a create operation, it cannot
be reused with another create operation unless the first operation was
unsuccessful. Each ProcessProcessorEnablerForm corresponds to an
attempted transaction.
For updates, ProcessProcessorEnablerForms are requested to the
ProcessProcessorEnabler Id that is to be updated using
getProcessProcessorEnablerFormForUpdate() . Similarly, the
ProcessProcessorEnablerForm has metadata about the data that can be
updated and it can perform validation before submitting the update. The
ProcessProcessorEnablerForm can only be used once for a successful
update and cannot be reused.
The delete operations delete ProcessProcessorEnablers . To
unmap a ProcessProcessorEnabler from the current Office ,
the ProcessProcessorEnablerOfficeAssignmentSession should be used.
These delete operations attempt to remove the
ProcessProcessorEnabler itself thus removing it from all known
Office catalogs.
This session includes an Id aliasing mechanism to assign an
external Id to an internally assigned Id .
-
Method Summary
Modifier and TypeMethodDescriptionvoidaliasProcessProcessorEnabler(Id processProcessorEnablerId, Id aliasId) Adds anIdto aProcessProcessorEnablerfor the purpose of creating compatibility.booleanTests if this user can createProcessProcessorEnablers.booleancanCreateProcessProcessorEnablerWithRecordTypes(Type[] processProcessorEnablerRecordTypes) Tests if this user can create a singleProcessProcessorEnablerusing the desired record types.booleanTests if this user can deleteProcessProcessorEnablers.booleanTests if this user can manageIdaliases forProcessProcessorEnablersA return of true does not guarantee successful authorization.booleanTests if this user can updateProcessProcessorEnablers.createProcessProcessorEnabler(ProcessProcessorEnablerForm processProcessorEnablerForm) Creates a newProcessProcessorEnabler.voiddeleteProcessProcessorEnabler(Id processProcessorEnablerId) Deletes aProcessProcessorEnabler.Gets theOfficeassociated with this session.Gets theOfficeIdassociated with this session.getProcessProcessorEnablerFormForCreate(Type[] processProcessorEnablerRecordTypes) Gets the process processor enabler form for creating new process processor enablers.getProcessProcessorEnablerFormForUpdate(Id processProcessorEnablerId) Gets the process processor enabler form for updating an existing process processor enabler.voidupdateProcessProcessorEnabler(ProcessProcessorEnablerForm processProcessorEnablerForm) Updates an existing process 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.
-
canCreateProcessProcessorEnablers
boolean canCreateProcessProcessorEnablers()Tests if this user can createProcessProcessorEnablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating aProcessProcessorEnablerwill 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:
falseifProcessProcessorEnablercreation is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canCreateProcessProcessorEnablerWithRecordTypes
Tests if this user can create a singleProcessProcessorEnablerusing the desired record types. WhileWorkflowRulesManager.getProcessProcessorEnablerRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificProcessProcessorEnabler. Providing an empty array tests if aProcessProcessorEnabler can becreated with no records.- Parameters:
processProcessorEnablerRecordTypes- array of process processor enabler record types- Returns:
trueifProcessProcessorEnablercreation using the specified recordTypesis supported,falseotherwise- Throws:
NullArgumentException-processProcessorEnablerRecordTypesisnull- Compliance:
mandatory- This method must be implemented.
-
getProcessProcessorEnablerFormForCreate
ProcessProcessorEnablerForm getProcessProcessorEnablerFormForCreate(Type[] processProcessorEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException Gets the process processor enabler form for creating new process processor enablers. A new form should be requested for each create transaction.- Parameters:
processProcessorEnablerRecordTypes- array of process processor enabler record types- Returns:
- the process processor enabler form
- Throws:
NullArgumentException-processProcessorEnablerRecordTypesisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException- unable to get form for requested record types- Compliance:
mandatory- This method must be implemented.
-
createProcessProcessorEnabler
ProcessProcessorEnabler createProcessProcessorEnabler(ProcessProcessorEnablerForm processProcessorEnablerForm) throws OperationFailedException, PermissionDeniedException Creates a newProcessProcessorEnabler.- Parameters:
processProcessorEnablerForm- the form for thisProcessProcessorEnabler- Returns:
- the new
ProcessProcessorEnabler - Throws:
IllegalStateException-processProcessorEnablerFormalready used in a create transactionInvalidArgumentException- one or more of the form elements is invalidNullArgumentException-processProcessorEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-processProcessorEnablerFormdid not originate fromgetProcessProcessorEnablerFormForCreate()- Compliance:
mandatory- This method must be implemented.
-
canUpdateProcessProcessorEnablers
boolean canUpdateProcessProcessorEnablers()Tests if this user can updateProcessProcessorEnablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating aProcessProcessorEnablerwill 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:
falseifProcessProcessorEnablermodification is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getProcessProcessorEnablerFormForUpdate
ProcessProcessorEnablerForm getProcessProcessorEnablerFormForUpdate(Id processProcessorEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the process processor enabler form for updating an existing process processor enabler. A new process processor enabler form should be requested for each update transaction.- Parameters:
processProcessorEnablerId- theIdof theProcessProcessorEnabler- Returns:
- the process processor enabler form
- Throws:
NotFoundException-processProcessorEnablerIdis not foundNullArgumentException-processProcessorEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
updateProcessProcessorEnabler
void updateProcessProcessorEnabler(ProcessProcessorEnablerForm processProcessorEnablerForm) throws OperationFailedException, PermissionDeniedException Updates an existing process processor enabler.- Parameters:
processProcessorEnablerForm- the form containing the elements to be updated- Throws:
IllegalStateException-processProcessorEnablerFormalready used in an update transactionInvalidArgumentException- the form contains an invalid valueNullArgumentException-processProcessorEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-processProcessorEnablerFormdid not originate fromgetProcessProcessorEnablerFormForUpdate()- Compliance:
mandatory- This method must be implemented.
-
canDeleteProcessProcessorEnablers
boolean canDeleteProcessProcessorEnablers()Tests if this user can deleteProcessProcessorEnablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting aProcessProcessorEnablerwill 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:
falseifProcessProcessorEnablerdeletion is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
deleteProcessProcessorEnabler
void deleteProcessProcessorEnabler(Id processProcessorEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Deletes aProcessProcessorEnabler.- Parameters:
processProcessorEnablerId- theIdof theProcessProcessorEnablerto remove- Throws:
NotFoundException-processProcessorEnablerIdnot foundNullArgumentException-processProcessorEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageProcessProcessorEnablerAliases
boolean canManageProcessProcessorEnablerAliases()Tests if this user can manageIdaliases forProcessProcessorEnablersA 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:
falseifProcessProcessorEnableraliasing is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
aliasProcessProcessorEnabler
void aliasProcessProcessorEnabler(Id processProcessorEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds anIdto aProcessProcessorEnablerfor the purpose of creating compatibility. The primaryIdof theProcessProcessorEnableris determined by the provider. The newIdperforms as an alias to the primaryId. If the alias is a pointer to another process processor enabler, it is reassigned to the given process processor enabler Id.- Parameters:
processProcessorEnablerId- theIdof aProcessProcessorEnableraliasId- the aliasId- Throws:
AlreadyExistsException-aliasIdis already assignedNotFoundException-processProcessorEnablerIdnot foundNullArgumentException-processProcessorEnablerIdoraliasIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-