public interface Availability extends OsidRelationship
An Availability
represents a resource's availability for
work. A competency may be used to qualify how the resource can be applied
to the work. The effective dates of this relationship specify the
availability dates for the resource.
Modifier and Type | Method and Description |
---|---|
AvailabilityRecord |
getAvailabilityRecord(Type availabilityRecordType)
Gets the availability record corresponding to the given
Availability record Type. |
Competency |
getCompetency()
Gets the competency.
|
Id |
getCompetencyId()
Gets the competency
Id. |
Job |
getJob()
Gets the job.
|
Id |
getJobId()
Gets the job
Id. |
long |
getPercentage()
Gets the percentage availability.
|
Resource |
getResource()
Gets the resource.
|
Id |
getResourceId()
Gets the resource
Id. |
boolean |
isCompetent()
Tests if a competency is specified for this availability.
|
getEndReason, getEndReasonId, hasEndReason
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
getEndDate, getStartDate, isEffective
Id getResourceId()
Id.
Id
mandatory
- This method must be implemented. Resource getResource() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. Id getJobId()
Id.
Id
mandatory
- This method must be implemented. Job getJob() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. boolean isCompetent()
true
if a competency is available, false
otherwisemandatory
- This method must be implemented. Id getCompetencyId()
Id.
Id
IllegalStateException
- isCompetent()
is
false
mandatory
- This method must be implemented. Competency getCompetency() throws OperationFailedException
IllegalStateException
- isCompetent()
is
false
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. long getPercentage()
mandatory
- This method must be implemented. AvailabilityRecord getAvailabilityRecord(Type availabilityRecordType) throws OperationFailedException
Availability
record Type.
This method is used
to retrieve an object implementing the requested record. The
availabilityRecordType
may be the Type
returned
in getRecordTypes()
or any of its parents in a
Type
hierarchy where
hasRecordType(availabilityRecordType)
is true
.availabilityRecordType
- the type of availability record to
retrieveNullArgumentException
- availabilityRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(availabilityRecordType)
is false
mandatory
- This method must be implemented.