Class FacetBasedPublisher
java.lang.Object
org.gcube.smartgears.connector.resourceregistry.FacetBasedPublisher
- All Implemented Interfaces:
org.gcube.smartgears.publishing.Publisher
public class FacetBasedPublisher
extends Object
implements org.gcube.smartgears.publishing.Publisher
A facet-based publisher for SmartGears applications that manages resource
registration
and publication in the Resource Registry.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.gcube.informationsystem.resourceregistry.publisher.ResourceRegistryPublisherThe Resource Registry publisher instance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancreate(org.gcube.smartgears.context.application.ApplicationContext applicationContext, Set<String> contexts) booleancreate(org.gcube.smartgears.context.container.ContainerContext containerContext, Set<String> contexts) static org.gcube.common.security.factories.AuthorizationProvidergetAuthorizationProvider(org.gcube.smartgears.context.application.ApplicationContext applicationContext) Gets the authorization provider from an application context.static org.gcube.common.security.factories.AuthorizationProvidergetAuthorizationProvider(org.gcube.smartgears.context.container.ContainerContext containerContext) Gets the authorization provider from a container context.getContextUUID(String contextFullName) Gets the UUID of a context by its full name.booleanremove(org.gcube.smartgears.context.application.ApplicationContext applicationContext, Set<String> contexts) booleanremove(org.gcube.smartgears.context.container.ContainerContext containerContext, Set<String> contexts) booleanupdate(org.gcube.smartgears.context.application.ApplicationContext applicationContext) booleanupdate(org.gcube.smartgears.context.container.ContainerContext containerContext)
-
Field Details
-
resourceRegistryPublisher
protected org.gcube.informationsystem.resourceregistry.publisher.ResourceRegistryPublisher resourceRegistryPublisherThe Resource Registry publisher instance.
-
-
Constructor Details
-
FacetBasedPublisher
public FacetBasedPublisher()
-
-
Method Details
-
getAuthorizationProvider
public static org.gcube.common.security.factories.AuthorizationProvider getAuthorizationProvider(org.gcube.smartgears.context.application.ApplicationContext applicationContext) Gets the authorization provider from an application context.- Parameters:
applicationContext- the application context- Returns:
- the authorization provider
-
getAuthorizationProvider
public static org.gcube.common.security.factories.AuthorizationProvider getAuthorizationProvider(org.gcube.smartgears.context.container.ContainerContext containerContext) Gets the authorization provider from a container context.- Parameters:
containerContext- the container context- Returns:
- the authorization provider
-
getContextUUID
public UUID getContextUUID(String contextFullName) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException Gets the UUID of a context by its full name.- Parameters:
contextFullName- the full name of the context- Returns:
- the UUID of the context
- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- if an error occurs
-
create
public boolean create(org.gcube.smartgears.context.container.ContainerContext containerContext, Set<String> contexts) - Specified by:
createin interfaceorg.gcube.smartgears.publishing.Publisher
-
create
public boolean create(org.gcube.smartgears.context.application.ApplicationContext applicationContext, Set<String> contexts) - Specified by:
createin interfaceorg.gcube.smartgears.publishing.Publisher
-
remove
public boolean remove(org.gcube.smartgears.context.container.ContainerContext containerContext, Set<String> contexts) - Specified by:
removein interfaceorg.gcube.smartgears.publishing.Publisher
-
remove
public boolean remove(org.gcube.smartgears.context.application.ApplicationContext applicationContext, Set<String> contexts) - Specified by:
removein interfaceorg.gcube.smartgears.publishing.Publisher
-
update
public boolean update(org.gcube.smartgears.context.container.ContainerContext containerContext) - Specified by:
updatein interfaceorg.gcube.smartgears.publishing.Publisher
-
update
public boolean update(org.gcube.smartgears.context.application.ApplicationContext applicationContext) - Specified by:
updatein interfaceorg.gcube.smartgears.publishing.Publisher
-