org.gcube.informationsystem.publisher
Class ScopedPublisherImpl

java.lang.Object
  extended by org.gcube.informationsystem.publisher.ScopedPublisherImpl
All Implemented Interfaces:
ScopedPublisher

public class ScopedPublisherImpl
extends Object
implements ScopedPublisher


Constructor Summary
protected ScopedPublisherImpl(RegistryPublisher rp)
           
 
Method Summary
<T extends org.gcube.common.resources.gcore.Resource>
T
create(T resource, List<String> scopes)
           
 void remove(String id, org.gcube.common.resources.gcore.Resource.Type type, List<String> scopes)
           
<T extends org.gcube.common.resources.gcore.Resource>
T
remove(T resource, List<String> scopes)
           
<T extends org.gcube.common.resources.gcore.Resource>
T
update(T resource, List<String> scopes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScopedPublisherImpl

protected ScopedPublisherImpl(RegistryPublisher rp)
Method Detail

create

public <T extends org.gcube.common.resources.gcore.Resource> T create(T resource,
                                                                      List<String> scopes)
                                                           throws RegistryNotFoundException
Specified by:
create in interface ScopedPublisher
Throws:
RegistryNotFoundException

update

public <T extends org.gcube.common.resources.gcore.Resource> T update(T resource,
                                                                      List<String> scopes)
                                                           throws RegistryNotFoundException
Specified by:
update in interface ScopedPublisher
Throws:
RegistryNotFoundException

remove

public void remove(String id,
                   org.gcube.common.resources.gcore.Resource.Type type,
                   List<String> scopes)
            throws RegistryNotFoundException
Specified by:
remove in interface ScopedPublisher
Throws:
RegistryNotFoundException

remove

public <T extends org.gcube.common.resources.gcore.Resource> T remove(T resource,
                                                                      List<String> scopes)
                                                           throws RegistryNotFoundException
Specified by:
remove in interface ScopedPublisher
Throws:
RegistryNotFoundException


Copyright © 2013. All Rights Reserved.