Interface | osid.personnel.PersonAdminSession | ||
---|---|---|---|
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 | getRealmId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Realm Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getRealm | ||
Description |
Gets the | ||
Return | osid.personnel.Realm | the realm | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canCreatePersons | ||
Description |
Tests if this user can create persons. A return of true
does not guarantee successful authorization. A return of
false indicates that it is known creating a | ||
Return | boolean | false if Person creation is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreatePersonWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | personRecordTypes | array of person record types |
Return | boolean | true if Person creation using the specified
record Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | personRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getPersonFormForCreate | ||
Description |
Gets the person form for creating new persons. A new form should be requested for each create transaction. | ||
Parameters | osid.type.Type[] | personRecordTypes | array of person record types to be included in the create operation or an empty list if none |
Return | osid.personnel.PersonForm | the person form | |
Errors | NULL_ARGUMENT | personRecordTypes 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 | createPerson | ||
Description |
Creates a new | ||
Parameters | osid.personnel.PersonForm | personForm | the form for this Person |
Return | osid.personnel.Person | the new Person | |
Errors | ILLEGAL_STATE | personForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | personForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | personForm did not originate from
getPersonFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdatePersons | ||
Description |
Tests if this user can update persons. A return of true
does not guarantee successful authorization. A return of
false indicates that it is known updating a | ||
Return | boolean | false if Person modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getPersonFormForUpdate | ||
Description |
Gets the person form for updating an existing person. A new person form should be requested for each update transaction. | ||
Parameters | osid.id.Id | personId | the Id of the Person |
Return | osid.personnel.PersonForm | the person form | |
Errors | NOT_FOUND | personId is not found | |
NULL_ARGUMENT | personId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updatePerson | ||
Description |
Updates an existing person. | ||
Parameters | osid.personnel.PersonForm | personForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | personForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | personForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | personForm did not originate from
getPersonFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeletePersons | ||
Description |
Tests if this user can delete persons. A return of true
does not guarantee successful authorization. A return of
false indicates that it is known deleting an | ||
Return | boolean | false if Person deletion is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deletePerson | ||
Description |
Deletes a | ||
Parameters | osid.id.Id | personId | the Id of the Person to remove |
Errors | NOT_FOUND | personId not found | |
NULL_ARGUMENT | personId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManagePersonAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Person aliasing is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasPerson | ||
Description |
Adds an | ||
Parameters | osid.id.Id | personId | the Id of a Person |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is in use as a primary Id | |
NOT_FOUND | personId not found | ||
NULL_ARGUMENT | personId or aliasId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |