Implemented Resource Registry Publisher

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-publisher@131454 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2016-09-16 11:41:32 +00:00
parent d999232149
commit 3a35ea17a0
2 changed files with 7 additions and 4 deletions

View File

@ -22,14 +22,14 @@ public interface ResourceRegistryPublisher {
public <C extends ConsistsOf<Resource, Facet>> C createConsistsOf(Class<C> consistsOfClass, C consistsOf); public <C extends ConsistsOf<Resource, Facet>> C createConsistsOf(Class<C> consistsOfClass, C consistsOf);
public <C extends ConsistsOf<Resource, Facet>> C updateConsistsOf(C consistsOf); //public <C extends ConsistsOf<Resource, Facet>> C updateConsistsOf(C consistsOf);
public <C extends ConsistsOf<Resource, Facet>> boolean deleteConsistsOf(C consistsOf); public <C extends ConsistsOf<Resource, Facet>> boolean deleteConsistsOf(C consistsOf);
public <I extends IsRelatedTo<Resource, Resource>> I createIsRelatedTo(Class<I> isRelatedToClass, I isRelatedTo); public <I extends IsRelatedTo<Resource, Resource>> I createIsRelatedTo(Class<I> isRelatedToClass, I isRelatedTo);
public <I extends IsRelatedTo<Resource, Resource>> I updateIsRelatedTo(I isRelatedTo); //public <I extends IsRelatedTo<Resource, Resource>> I updateIsRelatedTo(I isRelatedTo);
public <I extends IsRelatedTo<Resource, Resource>> boolean deleteIsRelatedTo(I isRelatedTo); public <I extends IsRelatedTo<Resource, Resource>> boolean deleteIsRelatedTo(I isRelatedTo);

View File

@ -401,13 +401,14 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
throw new ServiceException(e); throw new ServiceException(e);
} }
} }
/*
@Override @Override
public <C extends ConsistsOf<Resource, Facet>> C updateConsistsOf( public <C extends ConsistsOf<Resource, Facet>> C updateConsistsOf(
C consistsOf) { C consistsOf) {
// TODO Auto-generated method stub
return null; return null;
} }
*/
@Override @Override
public <C extends ConsistsOf<Resource, Facet>> boolean deleteConsistsOf( public <C extends ConsistsOf<Resource, Facet>> boolean deleteConsistsOf(
@ -467,11 +468,13 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
} }
} }
/*
@Override @Override
public <I extends IsRelatedTo<Resource, Resource>> I updateIsRelatedTo(I isRelatedTo) { public <I extends IsRelatedTo<Resource, Resource>> I updateIsRelatedTo(I isRelatedTo) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
return null; return null;
} }
*/
@Override @Override
public <I extends IsRelatedTo<Resource, Resource>> boolean deleteIsRelatedTo(I isRelatedTo) { public <I extends IsRelatedTo<Resource, Resource>> boolean deleteIsRelatedTo(I isRelatedTo) {