Class NotificationEvent

    • Field Detail

      • EVENT_SOURCE_UNKNOWN

        public static final java.lang.String EVENT_SOURCE_UNKNOWN
        Deprecated.
        See Also:
        Constant Field Values
      • EVENT_TYPE_UNKNOWN

        @Deprecated
        public static final java.lang.String EVENT_TYPE_UNKNOWN
        Deprecated.
        since 6.6
        See Also:
        Constant Field Values
      • EVENT_NAME

        public static final java.lang.String EVENT_NAME
        Deprecated.
        See Also:
        Constant Field Values
    • Constructor Detail

      • NotificationEvent

        public NotificationEvent​(java.lang.String source,
                                 java.lang.String eventType,
                                 NotificationEvent.Level level,
                                 java.lang.Object... referencedObjects)
        Deprecated.
        Parameters:
        source - identity of notification source
        eventType - type of event that has taken place
        level - importance level of notification
        referencedObjects - optional array of objects that were involved in the event
    • Method Detail

      • getName

        public java.lang.String getName()
        Deprecated.
        Specified by:
        getName in interface CockpitEvent
        Returns:
        The name of the event.
      • getData

        public java.lang.Object getData()
        Deprecated.
        Specified by:
        getData in interface CockpitEvent
        Returns:
        The data attached to the event. Can be null.
      • getSource

        public java.lang.String getSource()
        Deprecated.
        Specified by:
        getSource in interface CockpitEvent
        Returns:
        The event source, i.e. the object which has fired the event. Can be null.
      • getEventType

        public java.lang.String getEventType()
        Deprecated.
        Returns:
        type of event that has taken place
      • getReferencedObjects

        public java.lang.Object[] getReferencedObjects()
        Deprecated.
      • equals

        public boolean equals​(java.lang.Object o)
        Deprecated.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object