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 |
|---|---|
org.gcube.data.analysis.tabulardata.service.tabular.TabularResource |
createFlow(List<org.gcube.data.analysis.tabulardata.service.tabular.metadata.TabularResourceMetadata<?>> metadata) |
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.commons.templates.model.actions.finals.AddToFlowAction flowAction) |
org.gcube.data.analysis.tabulardata.commons.templates.model.actions.finals.AddToFlowAction |
getFlowByTemplateId(long templateId) |
Collection<org.gcube.data.analysis.tabulardata.service.tabular.metadata.TabularResourceMetadata<?>> |
getFlowMetadataByTemplateFlowAction(org.gcube.data.analysis.tabulardata.commons.templates.model.actions.finals.AddToFlowAction flow) |
Collection<org.gcube.data.analysis.tabulardata.service.tabular.metadata.TabularResourceMetadata<?>> |
getFlowMetadataByTemplateId(long templateId) |
org.gcube.data.analysis.tabulardata.model.table.Table |
getTable(org.gcube.data.analysis.tabulardata.model.table.TableId tableId) |
org.gcube.data.analysis.tabulardata.service.tabular.TabularResource |
getTabularResourceById(long tabularResourceId) |
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,
org.gcube.data.analysis.tabulardata.commons.templates.model.actions.finals.AddToFlowAction flowAction)
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.service.tabular.TabularResource getTabularResourceById(long tabularResourceId)
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.NoSuchTableExceptionpublic org.gcube.data.analysis.tabulardata.service.tabular.TabularResource createFlow(List<org.gcube.data.analysis.tabulardata.service.tabular.metadata.TabularResourceMetadata<?>> metadata) throws org.gcube.data.analysis.tabulardata.service.exception.NoSuchTableException
org.gcube.data.analysis.tabulardata.service.exception.NoSuchTableExceptionpublic org.gcube.data.analysis.tabulardata.commons.templates.model.actions.finals.AddToFlowAction getFlowByTemplateId(long templateId)
throws Exception
Exceptionpublic Collection<org.gcube.data.analysis.tabulardata.service.tabular.metadata.TabularResourceMetadata<?>> getFlowMetadataByTemplateId(long templateId) throws Exception
Exceptionpublic Collection<org.gcube.data.analysis.tabulardata.service.tabular.metadata.TabularResourceMetadata<?>> getFlowMetadataByTemplateFlowAction(org.gcube.data.analysis.tabulardata.commons.templates.model.actions.finals.AddToFlowAction flow) throws Exception
ExceptionCopyright © 2014. All Rights Reserved.