Interface | osid.dictionary.EntryAdminSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
| ||
Method | getDictionaryId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Dictionary Id associated with this
session | |
Compliance | mandatory | This method must be implemented. | |
Method | getDictionary | ||
Description |
Gets the | ||
Return | osid.dictionary.Dictionary | the Dictionary associated with this session | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canCreateEntries | ||
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 | ||
Return | boolean | false if entry creation is not authorized, true
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateEntryWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | entryRecordTypes | array of entry record types |
Return | boolean | true if Entry creation using the specified
record Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | entryRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getEntryFormForCreate | ||
Description |
Gets the entry form for creating new inquiries. A new form should be requested for each create transaction. | ||
Parameters | osid.type.Type | keyType | the Type of the key |
object | key | the key | |
osid.type.Type | valueType | the Type of the value | |
osid.type.Type[] | entryRecordTypes | array of entry record types | |
Return | osid.dictionary.EntryForm | the entry form | |
Errors | ALREADY_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 | ||
Compliance | mandatory | This method must be implemented. | |
Method | createEntry | ||
Description |
Creates a new | ||
Parameters | osid.dictionary.EntryForm | entryForm | the form for this entry |
Return | osid.dictionary.Entry | the created entry | |
Errors | ILLEGAL_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() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateEntries | ||
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 | ||
Return | boolean | false if entry modification is not authorized, true
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getEntryFormForUpdate | ||
Description |
Gets the entry form for updating an existing entry. A new entry form should be requested for each update transaction. | ||
Parameters | osid.id.Id | entryId | the Id of the Entry |
Return | osid.dictionary.EntryForm | the entry form | |
Errors | NOT_FOUND | entryId is not found | |
NULL_ARGUMENT | entryId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateEntry | ||
Description |
Updates an existing | ||
Parameters | osid.dictionary.EntryForm | entryForm | the form containing the elements to be updated |
Errors | ILLEGAL_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() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteEntries | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if Entry deletion is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteEntry | ||
Description |
Updates an existing | ||
Parameters | osid.id.Id | entryId | the Id of the entry |
Errors | NOT_FOUND | entry is not found | |
NULL_ARGUMENT | entryId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageEntryAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Entry aliasing is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasEntry | ||
Description |
Adds an | ||
Parameters | osid.id.Id | entryId | the Id of an Entry |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_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 | ||
Compliance | mandatory | This method must be implemented. |