OSID Logo
OSID Specifications
dictionary package
Version 3.0.0
Release Candidate Preview
Interfaceosid.dictionary.EntryDictionaryAssignmentSession
Implementsosid.OsidSession
Description

This session provides methods to re-assign enrties to dictionaries. A Entry may map to multiple Dictionary objects and removing the last reference to a Entry is the equivalent of deleting it. Each Dictionary may have its own authorizations governing who is allowed to operate on it.

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

MethodcanAssignEntries
Description

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

Tests if this user can alter entry/dictionary 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.IddictionaryIdthe Id of the Dictionary
Returnboolean false if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENT dictionaryId is null
CompliancemandatoryThis method must be implemented.
MethodgetAssignableDictionaryIds
Description

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

Parametersosid.id.IddictionaryIdthe Id of the Dictionary
Returnosid.id.IdListlist of assignable dictionary Ids
ErrorsNULL_ARGUMENT dictionaryId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetAssignableDictionaryIdsForEntry
Description

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

Parametersosid.id.IddictionaryIdthe Id of the Dictionary
osid.id.IdentryIdthe Id of the Entry
Returnosid.id.IdListlist of assignable dictionary Ids
ErrorsNULL_ARGUMENT dictionaryId or entryId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodassignEntryToDictionary
Description

Adds an existing Entry to a Dictionary.

Parametersosid.id.IdentryIdthe Id of the Entry
osid.id.IddictionaryIdthe Id of the Dictionary
ErrorsALREADY_EXISTS entryId is already assigned to dictionaryId
NOT_FOUND entryId or dictionaryId not found
NULL_ARGUMENT entryId or dictionaryId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignEntryFromDictionary
Description

Removes a Entry from a Dictionary.

Parametersosid.id.IdentryIdthe Id of the Entry
osid.id.IddictionaryIdthe Id of the Dictionary
ErrorsNOT_FOUND entryId or dictionaryId not found or entryId not assigned to dictionaryId
NULL_ARGUMENT entryId or dictionaryId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodreassignEntryToDictionary
Description

Moves an Entry from one Dictionary to another. Mappings to other Dictionaries are unaffected.

Parametersosid.id.IdentryIdthe Id of the Entry
osid.id.IdfromDictionaryIdthe Id of the current Dictionary
osid.id.IdtoDictionaryIdthe Id of the destination Dictionary
ErrorsNOT_FOUND entryId, fromDictionaryId, or toDictionaryId not found or entryId not mapped to fromDictionaryId
NULL_ARGUMENT entryId fromDictionaryId, or toDictionaryId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.