public class TemplateService extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
TemplateService(String scope,
String username) |
| Modifier and Type | Method and Description |
|---|---|
static org.gcube.data.analysis.tabulardata.commons.templates.model.columns.TemplateColumn<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType> |
createTemplateColumn(org.gcube.data.analysis.tabulardata.commons.templates.model.columns.ColumnCategory columnType,
Class<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType> valueType) |
static org.gcube.data.analysis.tabulardata.commons.templates.model.columns.TemplateColumn<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType> |
createTemplateColumnForCodeName(Class<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType> valueType,
String locale) |
static org.gcube.data.analysis.tabulardata.commons.templates.model.columns.TemplateColumn<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType> |
createTemplateColumnForDimension(org.gcube.data.analysis.tabulardata.commons.templates.model.columns.ColumnCategory columnType,
Class<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType> valueType,
int tableId,
String columnId) |
static org.gcube.data.analysis.tabulardata.commons.templates.model.columns.TemplateColumn<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType> |
createTemplateColumnForTimeDimension(org.gcube.data.analysis.tabulardata.commons.templates.model.columns.ColumnCategory columnType,
Class<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType> valueType,
org.gcube.data.analysis.tabulardata.model.time.PeriodType period) |
static org.gcube.data.analysis.tabulardata.commons.templates.model.Template |
generateTemplate(org.gcube.data.analysis.tabulardata.commons.templates.model.TemplateCategory templateCategory,
List<org.gcube.data.analysis.tabulardata.commons.templates.model.columns.TemplateColumn<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType>> columns,
org.gcube.data.analysis.tabulardata.commons.webservice.types.OnRowErrorAction onErrorAction) |
org.gcube.data.analysis.tabulardata.model.table.Table |
getTable(org.gcube.data.analysis.tabulardata.model.table.TableId tableId) |
List<org.gcube.data.analysis.tabulardata.service.tabular.TabularResource> |
getTabularResources() |
org.gcube.data.analysis.tabulardata.commons.webservice.types.TemplateDescription |
getTemplate(long templateId) |
List<org.gcube.data.analysis.tabulardata.commons.webservice.types.TemplateDescription> |
getTemplates() |
org.gcube.data.analysis.tabulardata.service.template.TemplateId |
saveTemplate(String name,
String description,
String agency,
org.gcube.data.analysis.tabulardata.commons.templates.model.Template template) |
org.gcube.data.analysis.tabulardata.commons.webservice.types.TemplateDescription |
updateTemplate(long templateId,
org.gcube.data.analysis.tabulardata.commons.templates.model.Template template) |
public static org.gcube.data.analysis.tabulardata.commons.templates.model.columns.TemplateColumn<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType> createTemplateColumn(org.gcube.data.analysis.tabulardata.commons.templates.model.columns.ColumnCategory columnType,
Class<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType> valueType)
public static org.gcube.data.analysis.tabulardata.commons.templates.model.columns.TemplateColumn<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType> createTemplateColumnForCodeName(Class<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType> valueType, String locale)
public static org.gcube.data.analysis.tabulardata.commons.templates.model.columns.TemplateColumn<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType> createTemplateColumnForDimension(org.gcube.data.analysis.tabulardata.commons.templates.model.columns.ColumnCategory columnType,
Class<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType> valueType,
int tableId,
String columnId)
public static org.gcube.data.analysis.tabulardata.commons.templates.model.columns.TemplateColumn<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType> createTemplateColumnForTimeDimension(org.gcube.data.analysis.tabulardata.commons.templates.model.columns.ColumnCategory columnType,
Class<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType> valueType,
org.gcube.data.analysis.tabulardata.model.time.PeriodType period)
public static org.gcube.data.analysis.tabulardata.commons.templates.model.Template generateTemplate(org.gcube.data.analysis.tabulardata.commons.templates.model.TemplateCategory templateCategory,
List<org.gcube.data.analysis.tabulardata.commons.templates.model.columns.TemplateColumn<? extends org.gcube.data.analysis.tabulardata.model.datatype.DataType>> columns,
org.gcube.data.analysis.tabulardata.commons.webservice.types.OnRowErrorAction onErrorAction)
public org.gcube.data.analysis.tabulardata.service.template.TemplateId saveTemplate(String name, String description, String agency, org.gcube.data.analysis.tabulardata.commons.templates.model.Template template) throws Exception
Exceptionpublic org.gcube.data.analysis.tabulardata.commons.webservice.types.TemplateDescription updateTemplate(long templateId,
org.gcube.data.analysis.tabulardata.commons.templates.model.Template template)
throws Exception
Exceptionpublic List<org.gcube.data.analysis.tabulardata.commons.webservice.types.TemplateDescription> getTemplates() throws Exception
Exceptionpublic org.gcube.data.analysis.tabulardata.commons.webservice.types.TemplateDescription getTemplate(long templateId)
throws Exception
Exceptionpublic List<org.gcube.data.analysis.tabulardata.service.tabular.TabularResource> getTabularResources() throws Exception
Exceptionpublic org.gcube.data.analysis.tabulardata.model.table.Table getTable(org.gcube.data.analysis.tabulardata.model.table.TableId tableId)
throws org.gcube.data.analysis.tabulardata.service.exception.NoSuchTableException
org.gcube.data.analysis.tabulardata.service.exception.NoSuchTableExceptionCopyright © 2014. All Rights Reserved.