Package fr.becpg.repo.report.template
Interface ReportTplService
- All Known Implementing Classes:
ReportTplServiceImpl
public interface ReportTplService
ReportTplService interface.
- Version:
- $Id: $Id
- Author:
- matthieu
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstantPARAM_VALUE_DESIGN_EXTENSION=".rptdesign"static final StringConstantPARAM_VALUE_XLSMREPORT_EXTENSION=".xlsm"static final StringConstantPARAM_VALUE_XLSXREPORT_EXTENSION=".xlsx"static final StringConstantPARAM_VALUE_XMLREPORT_EXTENSION=".xml" -
Method Summary
Modifier and TypeMethodDescriptionList<org.alfresco.service.cmr.repository.NodeRef>cleanDefaultTpls(List<org.alfresco.service.cmr.repository.NodeRef> tplsNodeRef) Check the default reports (return one default tpl) if there is a user default tpl, remove system default tpl and keep user oneorg.alfresco.service.cmr.repository.NodeRefcreateTplRessource(org.alfresco.service.cmr.repository.NodeRef parentNodeRef, String xmlFilePath, boolean overrideRessource) Create a resource for the reportorg.alfresco.service.cmr.repository.NodeRefcreateTplRptDesign(org.alfresco.service.cmr.repository.NodeRef parentNodeRef, String tplName, String tplFilePath, ReportTplInformation tplInformation, boolean overrideTpl) Create the rptdesign node for the reportorg.alfresco.service.cmr.repository.NodeRefgetAssociatedReportTemplate(org.alfresco.service.cmr.repository.NodeRef nodeRef) Get the template associated to the reportorg.alfresco.service.cmr.repository.NodeRefgetDefaultReportTemplate(ReportType reportType, org.alfresco.service.namespace.QName nodeType) getDefaultReportTemplate.fr.becpg.report.client.ReportFormatgetReportFormat(org.alfresco.service.cmr.repository.NodeRef tplNodeRef) Get the report formatorg.alfresco.service.cmr.repository.NodeRefgetSystemReportTemplate(ReportType reportType, org.alfresco.service.namespace.QName nodeType, String tplName) Gets the system report template.List<org.alfresco.service.cmr.repository.NodeRef>getSystemReportTemplates(ReportType reportType, org.alfresco.service.namespace.QName nodeType) Gets the system report templates.org.alfresco.service.cmr.repository.NodeRefgetUserReportTemplate(ReportType reportType, org.alfresco.service.namespace.QName nodeType, String tplName) Get the user template by nameList<org.alfresco.service.cmr.repository.NodeRef>getUserReportTemplates(ReportType reportType, org.alfresco.service.namespace.QName nodeType, String tplName) Gets the user report templates.
-
Field Details
-
PARAM_VALUE_DESIGN_EXTENSION
ConstantPARAM_VALUE_DESIGN_EXTENSION=".rptdesign"- See Also:
-
PARAM_VALUE_XLSXREPORT_EXTENSION
ConstantPARAM_VALUE_XLSXREPORT_EXTENSION=".xlsx"- See Also:
-
PARAM_VALUE_XMLREPORT_EXTENSION
ConstantPARAM_VALUE_XMLREPORT_EXTENSION=".xml"- See Also:
-
PARAM_VALUE_XLSMREPORT_EXTENSION
ConstantPARAM_VALUE_XLSMREPORT_EXTENSION=".xlsm"- See Also:
-
-
Method Details
-
getSystemReportTemplates
List<org.alfresco.service.cmr.repository.NodeRef> getSystemReportTemplates(ReportType reportType, org.alfresco.service.namespace.QName nodeType) Gets the system report templates.- Parameters:
nodeType- the system report templatesreportType- aReportTypeobject.- Returns:
- a
Listobject.
-
getSystemReportTemplate
org.alfresco.service.cmr.repository.NodeRef getSystemReportTemplate(ReportType reportType, org.alfresco.service.namespace.QName nodeType, String tplName) Gets the system report template.- Parameters:
reportType- aReportTypeobject.nodeType- aQNameobject.tplName- aStringobject.- Returns:
- a
NodeRefobject.
-
getUserReportTemplate
org.alfresco.service.cmr.repository.NodeRef getUserReportTemplate(ReportType reportType, org.alfresco.service.namespace.QName nodeType, String tplName) Get the user template by name- Parameters:
reportType- aReportTypeobject.nodeType- aQNameobject.tplName- aStringobject.- Returns:
- a
NodeRefobject.
-
getUserReportTemplates
List<org.alfresco.service.cmr.repository.NodeRef> getUserReportTemplates(ReportType reportType, org.alfresco.service.namespace.QName nodeType, String tplName) Gets the user report templates.- Parameters:
nodeType- the node typetplName- the tpl name the user report templatesreportType- aReportTypeobject.- Returns:
- a
Listobject.
-
createTplRptDesign
org.alfresco.service.cmr.repository.NodeRef createTplRptDesign(org.alfresco.service.cmr.repository.NodeRef parentNodeRef, String tplName, String tplFilePath, ReportTplInformation tplInformation, boolean overrideTpl) throws IOException Create the rptdesign node for the report- Parameters:
parentNodeRef- aNodeRefobject.tplName- aStringobject.tplFilePath- aStringobject.overrideTpl- a boolean.tplInformation- aReportTplInformationobject- Returns:
- a
NodeRefobject. - Throws:
IOException- if any.
-
createTplRessource
org.alfresco.service.cmr.repository.NodeRef createTplRessource(org.alfresco.service.cmr.repository.NodeRef parentNodeRef, String xmlFilePath, boolean overrideRessource) throws IOException Create a resource for the report- Parameters:
parentNodeRef- aNodeRefobject.xmlFilePath- aStringobject.overrideRessource- a boolean.- Returns:
- a
NodeRefobject. - Throws:
IOException- if any.
-
cleanDefaultTpls
List<org.alfresco.service.cmr.repository.NodeRef> cleanDefaultTpls(List<org.alfresco.service.cmr.repository.NodeRef> tplsNodeRef) Check the default reports (return one default tpl) if there is a user default tpl, remove system default tpl and keep user one -
getReportFormat
fr.becpg.report.client.ReportFormat getReportFormat(org.alfresco.service.cmr.repository.NodeRef tplNodeRef) Get the report format- Parameters:
tplNodeRef- aNodeRefobject.- Returns:
- a
ReportFormatobject.
-
getAssociatedReportTemplate
org.alfresco.service.cmr.repository.NodeRef getAssociatedReportTemplate(org.alfresco.service.cmr.repository.NodeRef nodeRef) Get the template associated to the report- Parameters:
nodeRef- aNodeRefobject.- Returns:
- a
NodeRefobject.
-
getDefaultReportTemplate
org.alfresco.service.cmr.repository.NodeRef getDefaultReportTemplate(ReportType reportType, org.alfresco.service.namespace.QName nodeType) getDefaultReportTemplate.
- Parameters:
reportType- aReportTypeobject.nodeType- aQNameobject.- Returns:
- a
NodeRefobject.
-