OSID Logo
OSID Specifications
financials package
Version 3.0.0
Release Candidate Preview
Interfaceosid.financials.Activity
Implementsosid.OsidObject
osid.Federateable
osid.Temporal
Description

An Activity represents a cost object for a organization unit or other activity.

MethodgetOrganizationId
Description

Gets the organization Id associated with this activity.

Returnosid.id.Idthe organization Id
CompliancemandatoryThis method must be implemented.
MethodgetOrganization
Description

Gets the organization associated with this activity.

Returnosid.resource.Resourcethe organization
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetSupervisorId
Description

Gets the resource Id supervising this activity account.

Returnosid.id.Idthe resource Id
CompliancemandatoryThis method must be implemented.
MethodgetSupervisor
Description

Gets the resource supervising this activity account.

Returnosid.resource.Resourcethe resource
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetCode
Description

Gets the code for this activity account.

Returnstringthe activity code
CompliancemandatoryThis method must be implemented.
MethodgetActivityRecord
Description

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

Parametersosid.type.TypeactivityRecordTypethe type of activity record to retrieve
Returnosid.financials.records.ActivityRecordthe activity record
ErrorsNULL_ARGUMENT activityRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(activityRecordType) is false
CompliancemandatoryThis method must be implemented.