OSID Logo
OSID Specifications
provisioning package
Version 3.1.0
Interfaceosid.provisioning.Provision
Implementsosid.OsidRelationship
Used Byosid.provisioning.ProvisionAdminSession
osid.provisioning.ProvisionList
osid.provisioning.ProvisionLookupSession
osid.provisioning.Request
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.Id the broker Id
Compliancemandatory This method must be implemented.
MethodgetBroker
Description

Gets the broker.

Returnosid.provisioning.Broker the broker
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetProvisionableId
Description

Gets the Id of the provisionable.

Returnosid.id.Id the provisionable Id
Compliancemandatory This method must be implemented.
MethodgetProvisionable
Description

Gets the provisionable.

Returnosid.provisioning.Provisionable the provisionable
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetRecipientId
Description

Gets the Id of the recipient.

Returnosid.id.Id the resource Id
Compliancemandatory This method must be implemented.
MethodgetRecipient
Description

Gets the recipient.

Returnosid.resource.Resource the resource
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodprovisionedByRequest
Description

Tests if this provision has a request.

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

Gets the Id of the request.

Returnosid.id.Id the request Id
ErrorsILLEGAL_STATE provisionedByRequest() is false
Compliancemandatory This method must be implemented.
MethodgetRequest
Description

Gets the request.

Returnosid.provisioning.Request the request
ErrorsILLEGAL_STATE provisionedByRequest() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This 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.DateTime the provision date
Compliancemandatory This 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
Compliancemandatory This 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
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetDueDate
Description

Gets the due date for the return.

Returnosid.calendaring.DateTime the due date
ErrorsILLEGAL_STATE hasDueDate() is false
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetCost
Description

Gets the cost.

Returnosid.financials.Currency the cost
ErrorsILLEGAL_STATE hasCost() is false
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetRateAmount
Description

Gets the rate amount.

Returnosid.financials.Currency the rate amount
ErrorsILLEGAL_STATE hasRate() is false
Compliancemandatory This method must be implemented.
MethodgetRatePeriod
Description

Gets the rate period.

Returnosid.calendaring.Duration the time period
ErrorsILLEGAL_STATE hasRate() is false
Compliancemandatory This method must be implemented.
MethodisReturned
Description

Tests if this provision has been returned.

Returnboolean true if this provision has been returned, false otherwise
Compliancemandatory This 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.ProvisionReturn the return
ErrorsILLEGAL_STATE isReturned() is false
Compliancemandatory This 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.TypeprovisionRecordType the type of provision record to retrieve
Returnosid.provisioning.records.ProvisionRecord the provision record
ErrorsNULL_ARGUMENT provisionRecordType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED hasRecordType(provisionRecordType) is false
Compliancemandatory This method must be implemented.