Interface | osid.logging.LogEntryAdminSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session creates, updates, and deletes Create and update operations differ in their usage. To
create a For updates, The delete operations delete This session includes an | ||
Method | getLogId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Log Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getLog | ||
Description |
Gets the | ||
Return | osid.logging.Log | the Log associated with this session | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canCreateLogEntries | ||
Description |
Tests if this user can create log entries. A return of
true does not guarantee successful authorization. A return
of false indicates that it is known creating a | ||
Return | boolean | false if LogEntry creation is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateLogEntryWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | logEntryRecordTypes | array of log entry record types |
Return | boolean | true if LogEntry creation using the specified
record Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | logEntryRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getLogEntryFormForCreate | ||
Description |
Gets the log entry form for creating new log entries. A new form should be requested for each create transaction. | ||
Parameters | osid.type.Type[] | logEntryRecordTypes | array of log entry record types |
Return | osid.logging.LogEntryForm | the log entry form | |
Errors | NULL_ARGUMENT | logEntryRecordTypes is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | unable to get form for requested record types | ||
Compliance | mandatory | This method must be implemented. | |
Method | createLogEntry | ||
Description |
Creates a new | ||
Parameters | osid.logging.LogEntryForm | logEntryForm | the form for this LogEntry |
Return | osid.logging.LogEntry | the new LogEntry | |
Errors | ILLEGAL_STATE | logEntryForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | logEntryForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | logEntryForm did not originate from
getLogEntryFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateLogEntries | ||
Description |
Tests if this user can update log entries. A return of
true does not guarantee successful authorization. A return
of false indicates that it is known updating a | ||
Return | boolean | false if LogEntry modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getLogEntryFormForUpdate | ||
Description |
Gets the log entry form for updating an existing log. A new log entry form should be requested for each update transaction. | ||
Parameters | osid.id.Id | logEntryId | the Id of the LogEntry |
Return | osid.logging.LogEntryForm | the log entry form | |
Errors | NOT_FOUND | logEntryId is not found | |
NULL_ARGUMENT | logEntryId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateLogEntry | ||
Description |
Updates an existing log entry. | ||
Parameters | osid.logging.LogEntryForm | logEntryForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | logEntryForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | logEntryForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | logEntryForm did not originate from
getLogEntryFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteLogEntries | ||
Description |
Tests if this user can delete log entries. A return of
true does not guarantee successful authorization. A return
of false indicates that it is known deleting a | ||
Return | boolean | false if LogEntry deletion is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteLogEntry | ||
Description |
Deletes a | ||
Parameters | osid.id.Id | logEntryId | the Id of the logEntryId to remove |
Errors | NOT_FOUND | logEntryId not found | |
NULL_ARGUMENT | logEntryId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageLogEntryAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if LogEntry aliasing is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasLogEntry | ||
Description |
Adds an | ||
Parameters | osid.id.Id | logEntryId | the Id of a LogEntry |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | logEntryId not found | ||
NULL_ARGUMENT | logEntryId or aliasId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |