|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ScopedPublisher
| Method Summary | ||
|---|---|---|
|
create(T resource,
List<String> scopes)
The resource is created in all the scopes in the list and the resource is updated in all the other scopes that are presents in the resource |
|
|
remove(T resource,
List<String> scopes)
Remove a resource from all the scopes in the input list, if and only if all the scopes are defined in the resource |
|
|
update(T resource)
The resource will be updated on all scopes that are defined in the resource. |
|
| Method Detail |
|---|
<T extends org.gcube.common.resources.gcore.Resource> T create(T resource,
List<String> scopes)
throws RegistryNotFoundException
IllegalStateException - if the current scope is incompatible with the scope defined in the resource
IllegalArgumentException - if there are problems to contact the Registry service or the resource is not a valid resource
RegistryNotFoundException
<T extends org.gcube.common.resources.gcore.Resource> T update(T resource)
throws RegistryNotFoundException
IllegalStateException - if the current scope is not defined in the resource.
IllegalArgumentException - if there are problems with the registry service or the resource is not a valid resource
RegistryNotFoundException
<T extends org.gcube.common.resources.gcore.Resource> T remove(T resource,
List<String> scopes)
throws RegistryNotFoundException
IllegalArgumentException - if one or more scopes in the list are not defined in the resource
RegistryNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||