Packagecom.pushtechnology.diffusion.notifications
Classpublic final class NotificationLevel
InheritanceNotificationLevel Inheritance Object

Since : 4.6

The notification level of a topic. This level is set when creating a notification handler. It can also be set after this. The notification level determines what information is sent in a notification.



Public Methods
 MethodDefined By
  
NotificationLevel(code:String, hasProperties:Boolean, hasMetadata:Boolean)
NotificationLevel
  
[static] Method to get the NtoficationLevel obejct from the code.
NotificationLevel
  
getCode():String
Returns the code representing the notification level.
NotificationLevel
  
hasMetadata():Boolean
Indicates if metadata is included in this notification level.
NotificationLevel
  
hasProperties():Boolean
Indicates if properties are included in the notification level.
NotificationLevel
Public Constants
 ConstantDefined By
  FULL : NotificationLevel
[static] Highest level of notifications.
NotificationLevel
  METADATA : NotificationLevel
[static] Midlevel of notifications.
NotificationLevel
  MINIMUM : NotificationLevel
[static] Lowest level of notifications.
NotificationLevel
  NONE : NotificationLevel
[static] Lowest level of notification.
NotificationLevel
  PROPERTIES : NotificationLevel
[static] Midlevel of notifications.
NotificationLevel
Constructor Detail
NotificationLevel()Constructor
public function NotificationLevel(code:String, hasProperties:Boolean, hasMetadata:Boolean)



Parameters
code:String
 
hasProperties:Boolean
 
hasMetadata:Boolean
Method Detail
fromCode()method
public static function fromCode(code:String):NotificationLevel

Since : 4.6

Method to get the NtoficationLevel obejct from the code. It will return one of the public constants of this class.

Parameters

code:String

Returns
NotificationLevel
getCode()method 
public function getCode():String

Since : 4.6

Returns the code representing the notification level.

Returns
String
hasMetadata()method 
public function hasMetadata():Boolean

Since : 4.6

Indicates if metadata is included in this notification level.

Returns
Boolean
hasProperties()method 
public function hasProperties():Boolean

Since : 4.6

Indicates if properties are included in the notification level.

Returns
Boolean
Constant Detail
FULLConstant
public static const FULL:NotificationLevel

Highest level of notifications. All available data is returned.

METADATAConstant 
public static const METADATA:NotificationLevel

Midlevel of notifications. Inlcudes all the infomation MINIMUM does and the topic metadata.

MINIMUMConstant 
public static const MINIMUM:NotificationLevel

Lowest level of notifications. Only the type of notification, topic name and data type are returned.

NONEConstant 
public static const NONE:NotificationLevel

Lowest level of notification. Does not notify of added topics.

PROPERTIESConstant 
public static const PROPERTIES:NotificationLevel

Midlevel of notifications. Inlcudes all the infomation MINIMUM does and the topic properties.