Class Snapshot

  • All Implemented Interfaces:
    java.util.Comparator<Snapshot>, Identifiable

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

      • Snapshot

        public Snapshot()
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns:
        the snapshotName
      • setName

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

        public java.lang.String getDescription()
        Returns:
        the description
      • setDescription

        public void setDescription​(java.lang.String description)
        Parameters:
        description - the description to set
      • getSnapshotDate

        public java.util.Date getSnapshotDate()
        Returns:
        the snapshotDate
      • setSnapshotDate

        public void setSnapshotDate​(java.util.Date snapshotDate)
        Parameters:
        snapshotDate - the snapshotDate to set
      • getStartDate

        public java.util.Date getStartDate()
        Returns:
        the startDate
      • setStartDate

        public void setStartDate​(java.util.Date startDate)
        Parameters:
        startDate - the startDate to set
      • getEndDate

        public java.util.Date getEndDate()
        Returns:
        the endDate
      • setEndDate

        public void setEndDate​(java.util.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 java.util.List<SnapshotHistory> getSnapshotHistory()
        Returns:
        list of history entries for a snapshot
      • setSnapshotHistory

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

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

        public void addSnapshotAlternateIds​(java.util.List<java.lang.String> snapshotAlternateIds)
        Parameters:
        snapshotAlternateIds -
      • compare

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

        public java.lang.String getStatusText()
        Returns:
        the statusText
      • setStatusText

        public void setStatusText​(java.lang.String statusText)
        Parameters:
        statusText - the statusText to set
      • getUserEmail

        public java.lang.String getUserEmail()
        Returns:
        the userEmail
      • setUserEmail

        public void setUserEmail​(java.lang.String userEmail)
        Parameters:
        userEmail - the userEmail to set
      • getTotalSizeInBytes

        public java.lang.Long getTotalSizeInBytes()
        Returns:
        the totalSizeInBytes
      • setTotalSizeInBytes

        public void setTotalSizeInBytes​(java.lang.Long totalSizeInBytes)
        Parameters:
        totalSizeInBytes - the totalSizeInBytes to set
      • getMemberId

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

        public void setMemberId​(java.lang.String memberId)
        Parameters:
        memberId - the preservation network id to set