Package org.ctan.site.domain.catalogue
Class Upload
java.lang.Object
org.ctan.site.domain.AbstractEntity
org.ctan.site.domain.catalogue.Upload
This domain class represents the log entry for a successful upload.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
This enumeration lists known file types. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method is the getter for the announcement in HTML format.This method is the getter for the description in HTML format.String[]
This is the getter forlicense
.This method is the getter for the note in HTML format.This method is the getter for the summary in HTML format.This method is the getter for the version date.This method is the getter for the version number.void
This method is the setter for the description.void
setLicenses
(String[] licenses) This is the setter forlicense
.void
setSummary
(String s) This method is the setter for the summary.void
This method saves the upload to a file.toString()
-
Constructor Details
-
Upload
public Upload()
-
-
Method Details
-
getAnnouncementAsHtml
This method is the getter for the announcement in HTML format.- Returns:
- the announcement
-
getDescriptionAsHtml
This method is the getter for the description in HTML format.- Returns:
- the description as HTML
-
getLicenses
This is the getter forlicense
.- Returns:
- the license
-
getNoteAsHtml
This method is the getter for the note in HTML format.- Returns:
- the note
-
getSummaryAsHtml
This method is the getter for the summary in HTML format.- Returns:
- the summary as HTML
-
getVersionDate
This method is the getter for the version date.- Returns:
- the version date
-
getVersionNumber
This method is the getter for the version number.- Returns:
- the version number
-
setDescription
This method is the setter for the description.- Parameters:
s
- the description
-
setLicenses
This is the setter forlicense
.- Parameters:
licenses
- the list of licenses
-
setSummary
This method is the setter for the summary.- Parameters:
s
- the summary
-
toFile
This method saves the upload to a file.- Parameters:
file
- the target file- Throws:
IOException
- in case of an error
-
toString
-