public class ConverterToTdTemplateModel extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
ConverterToTdTemplateModel() |
| Modifier and Type | Method and Description |
|---|---|
static TdBehaviourModel |
convertDuplicateBehaviour(org.gcube.data.analysis.tabulardata.commons.templates.model.actions.finals.DuplicateBehaviour bhv)
Convert duplicate behaviour.
|
static TdFlowModel |
convertFlow(Collection<org.gcube.data.analysis.tabulardata.service.tabular.metadata.TabularResourceMetadata<?>> listMetadata)
Convert flow.
|
static org.gcube.portlets.user.td.widgetcommonevent.shared.expression.C_Expression |
convertRuleExpression(org.gcube.data.analysis.tabulardata.expression.Expression expr)
Convert rule expression.
|
static List<org.gcube.portlets.user.tdtemplateoperation.shared.action.TabularDataActionDescription> |
getActionDescriptionsToTabularDataActions(List<org.gcube.data.analysis.tabulardata.commons.templates.model.TemplateAction<Long>> actions,
TemplateService service)
Gets the action descriptions to tabular data actions.
|
static List<org.gcube.portlets.user.tdtemplateoperation.shared.AggregatePair> |
getAggregationFunctionTemplate(List<org.gcube.data.analysis.tabulardata.commons.templates.model.actions.impl.AggregationPair> aggregationPairs,
TemplateService service,
CacheServerExpressions cache) |
static List<String> |
getAllowedLocales()
Gets the allowed locales.
|
static List<TdBehaviourModel> |
getDuplicateBehaviours()
Gets the duplicate behaviours.
|
static List<TdLicenceModel> |
getLicences()
Gets the licences.
|
List<String> |
getOnErrorActions()
Gets the on error actions.
|
static List<String> |
getOnErrorValues()
Gets the on error values.
|
static org.gcube.portlets.user.tdtemplateoperation.shared.TdColumnData |
getTdColumnData(TdColumnDefinition tdColumn,
String serverId)
Gets the td column data.
|
static TdColumnDefinition |
getTdColumnDefinitionFromTemplateColumn(int index,
org.gcube.data.analysis.tabulardata.commons.templates.model.columns.TemplateColumn<?> templateColumn,
TemplateService service,
CacheServerExpressions cache)
Gets the td column definition from template column.
|
static List<TdColumnDefinition> |
getTdColumnDefinitionFromTemplateColumn(List<org.gcube.data.analysis.tabulardata.commons.templates.model.columns.TemplateColumn<?>> sCol,
org.gcube.data.analysis.tabulardata.commons.templates.model.Template template,
TemplateService service,
CacheServerExpressions cache)
Gets the td column definition from template column.
|
static TdTColumnCategory |
getTdTColumnCategoryFromColumnCategory(org.gcube.data.analysis.tabulardata.commons.templates.model.columns.ColumnCategory col)
Gets the td t column category from column category.
|
static List<TdTColumnCategory> |
getTdTColumnCategoryFromTemplateCategory(org.gcube.data.analysis.tabulardata.commons.templates.model.TemplateCategory template)
Gets the td t column category from template category.
|
static TdTDataType |
getTdTDataTypeFromDataType(Class<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType> dataType)
Gets the td t data type from data type.
|
static List<TdTDataType> |
getTdTDataTypeFromListDataType(List<Class<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType>> dataTypes)
Gets the td t data type from list data type.
|
static TemplateUpdaterForDescription |
getTdTemplateUpdaterFromTemplateDescription(org.gcube.data.analysis.tabulardata.commons.webservice.types.TemplateDescription sdescr,
TemplateService service,
CacheServerExpressions cache)
Gets the td template updater from template description.
|
static List<TdTFormatReference> |
getTdTFormatReferences(Class<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType> dataType)
Gets the td t format references.
|
static List<TdTTemplateType> |
getTdTTemplateTypeFromTemplateCategoryValues()
Gets the td t template type from template category values.
|
static List<ViolationDescription> |
getTemplateCategoryConstraint(org.gcube.data.analysis.tabulardata.commons.templates.model.TemplateCategory cat)
Gets the template category constraint.
|
static List<TdTTimePeriod> |
getTimeDimensionPeriodTypes()
Gets the time dimension period types.
|
static boolean |
isBaseTemplateColumn(org.gcube.data.analysis.tabulardata.commons.templates.model.Template template,
org.gcube.data.analysis.tabulardata.commons.templates.model.columns.TemplateColumn<?> column)
Checks if is base template column.
|
static TdColumnDefinition |
settingSpecificReference(org.gcube.data.analysis.tabulardata.commons.templates.model.columns.TemplateColumn<?> templateColumn,
TdColumnDefinition tdColumn,
TemplateService service)
Setting specific reference.
|
public static List<TdTTemplateType> getTdTTemplateTypeFromTemplateCategoryValues()
public static List<ViolationDescription> getTemplateCategoryConstraint(org.gcube.data.analysis.tabulardata.commons.templates.model.TemplateCategory cat)
cat - the catpublic static List<String> getOnErrorValues()
public static List<TdTColumnCategory> getTdTColumnCategoryFromTemplateCategory(org.gcube.data.analysis.tabulardata.commons.templates.model.TemplateCategory template) throws Exception
template - the templateException - the exceptionpublic static List<TdTFormatReference> getTdTFormatReferences(Class<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType> dataType)
dataType - the data typepublic static TdTColumnCategory getTdTColumnCategoryFromColumnCategory(org.gcube.data.analysis.tabulardata.commons.templates.model.columns.ColumnCategory col) throws Exception
col - the colException - the exceptionpublic static List<TdTDataType> getTdTDataTypeFromListDataType(List<Class<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType>> dataTypes) throws Exception
dataTypes - the data typesException - the exceptionpublic static TdTDataType getTdTDataTypeFromDataType(Class<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType> dataType) throws Exception
dataType - the data typeException - the exceptionpublic List<String> getOnErrorActions()
public static TemplateUpdaterForDescription getTdTemplateUpdaterFromTemplateDescription(org.gcube.data.analysis.tabulardata.commons.webservice.types.TemplateDescription sdescr, TemplateService service, CacheServerExpressions cache)
sdescr - the sdescrservice - the servicecache - the cachepublic static List<org.gcube.portlets.user.tdtemplateoperation.shared.action.TabularDataActionDescription> getActionDescriptionsToTabularDataActions(List<org.gcube.data.analysis.tabulardata.commons.templates.model.TemplateAction<Long>> actions, TemplateService service)
actions - the actionsservice - public static List<org.gcube.portlets.user.tdtemplateoperation.shared.AggregatePair> getAggregationFunctionTemplate(List<org.gcube.data.analysis.tabulardata.commons.templates.model.actions.impl.AggregationPair> aggregationPairs, TemplateService service, CacheServerExpressions cache) throws Exception
aggregationPairs - Exceptionpublic static org.gcube.portlets.user.tdtemplateoperation.shared.TdColumnData getTdColumnData(TdColumnDefinition tdColumn, String serverId)
tdColumn - the td columnserverId - the server idpublic static List<TdColumnDefinition> getTdColumnDefinitionFromTemplateColumn(List<org.gcube.data.analysis.tabulardata.commons.templates.model.columns.TemplateColumn<?>> sCol, org.gcube.data.analysis.tabulardata.commons.templates.model.Template template, TemplateService service, CacheServerExpressions cache)
sCol - the s coltemplate - the templateservice - the servicecache - the cachepublic static boolean isBaseTemplateColumn(org.gcube.data.analysis.tabulardata.commons.templates.model.Template template,
org.gcube.data.analysis.tabulardata.commons.templates.model.columns.TemplateColumn<?> column)
throws Exception
template - the templatecolumn - the columnException - the exceptionpublic static TdColumnDefinition getTdColumnDefinitionFromTemplateColumn(int index, org.gcube.data.analysis.tabulardata.commons.templates.model.columns.TemplateColumn<?> templateColumn, TemplateService service, CacheServerExpressions cache)
index - of the columntemplateColumn - the columnservice - the servicecache - the cachepublic static TdColumnDefinition settingSpecificReference(org.gcube.data.analysis.tabulardata.commons.templates.model.columns.TemplateColumn<?> templateColumn, TdColumnDefinition tdColumn, TemplateService service)
templateColumn - the template columntdColumn - the td columnservice - the servicepublic static List<String> getAllowedLocales()
public static List<TdTTimePeriod> getTimeDimensionPeriodTypes()
public static List<TdLicenceModel> getLicences()
public static List<TdBehaviourModel> getDuplicateBehaviours()
public static TdBehaviourModel convertDuplicateBehaviour(org.gcube.data.analysis.tabulardata.commons.templates.model.actions.finals.DuplicateBehaviour bhv)
bhv - the bhvpublic static TdFlowModel convertFlow(Collection<org.gcube.data.analysis.tabulardata.service.tabular.metadata.TabularResourceMetadata<?>> listMetadata)
listMetadata - the list metadatapublic static org.gcube.portlets.user.td.widgetcommonevent.shared.expression.C_Expression convertRuleExpression(org.gcube.data.analysis.tabulardata.expression.Expression expr)
throws Exception
expr - the exprException - the exceptionCopyright © 2015. All Rights Reserved.