public class TdTemplateServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements TdTemplateService
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
TdTemplateServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
List<TdColumnDefinition> |
addColumnAction(TdColumnDefinition column,
TemplateExpression expression) |
boolean |
changeLabel(int columnIndex,
String newLabel) |
List<TdColumnDefinition> |
deleteColumnAction(TdColumnDefinition column) |
List<TdColumnDefinition> |
executeTabularDataAction(org.gcube.portlets.user.tdtemplateoperation.shared.action.TabularDataAction action)
Execute tabular data action.
|
protected ServerReportTemplateSaved |
generateServerReportTemplate(List<TdColumnDefinition> listColumns,
TdFlowModel flowAttached)
Generates
ServerReportTemplateSaved The server report template. |
List<String> |
getAllowedLocales() |
List<org.gcube.portlets.user.tdtemplateoperation.shared.action.TabularDataActionDescription> |
getAppliedActionsOnTemplate() |
protected org.gcube.application.framework.core.session.ASLSession |
getASLSession()
Gets the ASL session.
|
List<TdBehaviourModel> |
getBehaviours() |
CacheServerExpressions |
getCacheServerExpressions()
Gets the cache server expressions.
|
List<TdTColumnCategory> |
getColumnCategoryByTdTemplateDefinition(TdTemplateDefinition templateDefinition,
boolean isValidTemplate) |
String |
getConstraintForTemplateType(TdTTemplateType type) |
TdFlowModel |
getFlowByTemplateId(long templateId) |
List<TdLicenceModel> |
getLicences() |
List<String> |
getOnErrorValues() |
protected ServerReportTemplateSaved |
getServerColumns(List<TdColumnDefinition> listColumns)
Gets the server columns.
|
List<ViolationDescription> |
getTemplateConstraintsViolations() |
String |
getTemplateHelper() |
org.gcube.data.analysis.tabulardata.commons.templates.model.Template |
getTemplateSession() |
List<TdTTemplateType> |
getTemplateTypes() |
TdTemplateUpdater |
getTemplateUpdaterForTemplateId(long templateId) |
List<TdTTimePeriod> |
getTimeDimensionPeriodTypes() |
void |
invalidCacheServerExpressions()
Invalid cache server expressions.
|
void |
invalidTemplateSession() |
boolean |
isValidTemplate(List<TdTColumnCategory> columns) |
List<TdColumnDefinition> |
reloadColumns() |
boolean |
removeAllActions() |
List<TdColumnDefinition> |
removeLastAction() |
List<org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnData> |
resolveColumnForDimension(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId) |
void |
saveTemplate(boolean isUpdate)
Saves the template stored in (ASL) session
|
void |
setTemplateSession(org.gcube.data.analysis.tabulardata.commons.templates.model.Template template) |
ClientReportTemplateSaved |
submitTemplate(List<TdColumnDefinition> listColumns,
TdFlowModel flowAttached,
boolean save,
List<org.gcube.portlets.user.tdtemplateoperation.shared.action.TabularDataAction> actions) |
ClientReportTemplateSaved |
updateTemplate(List<TdColumnDefinition> listColumns,
boolean save,
List<org.gcube.portlets.user.tdtemplateoperation.shared.action.TabularDataAction> actions) |
checkPermutationStrongName, doGetSerializationPolicy, getCodeServerPolicyUrl, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceprotected org.gcube.application.framework.core.session.ASLSession getASLSession()
public List<TdTColumnCategory> getColumnCategoryByTdTemplateDefinition(TdTemplateDefinition templateDefinition, boolean isValidTemplate) throws Exception
getColumnCategoryByTdTemplateDefinition in interface TdTemplateServiceExceptionpublic List<TdTTemplateType> getTemplateTypes()
getTemplateTypes in interface TdTemplateServicepublic List<String> getOnErrorValues()
getOnErrorValues in interface TdTemplateServicepublic List<TdTTimePeriod> getTimeDimensionPeriodTypes()
getTimeDimensionPeriodTypes in interface TdTemplateServicepublic String getConstraintForTemplateType(TdTTemplateType type)
getConstraintForTemplateType in interface TdTemplateServicepublic ClientReportTemplateSaved submitTemplate(List<TdColumnDefinition> listColumns, TdFlowModel flowAttached, boolean save, List<org.gcube.portlets.user.tdtemplateoperation.shared.action.TabularDataAction> actions) throws Exception
submitTemplate in interface TdTemplateServiceExceptionpublic void saveTemplate(boolean isUpdate)
throws Exception
saveTemplate in interface TdTemplateServiceExceptionpublic void invalidTemplateSession()
public void setTemplateSession(org.gcube.data.analysis.tabulardata.commons.templates.model.Template template)
public org.gcube.data.analysis.tabulardata.commons.templates.model.Template getTemplateSession()
protected ServerReportTemplateSaved generateServerReportTemplate(List<TdColumnDefinition> listColumns, TdFlowModel flowAttached) throws Exception
ServerReportTemplateSaved The server report template.
This class convert client model template in server model template and generates a report ServerReportTemplateSavedlistColumns - the list columnsflowAttached - the flow attachedException - the exceptionpublic ClientReportTemplateSaved updateTemplate(List<TdColumnDefinition> listColumns, boolean save, List<org.gcube.portlets.user.tdtemplateoperation.shared.action.TabularDataAction> actions) throws Exception
updateTemplate in interface TdTemplateServiceExceptionprotected ServerReportTemplateSaved getServerColumns(List<TdColumnDefinition> listColumns)
listColumns - the list columnspublic List<org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnData> resolveColumnForDimension(org.gcube.portlets.user.td.widgetcommonevent.shared.TRId trId) throws Exception
resolveColumnForDimension in interface TdTemplateServiceExceptionpublic CacheServerExpressions getCacheServerExpressions()
public void invalidCacheServerExpressions()
public TdTemplateUpdater getTemplateUpdaterForTemplateId(long templateId) throws Exception
getTemplateUpdaterForTemplateId in interface TdTemplateServiceExceptionpublic List<String> getAllowedLocales()
getAllowedLocales in interface TdTemplateServicepublic boolean isValidTemplate(List<TdTColumnCategory> columns) throws Exception
isValidTemplate in interface TdTemplateServiceExceptionpublic List<ViolationDescription> getTemplateConstraintsViolations()
getTemplateConstraintsViolations in interface TdTemplateServicepublic String getTemplateHelper()
getTemplateHelper in interface TdTemplateServicepublic List<TdLicenceModel> getLicences() throws Exception
getLicences in interface TdTemplateServiceExceptionpublic List<TdBehaviourModel> getBehaviours() throws Exception
getBehaviours in interface TdTemplateServiceExceptionpublic TdFlowModel getFlowByTemplateId(long templateId) throws Exception
getFlowByTemplateId in interface TdTemplateServiceExceptionpublic List<TdColumnDefinition> executeTabularDataAction(org.gcube.portlets.user.tdtemplateoperation.shared.action.TabularDataAction action) throws Exception
executeTabularDataAction in interface TdTemplateServicelistColumns - the list columnsflowAttached - the flow attachedaction - the actionException - the exceptionpublic List<TdColumnDefinition> removeLastAction() throws Exception
removeLastAction in interface TdTemplateServiceExceptionpublic List<org.gcube.portlets.user.tdtemplateoperation.shared.action.TabularDataActionDescription> getAppliedActionsOnTemplate() throws Exception
getAppliedActionsOnTemplate in interface TdTemplateServiceExceptionpublic List<TdColumnDefinition> reloadColumns() throws Exception
reloadColumns in interface TdTemplateServiceExceptionpublic List<TdColumnDefinition> addColumnAction(TdColumnDefinition column, TemplateExpression expression) throws Exception
addColumnAction in interface TdTemplateServiceExceptionpublic boolean removeAllActions()
throws Exception
removeAllActions in interface TdTemplateServiceExceptionpublic List<TdColumnDefinition> deleteColumnAction(TdColumnDefinition column) throws Exception
deleteColumnAction in interface TdTemplateServiceExceptionpublic boolean changeLabel(int columnIndex,
String newLabel)
throws Exception
changeLabel in interface TdTemplateServiceExceptionCopyright © 2015. All Rights Reserved.