Class ReportMetadataLight
- java.lang.Object
-
- org.neotropic.kuwaiba.core.apis.persistence.application.reporting.ReportMetadataLight
-
- All Implemented Interfaces:
Comparable<ReportMetadataLight>
- Direct Known Subclasses:
ReportMetadata
public class ReportMetadataLight extends Object implements Comparable<ReportMetadataLight>
A simplified representation of aReport.- Author:
- Charles Edward Bedon Cortazar <charles.bedon@kuwaiba.org>
-
-
Field Summary
Fields Modifier and Type Field Description static intTYPE_CSVThe output is a CSV text file.static intTYPE_HTMLThe output is an HTML text file.static intTYPE_OTHEROther type of report but CSV, XLSX, HTML or PDF.static intTYPE_PDFThe output is a PDF file.static intTYPE_XLSXThe output is a XLSX spreadsheet.
-
Constructor Summary
Constructors Constructor Description ReportMetadataLight(long id, String name, String description, boolean enabled, int type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ReportMetadataLight o)StringgetDescription()longgetId()static StringgetMimeTypeForReport(int reportType)StringgetName()intgetType()static StringgetTypeAsString(Integer type)BooleanisEnabled()voidsetDescription(String description)voidsetEnabled(Boolean enabled)voidsetId(long id)voidsetName(String name)voidsetType(int type)StringtoString()
-
-
-
Field Detail
-
TYPE_CSV
public static final int TYPE_CSV
The output is a CSV text file.- See Also:
- Constant Field Values
-
TYPE_HTML
public static final int TYPE_HTML
The output is an HTML text file.- See Also:
- Constant Field Values
-
TYPE_PDF
public static final int TYPE_PDF
The output is a PDF file.- See Also:
- Constant Field Values
-
TYPE_XLSX
public static final int TYPE_XLSX
The output is a XLSX spreadsheet.- See Also:
- Constant Field Values
-
TYPE_OTHER
public static final int TYPE_OTHER
Other type of report but CSV, XLSX, HTML or PDF.- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public long getId()
-
setId
public void setId(long id)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
isEnabled
public Boolean isEnabled()
-
setEnabled
public void setEnabled(Boolean enabled)
-
getType
public int getType()
-
setType
public void setType(int type)
-
compareTo
public int compareTo(ReportMetadataLight o)
- Specified by:
compareToin interfaceComparable<ReportMetadataLight>
-
getMimeTypeForReport
public static String getMimeTypeForReport(int reportType)
-
-