OSID Logo
OSID Specifications
dictionary package
Version 3.0.0
Interfaceosid.dictionary.EntryDictionaryAssignmentSession
Implementsosid.OsidSession
Used Byosid.dictionary.DictionaryManager
osid.dictionary.DictionaryProxyManager
Description

This session provides methods to re-assign enrties to dictionaries. An Entry may map to multiple Dictionaries and removing the last reference to an 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 an 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.

Returnbooleanfalse 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
Returnbooleanfalse if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENTdictionaryId 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_ARGUMENTdictionaryId 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_ARGUMENTdictionaryId 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_EXISTSentryId is already assigned to dictionaryId
NOT_FOUNDentryId or dictionaryId not found
NULL_ARGUMENTentryId or dictionaryId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignEntryFromDictionary
Description

Removes an Entry from a Dictionary .

Parametersosid.id.IdentryIdthe Id of the Entry
osid.id.IddictionaryIdthe Id of the Dictionary
ErrorsNOT_FOUNDentryId or dictionaryId not found or entryId not assigned to dictionaryId
NULL_ARGUMENTentryId 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
ErrorsALREADY_EXISTSentryId already assigned to toDictionaryId
NOT_FOUNDentryId, fromDictionaryId , or toDictionaryId not found or entryId not mapped to fromDictionaryId
NULL_ARGUMENTentryId fromDictionaryId , or toDictionaryId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.