public interface Activity extends OsidObject, Federateable, Temporal
An Activity
represents a cost object for a organization
unit or other activity.
Modifier and Type | Method and Description |
---|---|
ActivityRecord |
getActivityRecord(Type activityRecordType)
Gets the activity record corresponding to the given
Activity
record Type. |
java.lang.String |
getCode()
Gets the code for this activity account.
|
Resource |
getOrganization()
Gets the organization associated with this activity.
|
Id |
getOrganizationId()
Gets the organization
Id associated with this activity. |
Resource |
getSupervisor()
Gets the resource supervising this activity account.
|
Id |
getSupervisorId()
Gets the resource
Id supervising this activity account. |
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
getEndDate, getStartDate, isEffective
Id getOrganizationId()
Id
associated with this activity. Id
mandatory
- This method must be implemented. Resource getOrganization() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. Id getSupervisorId()
Id
supervising this activity account. Id
mandatory
- This method must be implemented. Resource getSupervisor() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. java.lang.String getCode()
mandatory
- This method must be implemented. ActivityRecord getActivityRecord(Type activityRecordType) throws OperationFailedException
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
.activityRecordType
- the type of activity record to retrieveNullArgumentException
- activityRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(activityRecordType)
is false
mandatory
- This method must be implemented.