OSID Logo
OSID Specifications
financials package
Version 3.1.0
Interfaceosid.financials.ActivityBusinessAssignmentSession
Implementsosid.OsidSession
Used Byosid.financials.FinancialsManager
osid.financials.FinancialsProxyManager
Description

This session provides methods to re-assign Activities to Businesses. An Activity may appear in multiple Businesses and removing the last reference to an Activity is the equivalent of deleting it. Each Business may have its own authorizations governing who is allowed to operate on it.

Adding a reference of an Activity to another Business is not a copy operation (eg: does not change its Id).

MethodcanAssignActivities
Description

Tests if this user can alter activity/business mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer assignment operations to unauthorized users.

Returnboolean false if mapping is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodcanAssignActivitiesToBusiness
Description

Tests if this user can alter activity/business mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.

Parametersosid.id.IdbusinessId the Id of the Business
Returnboolean false if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENT businessId is null
Compliancemandatory This method must be implemented.
MethodgetAssignableBusinessIds
Description

Gets a list of businesses including and under the given business node in which any activity can be assigned.

Parametersosid.id.IdbusinessId the Id of the Business
Returnosid.id.IdList list of assignable business Ids
ErrorsNULL_ARGUMENT businessId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetAssignableBusinessIdsForActivity
Description

Gets a list of businesses including and under the given business node in which a specific activity can be assigned.

Parametersosid.id.IdbusinessId the Id of the Business
osid.id.IdactivityId the Id of the Activity
Returnosid.id.IdList list of assignable business Ids
ErrorsNULL_ARGUMENT businessId or activityId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodassignActivityToBusiness
Description

Adds an existing Activity to a Business.

Parametersosid.id.IdactivityId the Id of the Activity
osid.id.IdbusinessId the Id of the Business
ErrorsALREADY_EXISTS activityId is already assigned to businessId
NOT_FOUND activityId or businessId not found
NULL_ARGUMENT activityId or businessId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodunassignActivityFromBusiness
Description

Removes an Activity from a Business.

Parametersosid.id.IdactivityId the Id of the Activity
osid.id.IdbusinessId the Id of the Business
ErrorsNOT_FOUND activityId or businessId not found or activityId not assigned to businessId
NULL_ARGUMENT activityId or businessId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.