Interface IssueProcessorAdminSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session creates, updates, and deletes IssueProcessors .
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 an
IssueProcessor , an IssueProcessorForm is requested using
getIssueProcessorFormForCreate( ) specifying the desired record
Types or none if no record Types are needed. The returned
IssueProcessornForm 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 IssueProcessorForm is submiited to a create
operation, it cannot be reused with another create operation unless the
first operation was unsuccessful. Each IssueProcessornForm
corresponds to an attempted transaction.
For updates, IssueProcessornForms are requested to the
IssueProcessor Id that is to be updated using
getIssueProcessorFormForUpdate() . Similarly, the
IssueProcessorForm has metadata about the data that can be updated and it
can perform validation before submitting the update. The
IssueProcessorForm can only be used once for a successful update and
cannot be reused.
The delete operations delete IssueProcessors . To unmap an
IssueProcessor from the current Oubliette , the
IssueProcessorOublietteeAssignmentSessio n should be used. These delete
operations attempt to remove the IssueProcessor itself thus
removing it from all known Oubliette catalogs.
This session includes an Id aliasing mechanism to assign an
external Id to an internally assigned Id .
-
Method Summary
Modifier and TypeMethodDescriptionvoidaliasIssueProcessor(Id issueProcessorId, Id aliasId) Adds anIdto anIssueProcessorfor the purpose of creating compatibility.booleanTests if this user can createIssueProcessors.booleancanCreateIssueProcessorWithRecordTypes(Type[] issueProcessorRecordTypes) Tests if this user can create a singleIssueProcessorusing the desired record types.booleanTests if this user can deleteIssueProcessors.booleanTests if this user can manageIdaliases forIssueProcessorsA return of true does not guarantee successful authorization.booleanTests if this user can updateIssueProcessors.createIssueProcessor(IssueProcessorForm issueProcessorForm) Creates a newIssueProcessor.voiddeleteIssueProcessor(Id issueProcessorId) Deletes anIssueProcessor.getIssueProcessorFormForCreate(Type[] issueProcessorRecordTypes) Gets the issue processor form for creating new issue processors.getIssueProcessorFormForUpdate(Id issueProcessorId) Gets the issue processor form for updating an existing issue processor.Gets theOublietteassociated with this session.Gets theOublietteIdassociated with this session.voidupdateIssueProcessor(IssueProcessorForm issueProcessorForm) Updates an existing issue 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
-
getOublietteId
Id getOublietteId()Gets theOublietteIdassociated with this session.- Returns:
- the
Oubliette Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getOubliette
Gets theOublietteassociated with this session.- Returns:
- the oubliette
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canCreateIssueProcessors
boolean canCreateIssueProcessors()Tests if this user can createIssueProcessors. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating anIssueProcessorwill 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:
falseifIssueProcessorcreation is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canCreateIssueProcessorWithRecordTypes
Tests if this user can create a singleIssueProcessorusing the desired record types. WhileHold.rulesManager.getIssueProcessorRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificIssueProcessor. Providing an empty array tests if anIssueProcessorcan be created with no records.- Parameters:
issueProcessorRecordTypes- array of issue processor record types- Returns:
trueifIssueProcessorcreation using the specified recordTypesis supported,falseotherwise- Throws:
NullArgumentException-issueProcessorRecordTypesisnull- Compliance:
mandatory- This method must be implemented.
-
getIssueProcessorFormForCreate
IssueProcessorForm getIssueProcessorFormForCreate(Type[] issueProcessorRecordTypes) throws OperationFailedException, PermissionDeniedException Gets the issue processor form for creating new issue processors. A new form should be requested for each create transaction.- Parameters:
issueProcessorRecordTypes- array of issue processor record types- Returns:
- the issue processor form
- Throws:
NullArgumentException-issueProcessorRecordTypesisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException- unable to get form for requested record types- Compliance:
mandatory- This method must be implemented.
-
createIssueProcessor
IssueProcessor createIssueProcessor(IssueProcessorForm issueProcessorForm) throws OperationFailedException, PermissionDeniedException Creates a newIssueProcessor.- Parameters:
issueProcessorForm- the form for thisIssueProcessor- Returns:
- the new
IssueProcessor - Throws:
IllegalStateException-issueProcessorFormalready used in a create transactionInvalidArgumentException- one or more of the form elements is invalidNullArgumentException-issueProcessorFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-issueProcessorFormdid not originate fromgetIssueProcessorFormForCreate()- Compliance:
mandatory- This method must be implemented.
-
canUpdateIssueProcessors
boolean canUpdateIssueProcessors()Tests if this user can updateIssueProcessors. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating anIssueProcessorwill 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:
falseifIssueProcessormodification is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getIssueProcessorFormForUpdate
IssueProcessorForm getIssueProcessorFormForUpdate(Id issueProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the issue processor form for updating an existing issue processor. A new issue processor form should be requested for each update transaction.- Parameters:
issueProcessorId- theIdof theIssueProcessor- Returns:
- the issue processor form
- Throws:
NotFoundException-issueProcessorIdis not foundNullArgumentException-issueProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
updateIssueProcessor
void updateIssueProcessor(IssueProcessorForm issueProcessorForm) throws OperationFailedException, PermissionDeniedException Updates an existing issue processor.- Parameters:
issueProcessorForm- the form containing the elements to be updated- Throws:
IllegalStateException-issueProcessorFormalready used in an update transactionInvalidArgumentException- the form contains an invalid valueNullArgumentException-issueProcessorFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-issueProcessorFormdid not originate fromgetIssueProcessorFormForUpdate()- Compliance:
mandatory- This method must be implemented.
-
canDeleteIssueProcessors
boolean canDeleteIssueProcessors()Tests if this user can deleteIssueProcessors. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting anIssueProcessorwill 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:
falseifIssueProcessordeletion is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
deleteIssueProcessor
void deleteIssueProcessor(Id issueProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Deletes anIssueProcessor.- Parameters:
issueProcessorId- theIdof theIssueProcessorto remove- Throws:
NotFoundException-issueProcessorIdnot foundNullArgumentException-issueProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageIssueProcessorAliases
boolean canManageIssueProcessorAliases()Tests if this user can manageIdaliases forIssueProcessorsA 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:
falseifIssueProcessoraliasing is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
aliasIssueProcessor
void aliasIssueProcessor(Id issueProcessorId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds anIdto anIssueProcessorfor the purpose of creating compatibility. The primaryIdof theIssueProcessoris determined by the provider. The newIdperforms as an alias to the primaryId. If the alias is a pointer to another issue processor, it is reassigned to the given issue processorId.- Parameters:
issueProcessorId- theIdof anIssueProcessoraliasId- the aliasId- Throws:
AlreadyExistsException-aliasIdis already assignedNotFoundException-issueProcessorIdnot foundNullArgumentException-issueProcessorIdoraliasIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-