OSID Logo
OSID Specifications
provisioning package
Version 3.0.0
Release Candidate Preview
Interfaceosid.provisioning.Provision
Implementsosid.OsidRelationship
Description

A Provision is a relationship between a provisionable and a recipient governed by a broker.

MethodgetBrokerId
Description

Gets the Id of the broker.

Returnosid.id.Idthe broker Id
CompliancemandatoryThis method must be implemented.
MethodgetBroker
Description

Gets the broker.

Returnosid.provisioning.Brokerthe broker
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetProvisionableId
Description

Gets the Id of the provisionable.

Returnosid.id.Idthe provisionable Id
CompliancemandatoryThis method must be implemented.
MethodgetProvisionable
Description

Gets the provisionable.

Returnosid.provisioning.Provisionablethe provisionable
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetRecipientId
Description

Gets the Id of the recipient.

Returnosid.id.Idthe resource Id
CompliancemandatoryThis method must be implemented.
MethodgetRecipient
Description

Gets the recipient.

Returnosid.resource.Resourcethe resource
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodprovisionedByRequest
Description

Tests if this provision has a request.

Returnboolean true if a request is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRequestId
Description

Gets the Id of the request.

Returnosid.id.Idthe request Id
ErrorsILLEGAL_STATE provisionedByRequest() is false
CompliancemandatoryThis method must be implemented.
MethodgetRequest
Description

Gets the request.

Returnosid.provisioning.Requestthe request
ErrorsILLEGAL_STATE provisionedByRequest() is false
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetProvisionDate
Description

Gets the date this was provisioned. The provision date may differ from the effective dates of this provision.

Returnosid.calendaring.DateTimethe provision date
CompliancemandatoryThis method must be implemented.
MethodisLeased
Description

Tests if this provision is temporary. The lease ends when the provision expires or is returned.

Returnboolean true if this is a lease, false if the provision is permanent
CompliancemandatoryThis method must be implemented.
MethodmustReturn
Description

Tests if this provision is must be returned.

Returnboolean true if this is must be returned, false otherwise
ErrorsILLEGAL_STATE isLeased() is false
CompliancemandatoryThis method must be implemented.
MethodhasDueDate
Description

Tests if this provision is must be returned and has a due date.

Returnboolean true if this is must be returned, false otherwise
ErrorsILLEGAL_STATE mustReturn() is false
CompliancemandatoryThis method must be implemented.
MethodgetDueDate
Description

Gets the due date for the return.

Returnosid.calendaring.DateTimethe due date
ErrorsILLEGAL_STATE hasDueDate() is false
CompliancemandatoryThis method must be implemented.
MethodhasCost
Description

Tests if this provision has a total cost. If this is a lease with an expected return than it is the cost for the time period.

Returnboolean true if there is a cost, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCost
Description

Gets the cost.

Returnosid.financials.Currencythe cost
ErrorsILLEGAL_STATE hasCost() is false
CompliancemandatoryThis method must be implemented.
MethodhasRate
Description

Tests if this provision has a rate per time period.

Returnboolean true if there is a rate, false otherwise
ErrorsILLEGAL_STATE hasRate() is false
CompliancemandatoryThis method must be implemented.
MethodgetRateAmount
Description

Gets the rate amount.

Returnosid.financials.Currencythe rate amount
ErrorsILLEGAL_STATE hasRate() is false
CompliancemandatoryThis method must be implemented.
MethodgetRatePeriod
Description

Gets the rate period.

Returnosid.calendaring.Durationthe time period
ErrorsILLEGAL_STATE hasRate() is false
CompliancemandatoryThis method must be implemented.
MethodisReturned
Description

Tests if this provision has been returned.

Returnboolean true if this provision has been returned, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetProvisionReturn
Description

Gets the provision return that has any data that may have been captured in the return process.

Returnosid.provisioning.ProvisionReturnthe return
ErrorsILLEGAL_STATE isReturned() is false
CompliancemandatoryThis method must be implemented.
MethodgetProvisionRecord
Description

Gets the provision record corresponding to the given Provision record Type. This method is used to retrieve an object implementing the requested record. The provisionRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(provisionRecordType) is true .

Parametersosid.type.TypeprovisionRecordTypethe type of provision record to retrieve
Returnosid.provisioning.records.ProvisionRecordthe provision record
ErrorsNULL_ARGUMENT provisionRecordType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED hasRecordType(provisionRecordType) is false
CompliancemandatoryThis method must be implemented.