Package org.duracloud.snapshot.db.model
Class Snapshot
java.lang.Object
org.duracloud.snapshot.db.model.BaseEntity
org.duracloud.snapshot.db.model.Snapshot
- All Implemented Interfaces:
Comparator<Snapshot>,Identifiable
- Author:
- Daniel Bernstein Date: Jul 21, 2014
-
Field Summary
Fields inherited from class org.duracloud.snapshot.db.model.BaseEntity
id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSnapshotAlternateIds(List<String> snapshotAlternateIds) intgetName()org.duracloud.snapshot.dto.SnapshotStatusvoidsetDescription(String description) voidsetEndDate(Date endDate) voidsetMemberId(String memberId) voidvoidsetSnapshotDate(Date snapshotDate) voidsetSnapshotHistory(List<SnapshotHistory> snapshotHistory) voidsetSource(DuracloudEndPointConfig source) voidsetStartDate(Date startDate) voidsetStatus(org.duracloud.snapshot.dto.SnapshotStatus status) voidsetStatusText(String statusText) voidsetTotalSizeInBytes(Long totalSizeInBytes) voidsetUserEmail(String userEmail) toString()Methods inherited from class org.duracloud.snapshot.db.model.BaseEntity
equals, getId, getModified, hashCode, setId, setModifiedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
Snapshot
public Snapshot()
-
-
Method Details
-
getName
- Returns:
- the snapshotName
-
setName
- Parameters:
name- the snapshotName to set
-
getDescription
- Returns:
- the description
-
setDescription
- Parameters:
description- the description to set
-
getSource
- Returns:
- the source
-
setSource
- Parameters:
source- the source to set
-
getSnapshotDate
- Returns:
- the snapshotDate
-
setSnapshotDate
- Parameters:
snapshotDate- the snapshotDate to set
-
getStartDate
- Returns:
- the startDate
-
setStartDate
- Parameters:
startDate- the startDate to set
-
getEndDate
- Returns:
- the endDate
-
setEndDate
- Parameters:
endDate- the endDate to set
-
getStatus
public org.duracloud.snapshot.dto.SnapshotStatus getStatus()- Returns:
- the status
-
setStatus
public void setStatus(org.duracloud.snapshot.dto.SnapshotStatus status) - Parameters:
status- the status to set
-
getSnapshotHistory
- Returns:
- list of history entries for a snapshot
-
setSnapshotHistory
- Parameters:
snapshotHistory- - list of history entries for a snapshot
-
getSnapshotAlternateIds
- Returns:
- list of alternate id's for a snapshot
-
addSnapshotAlternateIds
- Parameters:
snapshotAlternateIds-
-
compare
- Specified by:
comparein interfaceComparator<Snapshot>
-
getStatusText
- Returns:
- the statusText
-
setStatusText
- Parameters:
statusText- the statusText to set
-
getUserEmail
- Returns:
- the userEmail
-
setUserEmail
- Parameters:
userEmail- the userEmail to set
-
getTotalSizeInBytes
- Returns:
- the totalSizeInBytes
-
setTotalSizeInBytes
- Parameters:
totalSizeInBytes- the totalSizeInBytes to set
-
getMemberId
- Returns:
- the preservation network member id
-
setMemberId
- Parameters:
memberId- the preservation network id to set
-
toString
- Overrides:
toStringin classBaseEntity
-