Package com.atlassian.bamboo.persister
Class AuditLogMessage
- java.lang.Object
-
- com.atlassian.core.bean.EntityObject
-
- com.atlassian.bamboo.hibernate.HibernateEntityObject
-
- com.atlassian.bamboo.persister.AuditLogMessage
-
- All Implemented Interfaces:
BambooIdProvider
,BambooObject
,AuditLogEntry
,Cloneable
@Entity public class AuditLogMessage extends HibernateEntityObject implements AuditLogEntry
-
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.persister.AuditLogEntry
TYPE_CONFIG_CHANGE, TYPE_FIELD_CHANGE
-
-
Constructor Summary
Constructors Constructor Description AuditLogMessage()
AuditLogMessage(@Nullable String username, @NotNull Date timestamp, @Nullable AuditLogEntityType entityType, @Nullable String entityId, @Nullable String childId, @Nullable AuditLogEntity field, @NotNull String messageType, @NotNull String message, @Nullable String oldValue, @Nullable String newValue)
AuditLogMessage(@Nullable String username, @NotNull Date timestamp, @Nullable String planKey, @Nullable AuditLogEntity entity, @NotNull String messageType, @NotNull String message, @Nullable String oldValue, @Nullable String newValue)
Deprecated.since 6.7.0
-
Method Summary
-
Methods inherited from class com.atlassian.bamboo.hibernate.HibernateEntityObject
getId, setId
-
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
-
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
-
-
-
Constructor Detail
-
AuditLogMessage
public AuditLogMessage()
-
AuditLogMessage
@Deprecated public AuditLogMessage(@Nullable @Nullable String username, @NotNull @NotNull Date timestamp, @Nullable @Nullable String planKey, @Nullable @Nullable AuditLogEntity entity, @NotNull @NotNull String messageType, @NotNull @NotNull String message, @Nullable @Nullable String oldValue, @Nullable @Nullable String newValue)
Deprecated.since 6.7.0
-
AuditLogMessage
public AuditLogMessage(@Nullable @Nullable String username, @NotNull @NotNull Date timestamp, @Nullable @Nullable AuditLogEntityType entityType, @Nullable @Nullable String entityId, @Nullable @Nullable String childId, @Nullable @Nullable AuditLogEntity field, @NotNull @NotNull String messageType, @NotNull @NotNull String message, @Nullable @Nullable String oldValue, @Nullable @Nullable String newValue)
-
-
Method Detail
-
getTimestamp
@NotNull public @NotNull Long getTimestamp()
- Specified by:
getTimestamp
in interfaceAuditLogEntry
-
getDate
@NotNull public @NotNull Date getDate()
-
setTimestamp
protected void setTimestamp(Long timestamp)
-
getEntityId
@Nullable public @Nullable String getEntityId()
- Specified by:
getEntityId
in interfaceAuditLogEntry
-
setEntityId
public void setEntityId(String planKey)
-
getChildId
@Nullable public @Nullable String getChildId()
- Specified by:
getChildId
in interfaceAuditLogEntry
-
setChildId
public void setChildId(String childId)
-
getMessageType
@NotNull public @NotNull String getMessageType()
- Specified by:
getMessageType
in interfaceAuditLogEntry
-
setMessageType
protected void setMessageType(String messageType)
-
getMessage
@NotNull public @NotNull String getMessage()
- Specified by:
getMessage
in interfaceAuditLogEntry
-
setMessage
protected void setMessage(String message)
-
getOldValue
public String getOldValue()
- Specified by:
getOldValue
in interfaceAuditLogEntry
-
setOldValue
protected void setOldValue(String oldValue)
-
getNewValue
public String getNewValue()
- Specified by:
getNewValue
in interfaceAuditLogEntry
-
setNewValue
protected void setNewValue(String newValue)
-
getUsername
@Nullable public @Nullable String getUsername()
- Specified by:
getUsername
in interfaceAuditLogEntry
-
setUsername
protected void setUsername(String username)
-
getFieldHeader
public String getFieldHeader()
- Specified by:
getFieldHeader
in interfaceAuditLogEntry
-
setFieldHeader
protected void setFieldHeader(String fieldHeader)
-
getEntityType
public AuditLogEntityType getEntityType()
- Specified by:
getEntityType
in interfaceAuditLogEntry
-
setEntityType
protected void setEntityType(AuditLogEntityType entityType)
-
getFieldType
public AuditLogEntityType getFieldType()
- Specified by:
getFieldType
in interfaceAuditLogEntry
-
setFieldType
public void setFieldType(AuditLogEntityType fieldType)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.atlassian.core.bean.EntityObject
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.atlassian.core.bean.EntityObject
-
compareTo
public int compareTo(Object obj)
-
-