OSID Logo
OSID Specifications
dictionary package
Version 3.1.0
Interfaceosid.dictionary.EntryAdminSession
Implementsosid.OsidSession
Implemented Byosid.dictionary.batch.EntryBatchAdminSession
Used Byosid.dictionary.DictionaryManager
osid.dictionary.DictionaryProxyManager
Description

EntryAdminSession creates, updates and deletes dictionary entries.

MethodgetDictionaryId
Description

Gets the Dictionary Id associated with this session.

Returnosid.id.Id the Dictionary Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetDictionary
Description

Gets the Dictionary associated with this session.

Returnosid.dictionary.Dictionary the Dictionary associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanCreateEntries
Description

Tests if this user can create entries A return of true does not guarantee successful authorization. A return of false indicates that it is known creating an Entry will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer create operations to an unauthorized user.

Returnboolean false if entry creation is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodcanCreateEntryWithRecordTypes
Description

Tests if this user can create a single Entry using the desired record types. While DictionaryManager.getEntryRecordTypes() can be used to examine which records are supported, this method tests which record(s) are required for creating a specific Entry. Providing an empty array tests if an Entry can be created with no records.

Parametersosid.type.Type[]entryRecordTypes array of entry record types
Returnboolean true if Entry creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT entryRecordTypes is null
Compliancemandatory This method must be implemented.
MethodgetEntryFormForCreate
Description

Gets the entry form for creating new inquiries. A new form should be requested for each create transaction.

Parametersosid.type.TypekeyType the Type of the key
objectkey the key
osid.type.TypevalueType the Type of the value
osid.type.Type[]entryRecordTypes array of entry record types
Returnosid.dictionary.EntryForm the entry form
ErrorsALREADY_EXISTS an entry by this key, keyType, and valueType already exists
NULL_ARGUMENT keyType, key, valueType, or entryRecordTypes is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED unable to get form for requested key/value or record types
Compliancemandatory This method must be implemented.
MethodcreateEntry
Description

Creates a new Entry.

Parametersosid.dictionary.EntryFormentryForm the form for this entry
Returnosid.dictionary.Entry the created entry
ErrorsILLEGAL_STATE entryForm already used in a create transaction.
INVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT entryForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED entryForm did not originate from getEntryFormForCreate()
Compliancemandatory This method must be implemented.
MethodcanUpdateEntries
Description

Tests if this user can update entries. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating an Entry will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer update operations to an unauthorized user.

Returnboolean false if entry modification is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetEntryFormForUpdate
Description

Gets the entry form for updating an existing entry. A new entry form should be requested for each update transaction.

Parametersosid.id.IdentryId the Id of the Entry
Returnosid.dictionary.EntryForm the entry form
ErrorsNOT_FOUND entryId is not found
NULL_ARGUMENT entryId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateEntry
Description

Updates an existing Entry.

Parametersosid.dictionary.EntryFormentryForm the form containing the elements to be updated
ErrorsILLEGAL_STATE entryForm already used in an update transatcion
INVALID_ARGUMENT the form contains an invalid value
NULL_ARGUMENT entryForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED entryyForm did not originate from getEntryFormForUpdate()
Compliancemandatory This method must be implemented.
MethodcanDeleteEntries
Description

Tests if this user can delete Entries. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting an Entry will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer delete operations to an unauthorized user.

Returnboolean false if Entry deletion is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoddeleteEntry
Description

Updates an existing Dictionary entry identified with the specified key with the given value.

Parametersosid.id.IdentryId the Id of the entry
ErrorsNOT_FOUND entry is not found
NULL_ARGUMENT entryId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageEntryAliases
Description

Tests if this user can manage Id aliases for Entries. A return of true does not guarantee successful authorization. A return of false indicates that it is known changing an alias will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.

Returnboolean false if Entry aliasing is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodaliasEntry
Description

Adds an Id to an Entry for the purpose of creating compatibility. The primary Id of the Entry is determined by the provider. The new Id performs as an alias to the primary Id. If the alias is a pointer to another entry, it is reassigned to the given entry Id.

Parametersosid.id.IdentryId the Id of an Entry
osid.id.IdaliasId the alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND entryId not found
NULL_ARGUMENT entryId or aliasId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.