|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jamasoftware.contour.plugin.VelocityReportPluginSupport
public abstract class VelocityReportPluginSupport
Support class for Velocity Report Plugin.
| Field Summary | |
|---|---|
protected org.springframework.context.ApplicationContext |
applicationContext
|
protected DocumentFieldDao |
docFieldDao
|
protected DocumentDao |
documentDao
|
protected com.jamasoftware.contour.service.documentNode.DocumentNodeManager |
documentNodeManager
|
protected com.jamasoftware.contour.service.DocumentTypeService |
documentTypeService
|
protected com.jamasoftware.contour.util.type.FieldDataTypeManager |
fieldDataTypeManager
|
protected com.jamasoftware.contour.service.FilterService |
filterService
|
protected com.jamasoftware.contour.project.service.ProjectService |
projectService
|
protected com.jamasoftware.contour.service.PropertyService |
propertyService
|
protected com.jamasoftware.contour.service.RelationshipService |
relationshipService
|
protected Report |
report
|
protected com.jamasoftware.contour.util.ReportRender |
reportRender
|
protected com.jamasoftware.contour.service.SmartFilterService |
smartFilterService
|
protected com.jamasoftware.contour.tag.dao.TagDao |
tagDao
|
protected UserDao |
userDao
|
static java.lang.String |
VELOCITY_REPORT_PARAM_RELATE
|
static java.lang.String |
VELOCITY_REPORT_PARAM_TAG
|
| Constructor Summary | |
|---|---|
VelocityReportPluginSupport()
|
|
| Method Summary | |
|---|---|
protected void |
addVelocityTools(java.util.Map<java.lang.String,java.lang.Object> model)
Adds the Velocity tools to the context model. |
protected java.lang.String |
getBaseUrl(com.jamasoftware.contour.project.domain.Project project)
Returns base URL with a trailing slash ('/'). |
protected com.jamasoftware.contour.util.DateFormatter |
getDateFormatter()
Gets the system date formats. |
protected com.jamasoftware.contour.service.search.SearchResults<ContourItem> |
getDocumentlist(com.jamasoftware.contour.service.dto.QuickReportDTO quickReport)
|
protected com.jamasoftware.contour.service.search.SearchResults<ContourItem> |
getDocumentlistSorted(com.jamasoftware.contour.service.dto.QuickReportDTO quickReport,
java.lang.String orderBy)
|
protected com.jamasoftware.contour.service.dto.DocumentTypeDTO |
getDocumentMeta(com.jamasoftware.contour.service.dto.QuickReportDTO quickReport,
java.util.Map<java.lang.String,com.jamasoftware.contour.service.dto.DocumentTypeDTO> metaCache,
ContourItem document)
|
Report |
getReport()
|
protected abstract java.util.Map<java.lang.String,java.lang.Object> |
getVelocityReport(com.jamasoftware.contour.service.dto.QuickReportDTO quickReport,
java.lang.Integer projectId,
java.util.Map<java.lang.String,java.lang.Boolean> params,
java.lang.String format,
java.util.Map<java.lang.String,java.lang.Object> reportParams)
Renders the report. |
void |
init(Report report,
org.springframework.context.ApplicationContext applicationContext)
Initiates the daos and services used by the report. |
protected void |
mergeRelationships(java.util.ArrayList<VelocityReportDTO> vrDtoArrayList,
java.util.List<java.lang.Integer> ids)
|
protected void |
mergeTags(java.util.ArrayList<VelocityReportDTO> vrDtoArrayList,
java.util.ArrayList<java.lang.Integer> ids)
|
java.util.Map<java.lang.String,java.lang.Object> |
runPlugin(java.util.Map<java.lang.String,java.lang.Object> params)
Runs a report plugin |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String VELOCITY_REPORT_PARAM_TAG
public static java.lang.String VELOCITY_REPORT_PARAM_RELATE
protected Report report
protected org.springframework.context.ApplicationContext applicationContext
protected com.jamasoftware.contour.util.ReportRender reportRender
protected com.jamasoftware.contour.project.service.ProjectService projectService
protected com.jamasoftware.contour.service.DocumentTypeService documentTypeService
protected com.jamasoftware.contour.service.FilterService filterService
protected com.jamasoftware.contour.service.SmartFilterService smartFilterService
protected com.jamasoftware.contour.service.RelationshipService relationshipService
protected com.jamasoftware.contour.tag.dao.TagDao tagDao
protected com.jamasoftware.contour.service.PropertyService propertyService
protected DocumentFieldDao docFieldDao
protected DocumentDao documentDao
protected UserDao userDao
protected com.jamasoftware.contour.util.type.FieldDataTypeManager fieldDataTypeManager
protected com.jamasoftware.contour.service.documentNode.DocumentNodeManager documentNodeManager
| Constructor Detail |
|---|
public VelocityReportPluginSupport()
| Method Detail |
|---|
public void init(Report report,
org.springframework.context.ApplicationContext applicationContext)
init in interface com.jamasoftware.contour.plugin.ReportPluginreport - the underlying reportapplicationContext - Spring context
public java.util.Map<java.lang.String,java.lang.Object> runPlugin(java.util.Map<java.lang.String,java.lang.Object> params)
throws java.lang.Exception
com.jamasoftware.contour.plugin.ReportPlugin
runPlugin in interface com.jamasoftware.contour.plugin.ReportPluginparams - parameters for the report
java.lang.Exception
protected abstract java.util.Map<java.lang.String,java.lang.Object> getVelocityReport(com.jamasoftware.contour.service.dto.QuickReportDTO quickReport,
java.lang.Integer projectId,
java.util.Map<java.lang.String,java.lang.Boolean> params,
java.lang.String format,
java.util.Map<java.lang.String,java.lang.Object> reportParams)
throws java.lang.Exception
quickReport - projectId - params - format - reportParams -
java.lang.Exceptionprotected com.jamasoftware.contour.util.DateFormatter getDateFormatter()
protected void addVelocityTools(java.util.Map<java.lang.String,java.lang.Object> model)
By default, mathTool, sortTool, dateTool and escapeTool are
added.
model -
protected void mergeTags(java.util.ArrayList<VelocityReportDTO> vrDtoArrayList,
java.util.ArrayList<java.lang.Integer> ids)
protected void mergeRelationships(java.util.ArrayList<VelocityReportDTO> vrDtoArrayList,
java.util.List<java.lang.Integer> ids)
protected com.jamasoftware.contour.service.dto.DocumentTypeDTO getDocumentMeta(com.jamasoftware.contour.service.dto.QuickReportDTO quickReport,
java.util.Map<java.lang.String,com.jamasoftware.contour.service.dto.DocumentTypeDTO> metaCache,
ContourItem document)
protected com.jamasoftware.contour.service.search.SearchResults<ContourItem> getDocumentlist(com.jamasoftware.contour.service.dto.QuickReportDTO quickReport)
protected com.jamasoftware.contour.service.search.SearchResults<ContourItem> getDocumentlistSorted(com.jamasoftware.contour.service.dto.QuickReportDTO quickReport,
java.lang.String orderBy)
public Report getReport()
getReport in interface com.jamasoftware.contour.plugin.ReportPluginprotected java.lang.String getBaseUrl(com.jamasoftware.contour.project.domain.Project project)
project -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||