OSID Logo
OSID Specifications
financials posting package
Version 3.0.0
Release Candidate Preview
Interfaceosid.financials.posting.PostBusinessAssignmentSession
Implementsosid.OsidSession
Description

This session provides methods to re-assign Posts to Business objects A Post may appear in multiple Business objects and removing the last reference to a Post 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 a Post to another Business is not a copy operation (eg: does not change its Id ).

MethodcanAssignPosts
Description

Tests if this user can alter post/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
CompliancemandatoryThis method must be implemented.
MethodcanAssignPostToBusiness
Description

Tests if this user can alter post/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.IdbusinessIdthe Id of the Business
Returnboolean false if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENT businessId is null
CompliancemandatoryThis method must be implemented.
MethodgetAssignableBusinessIds
Description

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

Parametersosid.id.IdbusinessIdthe Id of the Business
Returnosid.id.IdListlist of assignable business Ids
ErrorsNULL_ARGUMENT businessId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetAssignableBusinessIdsForPost
Description

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

Parametersosid.id.IdbusinessIdthe Id of the Business
osid.id.IdpostIdthe Id of the Post
Returnosid.id.IdListlist of assignable business Ids
ErrorsNULL_ARGUMENT businessId or postId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodassignPostToBusiness
Description

Adds an existing Post to a Business.

Parametersosid.id.IdpostIdthe Id of the Post
osid.id.IdbusinessIdthe Id of the Business
ErrorsALREADY_EXISTS postId is already assigned to businessId
NOT_FOUND postId or businessId not found
NULL_ARGUMENT postId or businessId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignPostFromBusiness
Description

Removes a Post from a Business.

Parametersosid.id.IdpostIdthe Id of the Post
osid.id.IdbusinessIdthe Id of the Business
ErrorsNOT_FOUND postId or businessId not found or postId not assigned to businessId
NULL_ARGUMENT postId or businessId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.