com.atlassian.bamboo.persister
Class AuditLogMessage

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.persister.AuditLogMessage
All Implemented Interfaces:
BambooIdProvider, BambooObject, AuditLogEntry, java.lang.Cloneable

public class AuditLogMessage
extends BambooEntityObject
implements AuditLogEntry


Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Fields inherited from interface com.atlassian.bamboo.persister.AuditLogEntry
TYPE_CONFIG_CHANGE, TYPE_FIELD_CHANGE
 
Constructor Summary
AuditLogMessage()
           
AuditLogMessage(java.lang.String username, java.util.Date timestamp, java.lang.String planKey, AuditLogEntity entity, java.lang.String messageType, java.lang.String message, java.lang.String oldValue, java.lang.String newValue)
           
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 boolean equals(java.lang.Object o)
          This method needs to be here in order to use proper id
 java.util.Date getDate()
           
 java.lang.String getEntityHeader()
           
 AuditLogEntityType getEntityType()
           
 java.lang.String getJobKey()
           
 java.lang.String getMessage()
           
 java.lang.String getMessageType()
           
 java.lang.String getNewValue()
           
 java.lang.String getOldValue()
           
 java.lang.String getPlanKey()
           
 java.lang.Long getTimestamp()
           
 java.lang.String getUsername()
           
 int hashCode()
          This method needs to be here in order to use proper id
protected  void setEntityHeader(java.lang.String entityHeader)
           
protected  void setEntityType(AuditLogEntityType entityType)
           
 void setJobKey(java.lang.String jobKey)
           
protected  void setMessage(java.lang.String message)
           
protected  void setMessageType(java.lang.String messageType)
           
protected  void setNewValue(java.lang.String newValue)
           
protected  void setOldValue(java.lang.String oldValue)
           
 void setPlanKey(java.lang.String planKey)
           
protected  void setTimestamp(java.lang.Long timestamp)
           
protected  void setUsername(java.lang.String username)
           
 java.lang.String toString()
           
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
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.BambooObject
setId
 
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
 

Constructor Detail

AuditLogMessage

public AuditLogMessage()

AuditLogMessage

public AuditLogMessage(@Nullable
                       java.lang.String username,
                       @NotNull
                       java.util.Date timestamp,
                       @Nullable
                       java.lang.String planKey,
                       @Nullable
                       AuditLogEntity entity,
                       @NotNull
                       java.lang.String messageType,
                       @NotNull
                       java.lang.String message,
                       @Nullable
                       java.lang.String oldValue,
                       @Nullable
                       java.lang.String newValue)
Method Detail

getTimestamp

@NotNull
public java.lang.Long getTimestamp()
Specified by:
getTimestamp in interface AuditLogEntry

getDate

@NotNull
public java.util.Date getDate()

setTimestamp

protected void setTimestamp(java.lang.Long timestamp)

getPlanKey

@Nullable
public java.lang.String getPlanKey()
Specified by:
getPlanKey in interface AuditLogEntry

setPlanKey

public void setPlanKey(java.lang.String planKey)

getJobKey

@Nullable
public java.lang.String getJobKey()
Specified by:
getJobKey in interface AuditLogEntry

setJobKey

public void setJobKey(java.lang.String jobKey)

getMessageType

@NotNull
public java.lang.String getMessageType()
Specified by:
getMessageType in interface AuditLogEntry

setMessageType

protected void setMessageType(java.lang.String messageType)

getMessage

@NotNull
public java.lang.String getMessage()
Specified by:
getMessage in interface AuditLogEntry

setMessage

protected void setMessage(java.lang.String message)

getOldValue

public java.lang.String getOldValue()
Specified by:
getOldValue in interface AuditLogEntry

setOldValue

protected void setOldValue(java.lang.String oldValue)

getNewValue

public java.lang.String getNewValue()
Specified by:
getNewValue in interface AuditLogEntry

setNewValue

protected void setNewValue(java.lang.String newValue)

getUsername

@Nullable
public java.lang.String getUsername()
Specified by:
getUsername in interface AuditLogEntry

setUsername

protected void setUsername(java.lang.String username)

getEntityHeader

public java.lang.String getEntityHeader()
Specified by:
getEntityHeader in interface AuditLogEntry

setEntityHeader

protected void setEntityHeader(java.lang.String entityHeader)

getEntityType

public AuditLogEntityType getEntityType()
Specified by:
getEntityType in interface AuditLogEntry

setEntityType

protected void setEntityType(AuditLogEntityType entityType)

hashCode

public int hashCode()
Description copied from class: BambooEntityObject
This method needs to be here in order to use proper id

Overrides:
hashCode in class BambooEntityObject

equals

public boolean equals(java.lang.Object o)
Description copied from class: BambooEntityObject
This method needs to be here in order to use proper id

Overrides:
equals in class BambooEntityObject

compareTo

public int compareTo(java.lang.Object obj)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.