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 int
TYPE_CSV
The output is a CSV text file.static int
TYPE_HTML
The output is an HTML text file.static int
TYPE_OTHER
Other type of report but CSV, XLSX, HTML or PDF.static int
TYPE_PDF
The output is a PDF file.static int
TYPE_XLSX
The 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 int
compareTo(ReportMetadataLight o)
String
getDescription()
long
getId()
static String
getMimeTypeForReport(int reportType)
String
getName()
int
getType()
static String
getTypeAsString(Integer type)
Boolean
isEnabled()
void
setDescription(String description)
void
setEnabled(Boolean enabled)
void
setId(long id)
void
setName(String name)
void
setType(int type)
String
toString()
-
-
-
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:
compareTo
in interfaceComparable<ReportMetadataLight>
-
getMimeTypeForReport
public static String getMimeTypeForReport(int reportType)
-
-