com.highdeal.notification
Class InternalNotification

java.lang.Object
  extended by com.highdeal.notification.InternalNotification
Direct Known Subclasses:
Notification, RenewReservationNotification, SpendingStatusReportNotification

public class InternalNotification
extends java.lang.Object

This class represents an internal notification sent by the SAP CC system; An internal notification message relates to an event exceptional or not that took place in an instance of the SAP CC system and that must be handled by a mediation system (from the generated rated transactions included in the answers of the charging operation requests), but not by an external system.

An internal notification informs about where, when and what happened. It includes:


Nested Class Summary
static class InternalNotification.ArgListType
           
static class InternalNotification.ArgType
           
 
Constructor Summary
InternalNotification()
          Empty constructor
InternalNotification(java.lang.String systemName, java.lang.String instanceId, long timestamp, NotificationDescription desc, java.lang.Object[] argTypes, java.lang.Object[] argValues)
          Initializes an internal notification with the identifier of the system instance where the event took place, the date when it occurred, a predefined description of what happened and a list of arguments to provide specific complementary information about the event.
 
Method Summary
 java.lang.Object[] getArgTypes()
          Returns the arguments of this notification
 java.lang.Object[] getArgValues()
          Returns the arguments of this notification
 NotificationDescription getDesc()
          Returns the description of this notification.
 java.lang.String getInstanceId()
          Returns the instance ID where the event described by this notification took place
 java.lang.String getSystemName()
          Returns the name of the SAP CC system of the instance where the event took place
 long getTimestamp()
          Returns the date when the event described by this notification occurred
 void setArgTypes(java.lang.Object[] argTypes)
           
 void setArgValues(java.lang.Object[] argValues)
           
 void setDesc(NotificationDescription desc)
           
 void setInstanceId(java.lang.String instanceId)
           
 void setSystemName(java.lang.String systemName)
           
 void setTimestamp(long timestamp)
           
 java.lang.String toString()
          Returns a string representation of the instance ID, the date, unique identifier and the specific arguments of a notification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InternalNotification

public InternalNotification()
Empty constructor


InternalNotification

public InternalNotification(java.lang.String systemName,
                            java.lang.String instanceId,
                            long timestamp,
                            NotificationDescription desc,
                            java.lang.Object[] argTypes,
                            java.lang.Object[] argValues)
                     throws java.lang.IllegalArgumentException
Initializes an internal notification with the identifier of the system instance where the event took place, the date when it occurred, a predefined description of what happened and a list of arguments to provide specific complementary information about the event. The list of argument types and is specified by the predefined description.

Parameters:
systemName - The name of the SAP CC system that includes the instance that sends the notification
instanceId - The ID of the system instance where the event took place
timestamp - Date and time of the related event signaled by the notification
desc - The predefined description of the notification
argTypes - The type of the arguments
argValues - The value of the arguments
Throws:
java.lang.IllegalArgumentException - If desc is null or if instanceId is null or if argTypes does not match argValues
Method Detail

getSystemName

public final java.lang.String getSystemName()
Returns the name of the SAP CC system of the instance where the event took place

Returns:
The system name

getInstanceId

public final java.lang.String getInstanceId()
Returns the instance ID where the event described by this notification took place

Returns:
The instance identifier

getTimestamp

public final long getTimestamp()
Returns the date when the event described by this notification occurred

Returns:
The event date

getDesc

public final NotificationDescription getDesc()
Returns the description of this notification.

Returns:
A description

getArgValues

public final java.lang.Object[] getArgValues()
Returns the arguments of this notification

Returns:
An array of string that can be empty but not null

getArgTypes

public final java.lang.Object[] getArgTypes()
Returns the arguments of this notification

Returns:
An array of string that can be empty but not null

toString

public java.lang.String toString()
Returns a string representation of the instance ID, the date, unique identifier and the specific arguments of a notification.

Overrides:
toString in class java.lang.Object
Returns:
A string representation

setSystemName

public void setSystemName(java.lang.String systemName)

setInstanceId

public void setInstanceId(java.lang.String instanceId)

setDesc

public void setDesc(NotificationDescription desc)

setTimestamp

public void setTimestamp(long timestamp)

setArgValues

public void setArgValues(java.lang.Object[] argValues)

setArgTypes

public void setArgTypes(java.lang.Object[] argTypes)

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)