Interface | osid.commenting.BookAdminSession | ||
---|---|---|---|
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 | canCreateBooks | ||
Description |
Tests if this user can create | ||
Return | boolean | false if Book creation is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateBookWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | bookRecordTypes | array of book record types |
Return | boolean | true if Book creation using the specified
record Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | bookRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getBookFormForCreate | ||
Description |
Gets the book form for creating new books. A new form should be requested for each create transaction. | ||
Parameters | osid.type.Type[] | bookRecordTypes | array of book record types |
Return | osid.commenting.BookForm | the book form | |
Errors | NULL_ARGUMENT | bookRecordTypes 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 | createBook | ||
Description |
Creates a new | ||
Parameters | osid.commenting.BookForm | bookForm | the form for this Book |
Return | osid.commenting.Book | the new Book | |
Errors | ILLEGAL_STATE | bookForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | bookForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | bookForm did not originte from getBookFormForCreate()
| ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateBooks | ||
Description |
Tests if this user can update | ||
Return | boolean | false if Book modification is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getBookFormForUpdate | ||
Description |
Gets the book form for updating an existing book. A new book form should be requested for each update transaction. | ||
Parameters | osid.id.Id | bookId | the Id of the Book |
Return | osid.commenting.BookForm | the book form | |
Errors | NOT_FOUND | bookId is not found | |
NULL_ARGUMENT | bookId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateBook | ||
Description |
Updates an existing book. | ||
Parameters | osid.commenting.BookForm | bookForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | bookForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | bookForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | bookForm did not originte from getBookFormForUpdate()
| ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteBooks | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if Book deletion is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteBook | ||
Description |
Deletes a | ||
Parameters | osid.id.Id | bookId | the Id of the Book to remove |
Errors | NOT_FOUND | bookId not found | |
NULL_ARGUMENT | bookId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageBookAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Book aliasing is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasBook | ||
Description |
Adds an | ||
Parameters | osid.id.Id | bookId | the Id of a Book |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | bookId not found | ||
NULL_ARGUMENT | bookId or aliasId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |