Class NotificationDescription

java.lang.Object
com.highdeal.notification.NotificationDescription

public class NotificationDescription extends Object
This class represents a predefined description of a notification; It specfies some keys of complementary information that must be included in the notifications.

A notification description is defined by:

See Also:
  • Method Details

    • getArgTypes

      public Object[] getArgTypes()
      Returns the additional info types of this notification
      Returns:
      An array of additional info types that can be empty but not null
    • getAdditionalInfoKeys

      public String[] getAdditionalInfoKeys()
      Returns the additional info descriptions of the notification.
      Returns:
      An array of string that can be null
    • getName

      public String getName()
      Returns the name of the notification.
      Returns:
      The name
    • getPrettyName

      public String getPrettyName()
      Returns the pretty name of the notification.
      Returns:
      The pretty name
    • getSeverityLevel

      public NotificationLevel getSeverityLevel()
      Returns the severity level of the notification.
      Returns:
      The severity level
    • getUid

      public int getUid()
      Returns the unique identifier of the notification.
      Returns:
      The uid
    • isHandled

      public void isHandled(boolean isHandled)
      Sets if the notification is handled or not.
      Parameters:
      isHandled - true if the notification is handled, false otherwise
    • isHandled

      public boolean isHandled()
      Checks if the notification is handled or not; If not the notification described by this description will not be generated by the SAP CC system.
      Returns:
      true if the notification is handled, false otherwise
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object