|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IpAccountManagerConnection
The account manager interface provides methods for monitoring accounts. Applications can use this interface to enable or disable charging-related event notifications and to query account balances. This interface shall be implemented by an Account Management SCF. The queryBalanceReq() method, or the retrieveTransactionHistoryReq() method, or both the createNotification() and destroyNotification methods, or both the enableNotifications and disableNotifications methods shall be implemented as a minimum requirement.
| Method Summary | |
|---|---|
void |
changeNotification(int assignmentID,
TpChargingEventCriteria eventCriteria)
This method is used by the application to change the event criteria introduced with createNotification. |
int |
createNotification(TpChargingEventCriteria chargingEventCriteria)
This method is used by the application to enable charging event notifications to be sent to the application. |
void |
destroyNotification(int assignmentId)
This method is used by the application to disable charging notifications.This method only applies to notifications created with createNotification(). |
void |
disableNotifications()
This method is used to indicate that the application is not able to receive notifications for which the provisioning has been done from within the network. |
int |
enableNotifications()
This method is used to indicate that the application is able to receive which are provisioned from within the network (i.e. these notifications are NOT set using createNotification() but via, for instance, a network management system). |
TpChargingEventCriteriaResult[] |
getNotification()
This method is used by the application to query the event criteria set with createNotification or changeNotification. |
int |
queryBalanceReq(TpAddress[] users)
This method is used by the application to query the balance of an account for one or several users. |
int |
retrieveTransactionHistoryReq(TpAddress user,
TpTimeInterval transactionInterval)
This asynchronous method is used by the application to retrieve a transaction history of a subscriber's account. |
| Methods inherited from interface org.mobicents.csapi.jr.slee.IpServiceConnection |
|---|
closeConnection |
| Method Detail |
|---|
int createNotification(TpChargingEventCriteria chargingEventCriteria)
throws TpCommonExceptions,
P_INVALID_ADDRESS,
P_INVALID_CRITERIA,
P_INVALID_EVENT_TYPE,
P_UNKNOWN_SUBSCRIBER,
javax.slee.resource.ResourceException
chargingEventCriteria - Specifies the event specific criteria used by the application to define the charging event required. Individual addresses or address ranges may be specified for subscriber accounts. Example of events are "charging" and "recharging".
TpCommonExceptions
P_INVALID_ADDRESS
P_INVALID_CRITERIA
P_INVALID_EVENT_TYPE
P_UNKNOWN_SUBSCRIBER
javax.slee.resource.ResourceException
void destroyNotification(int assignmentId)
throws TpCommonExceptions,
P_INVALID_ASSIGNMENT_ID,
javax.slee.resource.ResourceException
assignmentId - Specifies the assignment ID that was given by the account management object when the application enabled the charging notification.
TpCommonExceptions
P_INVALID_ASSIGNMENT_ID
javax.slee.resource.ResourceException
int queryBalanceReq(TpAddress[] users)
throws TpCommonExceptions,
P_UNKNOWN_SUBSCRIBER,
P_UNAUTHORIZED_APPLICATION,
javax.slee.resource.ResourceException
users - Specifies the user(s) for which the balance is queried.
TpCommonExceptions
P_UNKNOWN_SUBSCRIBER
P_UNAUTHORIZED_APPLICATION
javax.slee.resource.ResourceException
void changeNotification(int assignmentID,
TpChargingEventCriteria eventCriteria)
throws TpCommonExceptions,
P_INVALID_ASSIGNMENT_ID,
P_INVALID_CRITERIA,
P_INVALID_EVENT_TYPE,
P_UNKNOWN_SUBSCRIBER,
P_INVALID_ADDRESS,
javax.slee.resource.ResourceException
assignmentID - Specifies the ID assigned by the manager interface for the event notification.eventCriteria - Specifies the new set of event criteria used by the application to define the event required. Only events that meet these criteria are reported
TpCommonExceptions
P_INVALID_ASSIGNMENT_ID
P_INVALID_CRITERIA
P_INVALID_EVENT_TYPE
P_UNKNOWN_SUBSCRIBER
P_INVALID_ADDRESS
javax.slee.resource.ResourceException
TpChargingEventCriteriaResult[] getNotification()
throws TpCommonExceptions,
javax.slee.resource.ResourceException
TpCommonExceptions
javax.slee.resource.ResourceException
int retrieveTransactionHistoryReq(TpAddress user,
TpTimeInterval transactionInterval)
throws TpCommonExceptions,
P_UNKNOWN_SUBSCRIBER,
P_UNAUTHORIZED_APPLICATION,
P_INVALID_TIME_AND_DATE_FORMAT,
javax.slee.resource.ResourceException
user - Specifies the subscriber for whose account the transaction history is to be retrieved.transactionInterval - Specifies the time interval for which the application history is to be retrieved.
TpCommonExceptions
P_UNKNOWN_SUBSCRIBER
P_UNAUTHORIZED_APPLICATION
P_INVALID_TIME_AND_DATE_FORMAT
javax.slee.resource.ResourceException
int enableNotifications()
throws TpCommonExceptions,
javax.slee.resource.ResourceException
TpCommonExceptions
javax.slee.resource.ResourceException
void disableNotifications()
throws TpCommonExceptions,
javax.slee.resource.ResourceException
TpCommonExceptions
javax.slee.resource.ResourceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||