Interface | osid.financials.ActivityAdminSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session creates, updates, and deletes Create and update operations differ in their usage. To
create an For updates, The delete operations delete This session includes an | ||
Method | getBusinessId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Business Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getBusiness | ||
Description |
Gets the | ||
Return | osid.financials.Business | the business | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canCreateActivities | ||
Description |
Tests if this user can create | ||
Return | boolean | false if Activity creation is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateActivityWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | activityRecordTypes | array of activity record types |
Return | boolean | true if Activity creation using the specified
record Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | activityRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getActivityFormForCreate | ||
Description |
Gets the activity form for creating new activities. A new form should be requested for each create transaction. | ||
Parameters | osid.type.Type[] | activityRecordTypes | array of activity record types |
Return | osid.financials.ActivityForm | the activity form | |
Errors | NULL_ARGUMENT | activityRecordTypes is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | unable to get form for requested record types | ||
Compliance | mandatory | This method must be implemented. | |
Method | createActivity | ||
Description |
Creates a new | ||
Parameters | osid.financials.ActivityForm | activityForm | the form for this Activity |
Return | osid.financials.Activity | the new Activity | |
Errors | ILLEGAL_STATE | activityForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | activityForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | activityForm did not originate from
getActvityFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateActivities | ||
Description |
Tests if this user can update | ||
Return | boolean | false if Activity modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getActivityFormForUpdate | ||
Description |
Gets the activity form for updating an existing activity. A new activity form should be requested for each update transaction. | ||
Parameters | osid.id.Id | activityId | the Id of the Activity |
Return | osid.financials.ActivityForm | the activity form | |
Errors | NOT_FOUND | activityId is not found | |
NULL_ARGUMENT | activityId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateActivity | ||
Description |
Updates an existing activity. | ||
Parameters | osid.financials.ActivityForm | activityForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | activityForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | activityForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | activityForm did not originate from
getActvityFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteActivities | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if Activity deletion is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteActivity | ||
Description |
Deletes an | ||
Parameters | osid.id.Id | activityId | the Id of the Activity to remove |
Errors | NOT_FOUND | activityId not found | |
NULL_ARGUMENT | activityId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageActivityAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Activity aliasing is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasActivity | ||
Description |
Adds an | ||
Parameters | osid.id.Id | activityId | the Id of an Activity |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is in use as a primary Id | |
NOT_FOUND | activityId not found | ||
NULL_ARGUMENT | activityId or aliasId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |