OSID Logo
OSID Specifications
hold package
Version 3.1.0
Interfaceosid.hold.Hold
Implementsosid.OsidRelationship
Used Byosid.hold.HoldAdminSession
osid.hold.HoldList
osid.hold.HoldLookupSession
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.Id the issue Id
Compliancemandatory This method must be implemented.
MethodgetIssue
Description

Gets the issue.

Returnosid.hold.Issue the issue
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodhasResource
Description

Tests if this hold is for a Resource.

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

Gets the Id of resource.

Returnosid.id.Id the resource Id
ErrorsILLEGAL_STATE hasResource() is false
Compliancemandatory This method must be implemented.
MethodgetResource
Description

Gets the resources that can be assigned to an issue.

Returnosid.resource.Resource the resource
ErrorsILLEGAL_STATE hasResource() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodhasAgent
Description

Tests if this hold is for an Agent.

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

Gets the Agent Id for this hold.

Returnosid.id.Id the Agent Id
ErrorsILLEGAL_STATE hasAgent() is false
Compliancemandatory This method must be implemented.
MethodgetAgent
Description

Gets the Agent for this hold.

Returnosid.authentication.Agent the Agent
ErrorsILLEGAL_STATE hasAgent() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This 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.TypeholdRecordType the type of hold record to retrieve
Returnosid.hold.records.HoldRecord the hold record
ErrorsNULL_ARGUMENT holdRecordType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED hasRecordType(holdRecordType) is false
Compliancemandatory This method must be implemented.