From 1b79f8e813276afefcfdec986e351599bc9115f5 Mon Sep 17 00:00:00 2001 From: lucio lelii Date: Tue, 28 Jun 2022 16:18:02 +0200 Subject: [PATCH] updated publisher interface --- .../smartgears/publishing/Publisher.java | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/src/main/java/org/gcube/smartgears/publishing/Publisher.java b/src/main/java/org/gcube/smartgears/publishing/Publisher.java index 8c451f8..28a223c 100644 --- a/src/main/java/org/gcube/smartgears/publishing/Publisher.java +++ b/src/main/java/org/gcube/smartgears/publishing/Publisher.java @@ -7,15 +7,57 @@ import org.gcube.smartgears.context.container.ContainerContext; public interface Publisher { + /** + * creates the container resource in the context + * + * @param container + * @param contexts the new contexts where the resource must be created + * @return + */ boolean create(ContainerContext container, Set contexts); + /** + * creates the application resource in the contexts + * + * @param application + * @param contexts the new contexts where the resource must be created + * @return + */ boolean create(ApplicationContext application, Set contexts); + + /** + * updates the application resource + * + * @param application + * @return + */ boolean update(ApplicationContext application); + /** + * updates the container resource + * + * @param container + * @return + */ boolean update(ContainerContext container); + + /** + * removes the application resource from the contexts + * + * @param application + * @param contexts the contexts from where the resource must be removed + * @return + */ boolean remove(ApplicationContext application, Set contexts); + + /** + * removes the container resource from the contexts + * @param application + * @param contexts the contexts from where the resource must be removed + * @return + */ boolean remove(ContainerContext application, Set contexts); }