public class PropertyEvent extends Object implements Event
Modifier and Type | Class and Description |
---|---|
static class |
PropertyEvent.PropertyEventType
The property event type defines why this event was triggered
|
Constructor and Description |
---|
PropertyEvent(Long objectId,
PropertyType propertyType,
String keyGroup,
String key) |
Modifier and Type | Method and Description |
---|---|
String |
getKey() |
String |
getKeyGroup() |
String |
getNewValue() |
Long |
getObjectId() |
String |
getOldValue() |
PropertyEvent.PropertyEventType |
getPropertyEventType() |
PropertyType |
getPropertyType() |
Long |
getUserId() |
void |
setNewValue(String newValue) |
void |
setOldValue(String oldValue) |
void |
setPropertyEventType(PropertyEvent.PropertyEventType propertyEventType) |
void |
setUserId(Long id)
Set the ID of the user associated with a modified UserNoteProperty
|
public PropertyEvent(Long objectId, PropertyType propertyType, String keyGroup, String key)
objectId
- the id of the object this property change is referring too. The type of the
property can be inferred from the associated propertyTypepropertyType
- the type of the changed propertykeyGroup
- the key groupkey
- the key of the propertypublic String getKey()
public String getKeyGroup()
public String getNewValue()
public Long getObjectId()
getPropertyType()
For
a PropertyType.UserNoteProperty
this id refers to the noteId. For the userId
use getUserId()
public String getOldValue()
public PropertyEvent.PropertyEventType getPropertyEventType()
public PropertyType getPropertyType()
public Long getUserId()
public void setNewValue(String newValue)
newValue
- sets the new value (see getNewValue()
for more details)public void setOldValue(String oldValue)
oldValue
- sets the old value (see getOldValue()
for more details)public void setPropertyEventType(PropertyEvent.PropertyEventType propertyEventType)
propertyEventType
- sets the type of eventpublic void setUserId(Long id)
id
- the ID of the userCopyright © 2019 Communote team. All rights reserved.