Interface | osid.subscription.SubscriptionAdminSession | ||
---|---|---|---|
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 | getPublisherId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Publisher Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getPublisher | ||
Description |
Gets the | ||
Return | osid.subscription.Publisher | the publisher | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canCreateSubscriptions | ||
Description |
Tests if this user can create hournal entries. A return
of true does not guarantee successful authorization. A
return of false indicates that it is known creating a
| ||
Return | boolean | false if Subscription creation is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateSubscriptionWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | subscriptionRecordTypes | array of subscription record types |
Return | boolean | true if Subscription creation using the
specified record Types is supported, false
otherwise | |
Errors | NULL_ARGUMENT | subscriptionRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getSubscriptionFormForCreate | ||
Description |
Gets the subscription form for creating new entries. A new form should be requested for each create transaction. | ||
Parameters | osid.id.Id | dispatchId | the Id for the dispatch |
osid.id.Id | resourceId | the Id for the resource | |
osid.type.Type[] | subscriptionRecordTypes | array of subscription record types | |
Return | osid.subscription.SubscriptionForm | the subscription form | |
Errors | NOT_FOUND | dispatchId or resourceId is not found | |
NULL_ARGUMENT | dispatchId, resourceId, or subscriptionRecordTypes
is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | unable to get from for requested record types | ||
Compliance | mandatory | This method must be implemented. | |
Method | createSubscription | ||
Description |
Creates a new | ||
Parameters | osid.subscription.SubscriptionForm | subscriptionForm | the form for this Subscription |
Return | osid.subscription.Subscription | the new Subscription | |
Errors | ILLEGAL_STATE | subscriptionForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | resourceId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | subscriptionForm did not originate from
getSubscriptionFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateSubscriptions | ||
Description |
Tests if this user can update subscriptions. A return
of true does not guarantee successful authorization. A
return of false indicates that it is known updating a
| ||
Return | boolean | false if Subscription modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getSubscriptionFormForUpdate | ||
Description |
Gets the subscription form for updating an existing subscription. A new subscription form should be requested for each update transaction. | ||
Parameters | osid.id.Id | subscriptionId | the Id of the Subscription |
Return | osid.subscription.SubscriptionForm | the subscription form | |
Errors | NOT_FOUND | subscriptionId is not found | |
NULL_ARGUMENT | subscriptionId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateSubscription | ||
Description |
Updates an existing subscription. | ||
Parameters | osid.subscription.SubscriptionForm | subscriptionForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | subscriptionForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | subscriptionId or subscriptionForm is
null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | subscriptionForm did not originate from
getSubscriptionFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteSubscriptions | ||
Description |
Tests if this user can delete subscriptions. A return
of true does not guarantee successful authorization. A
return of false indicates that it is known deleting an
| ||
Return | boolean | false if Subscription deletion is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteSubscription | ||
Description |
Deletes an | ||
Parameters | osid.id.Id | subscriptionId | the Id of the Subscription to remove |
Errors | NOT_FOUND | subscriptionId not found | |
NULL_ARGUMENT | subscriptionId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageSubscriptionAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Subscription aliasing is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasSubscription | ||
Description |
Adds an | ||
Parameters | osid.id.Id | subscriptionId | the Id of a Subscription |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | subscriptionId not found | ||
NULL_ARGUMENT | subscriptionId or aliasId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |