OSID Logo
OSID Specifications
blogging package
Version 3.1.0
Interfaceosid.blogging.EntryBlogAssignmentSession
Implementsosid.OsidSession
Used Byosid.blogging.BloggingManager
osid.blogging.BloggingProxyManager
Description

This session provides methods to re-assign Entries to Blogs. An Entry may map to multiple Blog objects and removing the last reference to an Entry is the equivalent of deleting it. Each Blog may have its own authorizations governing who is allowed to operate on it.

Moving or adding a reference of a Entry to another Blog is not a copy operation (eg: does not change its Id).

MethodcanAssignEntries
Description

Tests if this user can alter entry/blog 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.
MethodcanAssignEntriesToBlog
Description

Tests if this user can alter entry/blog 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.

Parametersosid.id.IdblogId the Id of the Blog
Returnboolean false if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENT blogId is null
Compliancemandatory This method must be implemented.
MethodgetAssignableBlogIds
Description

Gets a list of blogs including and under the given blogs node in which any entry can be assigned.

Parametersosid.id.IdblogId the Id of the Blog
Returnosid.id.IdList list of assignable blog Ids
ErrorsNULL_ARGUMENT blogId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetAssignableBlogIdsForEntry
Description

Gets a list of blogs including and under the given blog node in which a specific entry can be assigned.

Parametersosid.id.IdblogId the Id of the Blog
osid.id.IdentryId the Id of the Entry
Returnosid.id.IdList list of assignable blog Ids
ErrorsNULL_ARGUMENT blogId or entryId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodassignEntryToBlog
Description

Adds an existing Entry to a Blog.

Parametersosid.id.IdentryId the Id of the Entry
osid.id.IdblogId the Id of the Blog
ErrorsALREADY_EXISTS entryId is already assigned to blogId
NOT_FOUND entryId or blogId not found
NULL_ARGUMENT entryId or blogId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodunassignEntryFromBlog
Description

Removes an Entry from a Blog .

Parametersosid.id.IdentryId the Id of the Entry
osid.id.IdblogId the Id of the Blog
ErrorsNOT_FOUND entryId or blogId not found or entryId not assigned to blogId
NULL_ARGUMENT entryId or blogId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodreassignEntryToBlog
Description

Moves an Entry from one Blog to another. Mappings to other Blogs are unaffected.

Parametersosid.id.IdentryId the Id of the Entry
osid.id.IdfromBlogId the Id of the current Blog
osid.id.IdtoBlogId the Id of the destination Blog
ErrorsALREADY_EXISTS entryId already assigned to toBlogId
NOT_FOUND entryId, fromBlogId, or toBlogId not found or entryId not mapped to fromBlogId
NULL_ARGUMENT entryId, fromBlogId, or toBlogId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.