public class ConverterToTemplateServiceModel extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
ConverterToTemplateServiceModel() |
| Modifier and Type | Method and Description |
|---|---|
static org.gcube.data.analysis.tabulardata.commons.templates.model.Template |
addActionToTemplate(org.gcube.data.analysis.tabulardata.commons.templates.model.Template template,
org.gcube.portlets.user.tdtemplateoperation.shared.action.TabularDataAction action)
Adds the action to template.
|
static org.gcube.data.analysis.tabulardata.commons.templates.model.actions.finals.AddToFlowAction |
addToFlowAction(org.gcube.data.analysis.tabulardata.commons.webservice.types.TabularResource tabularResource,
org.gcube.data.analysis.tabulardata.commons.templates.model.actions.finals.DuplicateBehaviour duplicateBehaviour)
Adds the to flow action.
|
static Class<? extends org.gcube.data.analysis.tabulardata.expression.Expression> |
convertAggregationFunctionForId(String aggregationId)
Convert aggregation function for id.
|
static org.gcube.data.analysis.tabulardata.commons.templates.model.actions.finals.DuplicateBehaviour |
convertDuplicateBehaviour(String duplicateBehaviourId)
Convert duplicate behaviour.
|
static List<org.gcube.data.analysis.tabulardata.service.tabular.metadata.TabularResourceMetadata<?>> |
convertFlow(TdFlowModel flow)
Convert flow.
|
static org.gcube.data.analysis.tabulardata.commons.utils.Licence |
convertLicence(String licenseValue)
Convert licence.
|
static org.gcube.data.analysis.tabulardata.expression.Expression |
convertRuleExpression(org.gcube.portlets.user.td.widgetcommonevent.shared.expression.C_Expression expr)
Convert rule expression.
|
static Calendar |
DateToCalendar(Date date)
Date to calendar.
|
static org.gcube.data.analysis.tabulardata.model.column.ColumnReference |
getColumnReference(org.gcube.data.analysis.tabulardata.model.table.Table table,
String columnName)
Gets the column reference.
|
static org.gcube.data.analysis.tabulardata.commons.utils.LocaleReference |
localeIdToLacaleReference(String localeId)
Locale id to lacale reference.
|
static org.gcube.data.analysis.tabulardata.commons.webservice.types.OnRowErrorAction |
onRowErrorAction(String error)
On row error action.
|
static org.gcube.data.analysis.tabulardata.model.time.PeriodType |
periodNameToPeriodType(String periodName)
Period name to period type.
|
static org.gcube.data.analysis.tabulardata.model.time.PeriodType |
periodType(String periodType)
Period type.
|
static org.gcube.data.analysis.tabulardata.commons.templates.model.columns.ColumnCategory |
tdTdTColumnCategoryToColumnCategory(TdTColumnCategory tdtColumnCategory)
Td td t column category to column category.
|
static Class<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType> |
tdTdTDataTypeToDataType(TdTDataType tdTdTDataType)
Td td t data type to data type.
|
static org.gcube.data.analysis.tabulardata.commons.utils.FormatReference |
tdTdTFormatRefereceToFormatReference(TdTDataType dataType)
Td td t format referece to format reference.
|
static org.gcube.data.analysis.tabulardata.commons.templates.model.TemplateCategory |
tdTemplateTypeToTemplateCategory(TdTTemplateType templateType)
Td template type to template category.
|
static org.gcube.data.analysis.tabulardata.commons.templates.model.TemplateCategory |
templateCategoryFromColumnCategoryName(String columnCategoryName)
Template category from column category name.
|
static org.gcube.data.analysis.tabulardata.commons.templates.model.TemplateCategory |
templateCategoryFromTemplateName(String templateName)
Template category from template name.
|
public static org.gcube.data.analysis.tabulardata.commons.templates.model.columns.ColumnCategory tdTdTColumnCategoryToColumnCategory(TdTColumnCategory tdtColumnCategory) throws Exception
tdtColumnCategory - the tdt column categoryException - the exceptionpublic static org.gcube.data.analysis.tabulardata.commons.templates.model.TemplateCategory templateCategoryFromTemplateName(String templateName) throws Exception
templateName - the template nameException - the exceptionpublic static org.gcube.data.analysis.tabulardata.model.time.PeriodType periodNameToPeriodType(String periodName) throws Exception
periodName - the period nameException - the exceptionpublic static org.gcube.data.analysis.tabulardata.commons.utils.LocaleReference localeIdToLacaleReference(String localeId)
localeId - the locale idpublic static org.gcube.data.analysis.tabulardata.commons.templates.model.TemplateCategory templateCategoryFromColumnCategoryName(String columnCategoryName) throws Exception
columnCategoryName - the column category nameException - the exceptionpublic static org.gcube.data.analysis.tabulardata.commons.templates.model.TemplateCategory tdTemplateTypeToTemplateCategory(TdTTemplateType templateType) throws Exception
templateType - the template typeException - the exceptionpublic static Class<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType> tdTdTDataTypeToDataType(TdTDataType tdTdTDataType) throws Exception
tdTdTDataType - the td td t data typeException - the exceptionpublic static org.gcube.data.analysis.tabulardata.commons.utils.FormatReference tdTdTFormatRefereceToFormatReference(TdTDataType dataType)
dataType - the data typepublic static org.gcube.data.analysis.tabulardata.commons.webservice.types.OnRowErrorAction onRowErrorAction(String error) throws Exception
error - the errorException - the exceptionpublic static org.gcube.data.analysis.tabulardata.expression.Expression convertRuleExpression(org.gcube.portlets.user.td.widgetcommonevent.shared.expression.C_Expression expr)
throws Exception
expr - the exprException - the exceptionpublic static org.gcube.data.analysis.tabulardata.commons.utils.Licence convertLicence(String licenseValue) throws Exception
licenseValue - the license valueException - the exceptionpublic static List<org.gcube.data.analysis.tabulardata.service.tabular.metadata.TabularResourceMetadata<?>> convertFlow(TdFlowModel flow)
flow - the flowpublic static org.gcube.data.analysis.tabulardata.model.time.PeriodType periodType(String periodType) throws Exception
periodType - the period typeException - the exceptionpublic static Class<? extends org.gcube.data.analysis.tabulardata.expression.Expression> convertAggregationFunctionForId(String aggregationId)
aggregationId - the aggregation idpublic static org.gcube.data.analysis.tabulardata.model.column.ColumnReference getColumnReference(org.gcube.data.analysis.tabulardata.model.table.Table table,
String columnName)
throws Exception
table - the tablecolumnName - the column nameException - the exceptionpublic static org.gcube.data.analysis.tabulardata.commons.templates.model.actions.finals.DuplicateBehaviour convertDuplicateBehaviour(String duplicateBehaviourId) throws Exception
duplicateBehaviourId - the duplicate behaviour idException - the exceptionpublic static org.gcube.data.analysis.tabulardata.commons.templates.model.actions.finals.AddToFlowAction addToFlowAction(org.gcube.data.analysis.tabulardata.commons.webservice.types.TabularResource tabularResource,
org.gcube.data.analysis.tabulardata.commons.templates.model.actions.finals.DuplicateBehaviour duplicateBehaviour)
tabularResource - the tabular resourceduplicateBehaviour - the duplicate behaviourpublic static Calendar DateToCalendar(Date date)
date - the datepublic static org.gcube.data.analysis.tabulardata.commons.templates.model.Template addActionToTemplate(org.gcube.data.analysis.tabulardata.commons.templates.model.Template template,
org.gcube.portlets.user.tdtemplateoperation.shared.action.TabularDataAction action)
throws Exception
template - the templateaction - the actionException - the exceptionCopyright © 2015. All Rights Reserved.