@DeclareRoles(value={"org.imixs.ACCESSLEVEL.NOACCESS","org.imixs.ACCESSLEVEL.READERACCESS","org.imixs.ACCESSLEVEL.AUTHORACCESS","org.imixs.ACCESSLEVEL.EDITORACCESS","org.imixs.ACCESSLEVEL.MANAGERACCESS"}) @RolesAllowed(value={"org.imixs.ACCESSLEVEL.NOACCESS","org.imixs.ACCESSLEVEL.READERACCESS","org.imixs.ACCESSLEVEL.AUTHORACCESS","org.imixs.ACCESSLEVEL.EDITORACCESS","org.imixs.ACCESSLEVEL.MANAGERACCESS"}) public class ReportService extends Object
| Constructor and Description |
|---|
ReportService() |
| Modifier and Type | Method and Description |
|---|---|
static Calendar |
computeDynamicDate(String xmlDate)
This method parses a
|
static String |
customNumberFormat(String pattern,
String locale,
double value)
This method converts a double value into a custom number format including
an optional locale.
"###,###.###", "en_UK", 123456.789
"EUR #,###,##0.00", "de_DE", 1456.781
|
List<ItemCollection> |
executeReport(String reportName,
int pageSize,
int pageIndex,
String sortBy,
boolean sortReverse,
Map<String,String> params)
This method executes the JQPL statement of a Report Entity.
|
ItemCollection |
getReport(String aReportName)
Returns a Report Entity identified by the attribute name
|
List<ItemCollection> |
getReportList()
This method returns a all reports (ItemCollection) sorted by name.
|
static String |
replaceDateString(String content)
This method replaces all occurrences of
|
void |
updateReport(ItemCollection aReport)
updates a Entity Report Object.
|
public ItemCollection getReport(String aReportName)
aReportName - - name of the reportExceptionpublic List<ItemCollection> getReportList()
public void updateReport(ItemCollection aReport) throws AccessDeniedException
report - InvalidItemValueExceptionAccessDeniedExceptionpublic List<ItemCollection> executeReport(String reportName, int pageSize, int pageIndex, String sortBy, boolean sortReverse, Map<String,String> params) throws QueryException
reportName - - name of the report to be executedstartPos - - optional start position to query entitiesmaxcount - - optional max count of entities to queryparams - - optional parameter list to be mapped to the JQPL statementitemList - - optional attribute list of items to be returnedQueryExceptionpublic static Calendar computeDynamicDate(String xmlDate)
xmlDate - public static String replaceDateString(String content)
content - public static String customNumberFormat(String pattern, String locale, double value)
pattern - value - Copyright © 2006–2018 Imixs Software Solutions GmbH. All rights reserved.