Class Snapshot
- java.lang.Object
-
- cern.nxcals.api.backport.domain.core.snapshot.Snapshot
-
- All Implemented Interfaces:
java.io.Serializable
public class Snapshot extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Snapshot(java.lang.String name, java.lang.String description, java.lang.String owner, org.joda.time.DateTime createdOn, org.joda.time.DateTime expiresIn, boolean visibleToPublic, java.lang.String timberVersion)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
static Snapshot
from(@NonNull Group group)
static Snapshot
from(@NonNull Group group, @NonNull java.util.Map<java.lang.String,java.util.Set<Variable>> variables)
org.joda.time.DateTime
getCreatedOn()
java.lang.String
getDescription()
org.joda.time.DateTime
getExpirationDate()
long
getId()
java.lang.String
getName()
java.lang.String
getOwner()
SnapshotProperties
getProperties()
java.lang.String
getTimberVersion()
int
hashCode()
boolean
isVisibleToPublic()
void
setCreatedOn(org.joda.time.DateTime createdOn)
void
setDescription(java.lang.String description)
void
setExpirationDate(org.joda.time.DateTime expirationDate)
void
setId(long id)
void
setName(java.lang.String name)
void
setOwner(java.lang.String owner)
void
setProperties(SnapshotProperties properties)
void
setTimberVersion(java.lang.String timberVersion)
void
setVisibleToPublic(boolean visibleToPublic)
-
-
-
Method Detail
-
from
public static Snapshot from(@NonNull @NonNull Group group, @NonNull @NonNull java.util.Map<java.lang.String,java.util.Set<Variable>> variables)
-
getName
public java.lang.String getName()
-
getDescription
public java.lang.String getDescription()
-
getOwner
public java.lang.String getOwner()
-
getCreatedOn
public org.joda.time.DateTime getCreatedOn()
-
getExpirationDate
public org.joda.time.DateTime getExpirationDate()
-
isVisibleToPublic
public boolean isVisibleToPublic()
-
getTimberVersion
public java.lang.String getTimberVersion()
-
getId
public long getId()
-
getProperties
public SnapshotProperties getProperties()
-
setName
public void setName(java.lang.String name)
-
setDescription
public void setDescription(java.lang.String description)
-
setOwner
public void setOwner(java.lang.String owner)
-
setCreatedOn
public void setCreatedOn(org.joda.time.DateTime createdOn)
-
setExpirationDate
public void setExpirationDate(org.joda.time.DateTime expirationDate)
-
setVisibleToPublic
public void setVisibleToPublic(boolean visibleToPublic)
-
setTimberVersion
public void setTimberVersion(java.lang.String timberVersion)
-
setId
public void setId(long id)
-
setProperties
public void setProperties(SnapshotProperties properties)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-