public interface Provision extends OsidRelationship
A Provision
is a relationship between a provisionable
and a recipient governed by a broker.
Modifier and Type | Method and Description |
---|---|
Broker |
getBroker()
Gets the broker.
|
Id |
getBrokerId()
Gets the
Id of the broker. |
Currency |
getCost()
Gets the cost.
|
DateTime |
getDueDate()
Gets the due date for the return.
|
Provisionable |
getProvisionable()
Gets the provisionable.
|
Id |
getProvisionableId()
Gets the
Id of the provisionable. |
DateTime |
getProvisionDate()
Gets the date this was provisioned.
|
ProvisionRecord |
getProvisionRecord(Type provisionRecordType)
Gets the provision record corresponding to the given
Provision
record Type. |
ProvisionReturn |
getProvisionReturn()
Gets the provision return that has any data that may have been
captured in the return process.
|
Currency |
getRateAmount()
Gets the rate amount.
|
Duration |
getRatePeriod()
Gets the rate period.
|
Resource |
getRecipient()
Gets the recipient.
|
Id |
getRecipientId()
Gets the
Id of the recipient. |
Request |
getRequest()
Gets the request.
|
Id |
getRequestId()
Gets the
Id of the request. |
boolean |
hasCost()
Tests if this provision has a total cost.
|
boolean |
hasDueDate()
Tests if this provision is must be returned and has a due date.
|
boolean |
hasRate()
Tests if this provision has a rate per time period.
|
boolean |
isLeased()
Tests if this provision is temporary.
|
boolean |
isReturned()
Tests if this provision has been returned.
|
boolean |
mustReturn()
Tests if this provision is must be returned.
|
boolean |
provisionedByRequest()
Tests if this provision has a request.
|
getEndReason, getEndReasonId, hasEndReason
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
getEndDate, getStartDate, isEffective
Id getBrokerId()
Id
of the broker. Id
mandatory
- This method must be implemented. Broker getBroker() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. Id getProvisionableId()
Id
of the provisionable. Id
mandatory
- This method must be implemented. Provisionable getProvisionable() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. Id getRecipientId()
Id
of the recipient. Id
mandatory
- This method must be implemented. Resource getRecipient() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. boolean provisionedByRequest()
true
if a request is available, false otherwisemandatory
- This method must be implemented. Id getRequestId()
Id
of the request. Id
IllegalStateException
- provisionedByRequest()
is false
mandatory
- This method must be implemented. Request getRequest() throws OperationFailedException
IllegalStateException
- provisionedByRequest()
is false
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. DateTime getProvisionDate()
mandatory
- This method must be implemented. boolean isLeased()
true
if this is a lease, false
if the provision is permanentmandatory
- This method must be implemented. boolean mustReturn()
true
if this is must be returned, false
otherwiseIllegalStateException
- isLeased()
is
false
mandatory
- This method must be implemented. boolean hasDueDate()
true
if this is must be returned, false
otherwiseIllegalStateException
- mustReturn()
is
false
mandatory
- This method must be implemented. DateTime getDueDate()
IllegalStateException
- hasDueDate()
is
false
mandatory
- This method must be implemented. boolean hasCost()
true
if there is a cost, false
otherwisemandatory
- This method must be implemented. Currency getCost()
IllegalStateException
- hasCost()
is
false
mandatory
- This method must be implemented. boolean hasRate()
true
if there is a rate, false otherwiseIllegalStateException
- hasRate()
is
false
mandatory
- This method must be implemented. Currency getRateAmount()
IllegalStateException
- hasRate()
is
false
mandatory
- This method must be implemented. Duration getRatePeriod()
IllegalStateException
- hasRate()
is
false
mandatory
- This method must be implemented. boolean isReturned()
true
if this provision has been returned,
false
otherwisemandatory
- This method must be implemented. ProvisionReturn getProvisionReturn()
IllegalStateException
- isReturned()
is
false
mandatory
- This method must be implemented. ProvisionRecord getProvisionRecord(Type provisionRecordType) throws OperationFailedException, PermissionDeniedException
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
.provisionRecordType
- the type of provision record to retrieveNullArgumentException
- provisionRecordType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
-
hasRecordType(provisionRecordType)
is false
mandatory
- This method must be implemented.