OSID Logo
OSID Specifications
dictionary package
Version 3.1.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.

Returnboolean false if mapping is not authorized, true otherwise
Compliancemandatory This 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.IddictionaryId the Id of the Dictionary
Returnboolean false if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENT dictionaryId is null
Compliancemandatory This 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.IddictionaryId the Id of the Dictionary
Returnosid.id.IdList list of assignable dictionary Ids
ErrorsNULL_ARGUMENT dictionaryId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This 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.IddictionaryId the Id of the Dictionary
osid.id.IdentryId the Id of the Entry
Returnosid.id.IdList list of assignable dictionary Ids
ErrorsNULL_ARGUMENT dictionaryId or entryId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodassignEntryToDictionary
Description

Adds an existing Entry to a Dictionary.

Parametersosid.id.IdentryId the Id of the Entry
osid.id.IddictionaryId the 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodunassignEntryFromDictionary
Description

Removes an Entry from a Dictionary.

Parametersosid.id.IdentryId the Id of the Entry
osid.id.IddictionaryId the 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodreassignEntryToDictionary
Description

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

Parametersosid.id.IdentryId the Id of the Entry
osid.id.IdfromDictionaryId the Id of the current Dictionary
osid.id.IdtoDictionaryId the Id of the destination Dictionary
ErrorsALREADY_EXISTS entryId already assigned to toDictionaryId
NOT_FOUND entryId, fromDictionaryId, or toDictionaryId not found or entryId not mapped to fromDictionaryId
NULL_ARGUMENT entryId fromDictionaryId, or toDictionaryId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.