Class Snapshot

java.lang.Object
org.duracloud.snapshot.db.model.BaseEntity
org.duracloud.snapshot.db.model.Snapshot
All Implemented Interfaces:
Comparator<Snapshot>, Identifiable

@Entity public class Snapshot extends BaseEntity implements Comparator<Snapshot>
Author:
Daniel Bernstein Date: Jul 21, 2014
  • Constructor Details

    • Snapshot

      public Snapshot()
  • Method Details

    • getName

      public String getName()
      Returns:
      the snapshotName
    • setName

      public void setName(String name)
      Parameters:
      name - the snapshotName to set
    • getDescription

      public String getDescription()
      Returns:
      the description
    • setDescription

      public void setDescription(String description)
      Parameters:
      description - the description to set
    • getSource

      public DuracloudEndPointConfig getSource()
      Returns:
      the source
    • setSource

      public void setSource(DuracloudEndPointConfig source)
      Parameters:
      source - the source to set
    • getSnapshotDate

      public Date getSnapshotDate()
      Returns:
      the snapshotDate
    • setSnapshotDate

      public void setSnapshotDate(Date snapshotDate)
      Parameters:
      snapshotDate - the snapshotDate to set
    • getStartDate

      public Date getStartDate()
      Returns:
      the startDate
    • setStartDate

      public void setStartDate(Date startDate)
      Parameters:
      startDate - the startDate to set
    • getEndDate

      public Date getEndDate()
      Returns:
      the endDate
    • setEndDate

      public void setEndDate(Date endDate)
      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

      public List<SnapshotHistory> getSnapshotHistory()
      Returns:
      list of history entries for a snapshot
    • setSnapshotHistory

      public void setSnapshotHistory(List<SnapshotHistory> snapshotHistory)
      Parameters:
      snapshotHistory - - list of history entries for a snapshot
    • getSnapshotAlternateIds

      public List<String> getSnapshotAlternateIds()
      Returns:
      list of alternate id's for a snapshot
    • addSnapshotAlternateIds

      public void addSnapshotAlternateIds(List<String> snapshotAlternateIds)
      Parameters:
      snapshotAlternateIds -
    • compare

      public int compare(Snapshot o1, Snapshot o2)
      Specified by:
      compare in interface Comparator<Snapshot>
    • getStatusText

      public String getStatusText()
      Returns:
      the statusText
    • setStatusText

      public void setStatusText(String statusText)
      Parameters:
      statusText - the statusText to set
    • getUserEmail

      public String getUserEmail()
      Returns:
      the userEmail
    • setUserEmail

      public void setUserEmail(String userEmail)
      Parameters:
      userEmail - the userEmail to set
    • getTotalSizeInBytes

      public Long getTotalSizeInBytes()
      Returns:
      the totalSizeInBytes
    • setTotalSizeInBytes

      public void setTotalSizeInBytes(Long totalSizeInBytes)
      Parameters:
      totalSizeInBytes - the totalSizeInBytes to set
    • getMemberId

      public String getMemberId()
      Returns:
      the preservation network member id
    • setMemberId

      public void setMemberId(String memberId)
      Parameters:
      memberId - the preservation network id to set
    • toString

      public String toString()
      Overrides:
      toString in class BaseEntity