OSID Logo
OSID Specifications
hold package
Version 3.0.0
Release Candidate Preview
Interfaceosid.hold.Hold
Implementsosid.OsidRelationship
Description

A Hold is an Issue applicable to a Resource or Agent. The effective dates of the relationship specify the duration of the hold. A Hold defined for a Resource is effective for all Agents related to the Resource.

MethodgetIssueId
Description

Gets the Id of the issue.

Returnosid.id.Idthe issue Id
CompliancemandatoryThis method must be implemented.
MethodgetIssue
Description

Gets the issue.

Returnosid.hold.Issuethe issue
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodhasResource
Description

Tests if this hold is for a Resource.

Returnboolean true if this hold has a Resource, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetResourceId
Description

Gets the Id of resource.

Returnosid.id.Idthe resource Id
ErrorsILLEGAL_STATE hasResource() is false
CompliancemandatoryThis method must be implemented.
MethodgetResource
Description

Gets the resources that can be assigned to an issue.

Returnosid.resource.Resourcethe resource
ErrorsILLEGAL_STATE hasResource() is false
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodhasAgent
Description

Tests if this hold is for an Agent.

Returnboolean true if this hold has an Agent, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAgentId
Description

Gets the Agent Id for this hold.

Returnosid.id.Idthe Agent Id
ErrorsILLEGAL_STATE hasAgent() is false
CompliancemandatoryThis method must be implemented.
MethodgetAgent
Description

Gets the Agent for this hold.

Returnosid.authentication.Agentthe Agent
ErrorsILLEGAL_STATE hasAgent() is false
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetHoldRecord
Description

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

Parametersosid.type.TypeholdRecordTypethe type of hold record to retrieve
Returnosid.hold.records.HoldRecordthe hold record
ErrorsNULL_ARGUMENT holdRecordType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED hasRecordType(holdRecordType) is false
CompliancemandatoryThis method must be implemented.