@Entity public class Log extends Object implements Serializable, Comparable<Log>
Constructor and Description |
---|
Log()
Creates a new instance of Log
|
Log(Long logId)
Creates a new instance of Log.
|
Log(Long logId,
String owner)
Creates a new instance of Log.
|
Modifier and Type | Method and Description |
---|---|
void |
addLogbook(Logbook logbook)
Adds an Logbook to the log.
|
void |
addTag(Tag tag)
Adds an Tag to the collection.
|
void |
addXmlAttachment(XmlAttachment attachment)
Adds an XmlAttachment to the collection.
|
void |
addXmlProperty(XmlProperty property)
Adds an Property to the log.
|
int |
compareTo(Log num) |
boolean |
equals(Object o) |
Set<LogAttribute> |
getAttributes() |
Date |
getCreatedDate()
Getter for log created date.
|
String |
getDescription()
Getter for log description.
|
Entry |
getEntry() |
Long |
getEntryId() |
Long |
getId()
Getter for log id.
|
Level |
getLevel()
Getter for log level.
|
Set<Logbook> |
getLogbooks()
Getter for log's Logbooks.
|
Date |
getModifiedDate()
Getter for log modified date.
|
String |
getOwner()
Getter for log owner.
|
String |
getSource()
Getter for log source IP.
|
State |
getState() |
Set<Tag> |
getTags()
Getter for the log's Tags.
|
String |
getVersion()
Getter for log version id.
|
Collection<XmlAttachment> |
getXmlAttachments()
Getter for the log's XmlAttachments.
|
Collection<XmlProperty> |
getXmlProperties()
Getter for log's XmlProperties.
|
int |
hashCode() |
void |
removeLogbook(Logbook logbook) |
void |
removeTag(Tag tag) |
void |
removeXmlAttachment(XmlAttachment attachment) |
void |
removeXmlProperty(XmlProperty property) |
void |
setAttributes(Set<LogAttribute> attributes) |
void |
setDescription(String description)
Setter for log description.
|
void |
setEntry(Entry entry) |
void |
setEntryId(Long id) |
void |
setId(Long logId)
Setter for log id.
|
void |
setLevel(Level level)
Setter for log owner.
|
void |
setLogbooks(Set<Logbook> logbooks)
Setter for log's Logbooks.
|
void |
setModifiedDate(Date modifiedDate)
Setter for log modified date.
|
void |
setOwner(String owner)
Setter for log owner.
|
void |
setSource(String source)
Setter for log source IP.
|
void |
setState(State state) |
void |
setTags(Set<Tag> tags)
Setter for the log's Tags.
|
void |
setUpdated() |
void |
setVersion(String version)
Setter for log version id.
|
void |
setXmlAttachments(Collection<XmlAttachment> attachments)
Setter for the log's XmlAttachments.
|
void |
setXmlProperties(Collection<XmlProperty> properties)
Setter for log's XmlProperties.
|
static String |
toLogger(Log data)
Creates a compact string representation for the log.
|
public Log()
public Log(Long logId)
logId
- log idpublic void setUpdated()
public Long getId()
public void setId(Long logId)
logId
- public Long getEntryId()
public void setEntryId(Long id)
public State getState()
public void setState(State state)
public String getVersion()
public void setVersion(String version)
version
- public String getOwner()
public void setOwner(String owner)
owner
- public Level getLevel()
public void setLevel(Level level)
level
- public Date getModifiedDate()
public void setModifiedDate(Date modifiedDate)
modifiedDate
- public Date getCreatedDate()
public String getSource()
public void setSource(String source)
source
- IPpublic String getDescription()
public void setDescription(String description)
description
- the value to setpublic Collection<XmlProperty> getXmlProperties()
public void setXmlProperties(Collection<XmlProperty> properties)
properties
- XmlPropertiespublic void addXmlProperty(XmlProperty property)
property
- single Propertypublic void removeXmlProperty(XmlProperty property)
public void setLogbooks(Set<Logbook> logbooks)
logbooks
- Logbookspublic void addLogbook(Logbook logbook)
logbook
- single Logbookpublic void removeLogbook(Logbook logbook)
public void addTag(Tag tag)
tag
- public void removeTag(Tag tag)
public Collection<XmlAttachment> getXmlAttachments()
public void setXmlAttachments(Collection<XmlAttachment> attachments)
attachments
- XmlAttachmentspublic void addXmlAttachment(XmlAttachment attachment)
attachment
- public void removeXmlAttachment(XmlAttachment attachment)
public Entry getEntry()
public void setEntry(Entry entry)
entry
- the entry to setpublic Set<LogAttribute> getAttributes()
public void setAttributes(Set<LogAttribute> attributes)
public int compareTo(Log num)
compareTo
in interface Comparable<Log>
public static String toLogger(Log data)
data
- Log to create the string representation forCopyright © 2010-2014 Michigan State University. All Rights Reserved.