Interface Activity
- All Superinterfaces:
Browsable, Extensible, Federateable, Identifiable, OsidObject, Temporal
An Activity represents a cost object for an organization unit,
project, or activity.
-
Method Summary
Modifier and TypeMethodDescriptiongetActivityRecord(Type activityRecordType) Gets the activity record corresponding to the givenActivityrecordType.This method is used to retrieve an object implementing the requested record.getCode()Gets the code for this activity account.Gets the organization associated with this activity.Gets the organizationIdassociated with this activity.Gets the resource supervising this activity account.Gets the resourceIdsupervising this activity account.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.Methods inherited from interface Temporal
getEndDate, getStartDate, isEffectiveModifier and TypeMethodDescriptionGets the end date.Gets the start date.booleanTests if the current date is within the start end end dates inclusive.
-
Method Details
-
getOrganizationId
Id getOrganizationId()Gets the organizationIdassociated with this activity.- Returns:
- the organization
Id - Compliance:
mandatory- This method must be implemented.
-
getOrganization
Gets the organization associated with this activity.- Returns:
- the organization
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getSupervisorId
Id getSupervisorId()Gets the resourceIdsupervising this activity account.- Returns:
- the resource
Id - Compliance:
mandatory- This method must be implemented.
-
getSupervisor
Gets the resource supervising this activity account.- Returns:
- the resource
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getCode
String getCode()Gets the code for this activity account.- Returns:
- the activity code
- Compliance:
mandatory- This method must be implemented.
-
getActivityRecord
Gets the activity record corresponding to the givenActivityrecordType.This method is used to retrieve an object implementing the requested record. TheactivityRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(activityRecordType)istrue.- Parameters:
activityRecordType- the type of activity record to retrieve- Returns:
- the activity record
- Throws:
NullArgumentException-activityRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(activityRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-