| Interface | osid.profile.ProfileEntryAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description |
This session creates and removes An explicit When a profile entry is created, it is disabled until
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 | canCreateProfileEntries | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if ProfileEntry creation is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateProfileEntryWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | profileEntryRecordTypes | array of profile entry types |
| Return | boolean | true if ProfileEntry creation using the
specified Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | profileEntryRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getProfileEntryFormForCreateForAgent | ||
| Description |
Gets the profile entry form for creating new profile entries. A new form should be requested for each create transaction. | ||
| Parameters | osid.id.Id | agentId | the agent Id |
osid.id.Id | profileItemId | the profile item Id | |
osid.type.Type[] | profileEntryRecordTypes | array of profile entry types | |
| Return | osid.profile.ProfileEntryForm | the profile entry form | |
| Errors | NOT_FOUND | agentId or profileItemId is not found | |
| NULL_ARGUMENT | agentId or profileItemId 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 | getProfileEntryFormForCreateForResource | ||
| Description |
Gets the profile entry form for creating new profile entries. A new form should be requested for each create transaction. | ||
| Parameters | osid.id.Id | resourceId | the resource Id |
osid.id.Id | profileItemId | the profile item Id | |
| Return | osid.profile.ProfileEntryForm | the profile entry form | |
| Errors | NOT_FOUND | resourceId or profileItemId is not found | |
| NULL_ARGUMENT | resourceId or profileItemId is null
| ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | createProfileEntry | ||
| Description |
Creates a new | ||
| Parameters | osid.profile.ProfileEntryForm | profileEntryForm | the profile entry form |
| Return | osid.profile.ProfileEntry | t he new ProfileEntry | |
| Errors | ILLEGAL_STATE | profileEntryForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | profileEntryForm null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | profileEntryForm did not originate from
getprofileEntryFormForAgent() or
getProfileEntryFormForResource() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateProfileEntries | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if profile entry modification is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getProfileEntryFormForUpdate | ||
| Description |
Gets the profile entry form for updating an existing profile entry. A new profile entry form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | profileEntryId | the Id of the ProfileEntry |
| Return | osid.profile.ProfileEntryForm | the profile entry form | |
| Errors | NOT_FOUND | profileEntryId is not found | |
| NULL_ARGUMENT | profileEntryId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateProfileEntry | ||
| Description |
Updates an existing profile entry. | ||
| Parameters | osid.profile.ProfileEntryForm | profileEntryForm | the profile entry form |
| Errors | ILLEGAL_STATE | profileEntryForm already used in an update transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | profileEntryForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | profileEntryForm did not originate from
getProfileEntryFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteProfileEntries | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if ProfileEntry deletion is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteProfileEntry | ||
| Description |
Deletes the | ||
| Parameters | osid.id.Id | profileEntryId | the Id of the ProfileEntry to delete |
| Errors | NOT_FOUND | an ProfileEntry was not found identified by the given
Id | |
| NULL_ARGUMENT | profileEntryId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageProfileEntryAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if ProfileEntry aliasing is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasProfileEntry | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | profileEntryId | the Id of an ProfileEntry |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | profileEntryId not found | ||
| NULL_ARGUMENT | profileEntryId or aliasId is null
| ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |