@Singleton @WeldService public class TemplateManagerImpl extends Object implements org.gcube.data.analysis.tabulardata.commons.webservice.TemplateManager
| Constructor and Description |
|---|
TemplateManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.gcube.data.analysis.tabulardata.commons.webservice.types.tasks.TaskInfo |
apply(long templateId,
long tabularResourceId) |
org.gcube.data.analysis.tabulardata.commons.webservice.types.TemplateDescription |
getTemplate(long id) |
List<org.gcube.data.analysis.tabulardata.commons.webservice.types.TemplateDescription> |
getTemplates() |
org.gcube.data.analysis.tabulardata.commons.webservice.types.TemplateDescription |
removeTemplate(long id) |
long |
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 |
share(Long entityId,
org.gcube.data.analysis.tabulardata.commons.utils.SharingEntity... entities) |
org.gcube.data.analysis.tabulardata.commons.webservice.types.TemplateDescription |
unshare(Long entityId,
org.gcube.data.analysis.tabulardata.commons.utils.SharingEntity... entities) |
org.gcube.data.analysis.tabulardata.commons.webservice.types.TemplateDescription |
updateTemplate(long id,
org.gcube.data.analysis.tabulardata.commons.templates.model.Template template) |
public long saveTemplate(String name, String description, String agency, org.gcube.data.analysis.tabulardata.commons.templates.model.Template template) throws org.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityException
saveTemplate in interface org.gcube.data.analysis.tabulardata.commons.webservice.TemplateManagerorg.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityExceptionpublic org.gcube.data.analysis.tabulardata.commons.webservice.types.TemplateDescription removeTemplate(long id)
throws org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTemplateException,
org.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityException
removeTemplate in interface org.gcube.data.analysis.tabulardata.commons.webservice.TemplateManagerorg.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTemplateExceptionorg.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityExceptionpublic org.gcube.data.analysis.tabulardata.commons.webservice.types.TemplateDescription updateTemplate(long id,
org.gcube.data.analysis.tabulardata.commons.templates.model.Template template)
throws org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTemplateException,
org.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityException
updateTemplate in interface org.gcube.data.analysis.tabulardata.commons.webservice.TemplateManagerorg.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTemplateExceptionorg.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityExceptionpublic List<org.gcube.data.analysis.tabulardata.commons.webservice.types.TemplateDescription> getTemplates() throws org.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityException
getTemplates in interface org.gcube.data.analysis.tabulardata.commons.webservice.TemplateManagerorg.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityExceptionpublic org.gcube.data.analysis.tabulardata.commons.webservice.types.TemplateDescription getTemplate(long id)
throws org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTemplateException,
org.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityException
getTemplate in interface org.gcube.data.analysis.tabulardata.commons.webservice.TemplateManagerorg.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTemplateExceptionorg.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityExceptionpublic org.gcube.data.analysis.tabulardata.commons.webservice.types.TemplateDescription share(Long entityId, org.gcube.data.analysis.tabulardata.commons.utils.SharingEntity... entities) throws org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTemplateException, org.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityException
share in interface org.gcube.data.analysis.tabulardata.commons.webservice.Sharable<Long,org.gcube.data.analysis.tabulardata.commons.webservice.types.TemplateDescription,org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTemplateException>org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTemplateExceptionorg.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityExceptionpublic org.gcube.data.analysis.tabulardata.commons.webservice.types.TemplateDescription unshare(Long entityId, org.gcube.data.analysis.tabulardata.commons.utils.SharingEntity... entities) throws org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTemplateException, org.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityException
unshare in interface org.gcube.data.analysis.tabulardata.commons.webservice.Sharable<Long,org.gcube.data.analysis.tabulardata.commons.webservice.types.TemplateDescription,org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTemplateException>org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTemplateExceptionorg.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityExceptionpublic org.gcube.data.analysis.tabulardata.commons.webservice.types.tasks.TaskInfo apply(long templateId,
long tabularResourceId)
throws org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTemplateException,
org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTabularResourceException,
org.gcube.data.analysis.tabulardata.commons.webservice.exception.TemplateNotCompatibleException,
org.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityException
apply in interface org.gcube.data.analysis.tabulardata.commons.webservice.TemplateManagerorg.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTemplateExceptionorg.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTabularResourceExceptionorg.gcube.data.analysis.tabulardata.commons.webservice.exception.TemplateNotCompatibleExceptionorg.gcube.data.analysis.tabulardata.commons.webservice.exception.InternalSecurityExceptionCopyright © 2018. All Rights Reserved.