Package com.highdeal.notification
Class NotificationDescription
java.lang.Object
com.highdeal.notification.NotificationDescription
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:
- A unique identifier of the predefined description
- A name
- A pretty name (user friendly name)
- A
notification severity level - And a set of additional information keys that define the
argumentsof anotification message
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanString[]Returns the additional info descriptions of the notification.Object[]Returns the additional info types of this notificationgetName()Returns the name of the notification.Returns the pretty name of the notification.Returns theseverity levelof the notification.intgetUid()Returns the unique identifier of the notification.inthashCode()booleanChecks if the notification is handled or not; If not the notification described by this description will not be generated by the SAP CC system.voidisHandled(boolean isHandled) Sets if the notification is handled or not.
-
Method Details
-
getArgTypes
Returns the additional info types of this notification- Returns:
- An array of additional info types that can be empty but not null
-
getAdditionalInfoKeys
Returns the additional info descriptions of the notification.- Returns:
- An array of string that can be null
-
getName
Returns the name of the notification.- Returns:
- The name
-
getPrettyName
Returns the pretty name of the notification.- Returns:
- The pretty name
-
getSeverityLevel
Returns theseverity levelof 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() -
equals
-