Package org.parosproxy.paros.model
Class HistoryReferenceEventPublisher
- java.lang.Object
-
- org.parosproxy.paros.model.HistoryReferenceEventPublisher
-
- All Implemented Interfaces:
EventPublisher
public final class HistoryReferenceEventPublisher extends java.lang.Object implements EventPublisher
AEventPublisher
ofHistoryReference
events.Notifies of changes in the
HistoryReference
's state/data.- Since:
- 2.7.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EVENT_NOTE_SET
The event sent when a new note has been (re)set to aHistoryReference
.static java.lang.String
EVENT_REMOVED
The event sent when aHistoryReference
is removed.static java.lang.String
EVENT_TAG_ADDED
The event sent when a tag is added to aHistoryReference
.static java.lang.String
EVENT_TAG_REMOVED
The event sent when a tag is removed aHistoryReference
.static java.lang.String
EVENT_TAGS_SET
The event sent when new tags are set (for example, multiple added and one removed) to aHistoryReference
.static java.lang.String
FIELD_HISTORY_REFERENCE_ID
The event's field that contains the ID of theHistoryReference
of the event.
-
Constructor Summary
Constructors Constructor Description HistoryReferenceEventPublisher()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HistoryReferenceEventPublisher
getPublisher()
Gets the event publisher.java.lang.String
getPublisherName()
The name by which the publisher is know - typically the full class name of the publisher.
-
-
-
Field Detail
-
EVENT_REMOVED
public static final java.lang.String EVENT_REMOVED
The event sent when aHistoryReference
is removed.- See Also:
- Constant Field Values
-
EVENT_TAG_ADDED
public static final java.lang.String EVENT_TAG_ADDED
The event sent when a tag is added to aHistoryReference
.- See Also:
- Constant Field Values
-
EVENT_TAG_REMOVED
public static final java.lang.String EVENT_TAG_REMOVED
The event sent when a tag is removed aHistoryReference
.- See Also:
- Constant Field Values
-
EVENT_TAGS_SET
public static final java.lang.String EVENT_TAGS_SET
The event sent when new tags are set (for example, multiple added and one removed) to aHistoryReference
.- See Also:
- Constant Field Values
-
EVENT_NOTE_SET
public static final java.lang.String EVENT_NOTE_SET
The event sent when a new note has been (re)set to aHistoryReference
.- See Also:
- Constant Field Values
-
FIELD_HISTORY_REFERENCE_ID
public static final java.lang.String FIELD_HISTORY_REFERENCE_ID
The event's field that contains the ID of theHistoryReference
of the event.- See Also:
- Constant Field Values
-
-
Method Detail
-
getPublisherName
public java.lang.String getPublisherName()
Description copied from interface:EventPublisher
The name by which the publisher is know - typically the full class name of the publisher. Only one publisher can register with a given name.- Specified by:
getPublisherName
in interfaceEventPublisher
- Returns:
- the name of the publisher, never
null
.
-
getPublisher
public static HistoryReferenceEventPublisher getPublisher()
Gets the event publisher.- Returns:
- the event publisher, never
null
.
-
-