OSID Logo
OSID Specifications
provisioning package
Version 3.0.0
Release Candidate Preview
Interfaceosid.provisioning.RequestTransactionAdminSession
Implementsosid.OsidSession
Description

This session creates, updates, and deletes RequestTransactions. 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. Once a Request is created, it has not been submitted. submitRequestTransaction submits a RequesTransactiont for processing. Constraints on update and delete may vary between creation and submission.

Create and update operations differ in their usage. To create a RequestTransaction, a RequestTransactionForm is requested using getRequestTransactionFormForCreate() specifying the desired record Types or none if no record Types are needed. The returned RequestTransactionForm 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 RequestTransactionForm is submiited to a create operation, it cannot be reused with another create operation unless the first operation was unsuccessful. Each RequestTransactionForm corresponds to an attempted transaction.

For updates, RequestTransactionForms are requested to the RequestTransaction Id that is to be updated using getRequestTransactionFormForUpdate(). Similarly, the RequestTransactionForm has metadata about the data that can be updated and it can perform validation before submitting the update. The RequestTransactionForm can only be used once for a successful update and cannot be reused.

The delete operations delete RequestTransactions. To unmap a RequestTransaction from the current Distributor, the RequestTransactionDistributorAssignmentSession should be used. These delete operations attempt to remove the ReqeustTransaction itself thus removing it from all known Distributor catalogs.

This session includes an Id aliasing mechanism to assign an external Id to an internally assigned Id.

MethodgetDistributorId
Description

Gets the Distributor Id associated with this session.

Returnosid.id.Idthe Distributor Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetDistributor
Description

Gets the Distributor associated with this session.

Returnosid.provisioning.Distributorthe distributor
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanCreateRequestTransactions
Description

Tests if this user can create RequestTransactions. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating a Request will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer transaction operations to an unauthorized user.

Returnboolean false if RequestTransaction creation is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanCreateRequestTransactionsWithRecordTypes
Description

Tests if this user can create a single RequestTransaction using the desired record types. While ProvisioningManager.getRequestTransactionRecordTypes() can be used to examine which records are supported, this method tests which record(s) are required for creating a specific RequestTransaction. Providing an empty array tests if a RequestTransaction can be created with no records.

Parametersosid.type.Type[]requestTransactionRecordTypesarray of request transaction record types
Returnboolean true if RequestTransaction creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT requestTransactionRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetRequestTransactionFormForCreate
Description

Gets the request transaction form for creating new request transactionss. A new form should be requested for each create transaction.

Parametersosid.id.IdbrokerIda broker Id
osid.id.IdresourceIda resource Id
osid.type.Type[]requestTransactionRecordTypesarray of request transaction record types
Returnosid.provisioning.RequestTransactionFormthe request transaction form
ErrorsNOT_FOUND brokerId or resourceId is not found
NULL_ARGUMENT brokerId, resourceId, or requestTransactionRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateRequestTransaction
Description

Creates a new RequestTransaction.

Parametersosid.provisioning.RequestTransactionFormrequestTransactionFormthe form for this RequestTransaction
Returnosid.provisioning.RequestTransactionthe new RequestTransaction
ErrorsILLEGAL_STATE requestTransactionForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENT requestTransactionForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED requestForm did not originate from getRequestTransactionFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateRequestTransactions
Description

Tests if this user can update RequestTransactions. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating a RequestTransaction will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer update operations to an unauthorized user.

Returnboolean false if RequestTransaction modification is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRequestTransactionFormForUpdate
Description

Gets the request transaction form for updating an existing request. A new request transaction form should be requested for each update transaction.

Parametersosid.id.IdrequestTransactionIdthe Id of the RequestTransaction
Returnosid.provisioning.RequestTransactionFormthe request transaction form
ErrorsNOT_FOUND requestTransactionId is not found
NULL_ARGUMENT requestTransactionId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateRequestTransaction
Description

Updates an existing request transaction.

Parametersosid.provisioning.RequestTransactionFormrequestTransactionFormthe form containing the elements to be updated
ErrorsILLEGAL_STATE requestTransactionForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENT requestTransactionForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED requestForm did not originate from getRequestTransactionFormForUpdate()
CompliancemandatoryThis method must be implemented.
MethodsubmitRequestTransaction
Description

Submits a RequestTransaction and the related requests.

Parametersosid.id.IdrequestTransactionIdthe Id of the request transaction to submit
ErrorsNOT_FOUND requestTransactionId is not found
NULL_ARGUMENT requestTransactionId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanCancelRequestTransactions
Description

Tests if this user can cancel RequestTransactions. A return of true does not guarantee successful authorization. A return of false indicates that it is known canceling a RequestTransaction will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer cancel operations to an unauthorized user.

Returnboolean false if RequestTransaction cancelation is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcancelRequestTransaction
Description

Cancels a RequestTransaction and the related requests.

Parametersosid.id.IdrequestTransactionIdthe Id of the request transaction to cancel
ErrorsNOT_FOUND requestTransactionId is not found
NULL_ARGUMENT requestTransactionId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanDeleteRequestTransactions
Description

Tests if this user can delete RequestTransactions. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting a RequestTransaction will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer delete operations to an unauthorized user.

Returnboolean false if RequestTransaction deletion is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoddeleteRequestTransaction
Description

Deletes a RequestTransaction and the related requests.

Parametersosid.id.IdrequestTransactionIdthe Id of the request transaction to delete
ErrorsNOT_FOUND requestTransactionId is not found
NULL_ARGUMENT requestTransactionId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageRequestTransactionAliases
Description

Tests if this user can manage Id aliases for RequestTransactionss. A return of true does not guarantee successful authorization. A return of false indicates that it is known changing an alias will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.

Returnboolean false if RequestTransaction aliasing is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodaliasRequestTransaction
Description

Adds an Id to a RequestTransaction for the purpose of creating compatibility. The primary Id of the RequestTransaction is determined by the provider. The new Id performs as an alias to the primary Id. If the alias is a pointer to another request, it is reassigned to the given request Id.

Parametersosid.id.IdrequestTransactionIdthe Id of a RequestTransaction
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND requestTransactionId not found
NULL_ARGUMENT requestTransactionId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.