Interface | osid.profile.ProfileItemAdminSession | ||
---|---|---|---|
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 | getProfileId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Profile Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getProfile | ||
Description |
Gets the | ||
Return | osid.profile.Profile | the Profile associated with this session | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canCreateProfileItems | ||
Description |
Tests if this user can create | ||
Return | boolean | false if ProfileItem creation is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateProfileItemWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | profileItemRecordTypes | array of profile item record types |
Return | boolean | true if ProfileItem creation using the
specified record Types is supported, false
otherwise | |
Errors | NULL_ARGUMENT | profileItemRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getProfileItemFormForCreate | ||
Description |
Gets the profile item form for creating new profile items. A new form should be requested for each create transaction. | ||
Parameters | osid.type.Type[] | profileItemRecordTypes | array of profile item record types |
Return | osid.profile.ProfileItemForm | the profile item form | |
Errors | NULL_ARGUMENT | profileItemRecordTypes is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | unable to get form with requested record types | ||
Compliance | mandatory | This method must be implemented. | |
Method | createProfileItem | ||
Description |
Creates a new | ||
Parameters | osid.profile.ProfileItemForm | profileItemForm | the form for this ProfileItem |
Return | osid.profile.ProfileItem | the new ProfileItem | |
Errors | ILLEGAL_STATE | profileItemForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | profileItemForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | profileItemForm did not originate from
getProfileItemFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateProfileItems | ||
Description |
Tests if this user can update | ||
Return | boolean | false if profile item modification is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getProfileItemFormForUpdate | ||
Description |
Gets the profile item form for updating an existing profile item. A new profile item form should be requested for each update transaction. | ||
Parameters | osid.id.Id | profileItemId | the Id of the ProfileItem |
Return | osid.profile.ProfileItemForm | the profile item form | |
Errors | NOT_FOUND | profileItemId is not found | |
NULL_ARGUMENT | profileItemId is null | ||
OPERATION_FAILED | unable to complete request | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateProfileItem | ||
Description |
Updates an existing profile item. | ||
Parameters | osid.profile.ProfileItemForm | profileItemForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | profileItemForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | profileItemForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | profileItemForm did not originate from
getProfileItemFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteProfileItems | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if ProfileItem deletion is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteProfileItem | ||
Description |
Deletes the | ||
Parameters | osid.id.Id | profileItemId | the Id of the ProfileItem to delete |
Errors | NOT_FOUND | a ProfileItem was not found identified by the given
Id | |
NULL_ARGUMENT | profileItemId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageProfileItemAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if ProfileItem aliasing is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasProfileItem | ||
Description |
Adds an | ||
Parameters | osid.id.Id | profileItemId | the Id of a ProfileItem |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | profileItemId not found | ||
NULL_ARGUMENT | profileItemId or aliasId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |