Class PublicDownload

java.lang.Object
byps.BValueClass
de.elo.ix.client.ValueClass
de.elo.ix.client.PublicDownload
All Implemented Interfaces:
Serializable

public class PublicDownload extends ValueClass implements Serializable
This class describes the public download information.

Internal use.

See Also:
  • Field Details

    • id

      protected String id
      The download ID.
    • remaining

      protected int remaining
      The download count.
    • expiration

      protected String expiration
      The expired time.
    • timeStamp

      protected String timeStamp
      The time stamp.
    • docId

      protected int docId
      The document ID.
    • objId

      protected int objId
      The object ID.
      Since:
      9.00.000.028
    • userId

      protected int userId
      The user ID.
    • url

      protected String url
      The download URL
      Since:
      9.00.014.002
    • fileName

      protected String fileName
      The fileName in the download url. It is readonly.
      Since:
      9.00.030.030
    • attachmentCode

      protected String attachmentCode
      Indicates whether the download is inline or as attachment. this field is ignored in ELO 11.03 and ongoing versions.
      Since:
      9.00.030.030
  • Constructor Details

    • PublicDownload

      public PublicDownload()
    • PublicDownload

      public PublicDownload(String id, int userId, int docId, int remaining, String expiration)
    • PublicDownload

      public PublicDownload(PublicDownload rhs)
  • Method Details

    • getId

      public String getId()
    • setId

      public void setId(String id)
    • getRemaining

      public int getRemaining()
      Get the remaining download count. If the remaining equals Integer.MAX_VALUE, this means unlimited download count.
      Returns:
      The remaining download count.
    • setRemaining

      public void setRemaining(int count)
    • getExpiration

      public String getExpiration()
      Get the expiration. If expiration is null, there is no expiration for this download.
      Returns:
      the expiration.
    • setExpiration

      public void setExpiration(String expiration)
    • setDocId

      public void setDocId(int id)
    • getDocId

      public int getDocId()
    • setObjId

      public void setObjId(int id)
    • getObjId

      public int getObjId()
    • getUserId

      public int getUserId()
    • setUserId

      public void setUserId(int userId)
    • getUrl

      public String getUrl()
    • setUrl

      public void setUrl(String url)
    • hasNoExpiration

      public boolean hasNoExpiration()
    • getFileName

      public String getFileName()
    • setFileName

      public void setFileName(String fileName)
    • getTimeStamp

      public String getTimeStamp()
    • setTimeStamp

      public void setTimeStamp(String timeStamp)
    • getAttachmentCode

      public String getAttachmentCode()
    • setAttachmentCode

      public void setAttachmentCode(String attachmentCode)
    • toString

      public String toString()
      Overrides:
      toString in class Object