Interface | osid.personnel.RealmAdminSession | ||
---|---|---|---|
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 | canCreateRealms | ||
Description |
Tests if this user can create | ||
Return | boolean | false if Realm creation is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateRealmWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | realmRecordTypes | array of types |
Return | boolean | true if Realm creation using the specified
record Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | realmRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getRealmFormForCreate | ||
Description |
Gets the realm form for creating new realms. A new form should be requested for each create transaction. | ||
Parameters | osid.type.Type[] | realmRecordTypes | array of types |
Return | osid.personnel.RealmForm | the realm form | |
Errors | NULL_ARGUMENT | realmRecordTypes is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | cannot get form for requested record types | ||
Compliance | mandatory | This method must be implemented. | |
Method | createRealm | ||
Description |
Creates a new | ||
Parameters | osid.personnel.RealmForm | realmForm | the form for this Realm |
Return | osid.personnel.Realm | the new Realm | |
Errors | ILLEGAL_STATE | realmForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | realmForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | realmForm did not originate from
getRealmFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateRealms | ||
Description |
Tests if this user can update | ||
Return | boolean | false if Realm modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getRealmFormForUpdate | ||
Description |
Gets the realm form for updating an existing realm. A new realm form should be requested for each update transaction. | ||
Parameters | osid.id.Id | realmId | the Id of the Realm |
Return | osid.personnel.RealmForm | the realm form | |
Errors | NOT_FOUND | realmId is not found | |
NULL_ARGUMENT | realmId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateRealm | ||
Description |
Updates an existing realm. | ||
Parameters | osid.personnel.RealmForm | realmForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | realmForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | realmForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | realmForm did not originate from getRealmtFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteRealms | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if Realm deletion is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteRealm | ||
Description |
Deletes a | ||
Parameters | osid.id.Id | realmId | the Id of the Realm to remove |
Errors | NOT_FOUND | realmId not found | |
NULL_ARGUMENT | realmId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageRealmAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Realm aliasing is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasRealm | ||
Description |
Adds an | ||
Parameters | osid.id.Id | realmId | the Id of a Realm |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is in use as a primary Id | |
NOT_FOUND | realmId not found | ||
NULL_ARGUMENT | realmId or aliasId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |