Class Upload

java.lang.Object
org.ctan.site.domain.AbstractEntity
org.ctan.site.domain.catalogue.Upload

@Entity public class Upload extends AbstractEntity
This domain class represents the log entry for a successful upload.
  • Constructor Details

    • Upload

      public Upload()
  • Method Details

    • getAnnouncementAsHtml

      public String getAnnouncementAsHtml()
      This method is the getter for the announcement in HTML format.
      Returns:
      the announcement
    • getDescriptionAsHtml

      public String getDescriptionAsHtml()
      This method is the getter for the description in HTML format.
      Returns:
      the description as HTML
    • getLicenses

      public String[] getLicenses()
      This is the getter for license.
      Returns:
      the license
    • getNoteAsHtml

      public String getNoteAsHtml()
      This method is the getter for the note in HTML format.
      Returns:
      the note
    • getSummaryAsHtml

      public String getSummaryAsHtml()
      This method is the getter for the summary in HTML format.
      Returns:
      the summary as HTML
    • getVersionDate

      public String getVersionDate()
      This method is the getter for the version date.
      Returns:
      the version date
    • getVersionNumber

      public String getVersionNumber()
      This method is the getter for the version number.
      Returns:
      the version number
    • setDescription

      public void setDescription(String s)
      This method is the setter for the description.
      Parameters:
      s - the description
    • setLicenses

      public void setLicenses(String[] licenses)
      This is the setter for license.
      Parameters:
      licenses - the list of licenses
    • setSummary

      public void setSummary(String s)
      This method is the setter for the summary.
      Parameters:
      s - the summary
    • toFile

      public void toFile(File file) throws IOException
      This method saves the upload to a file.
      Parameters:
      file - the target file
      Throws:
      IOException - in case of an error
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also: