added method to script utils

master
Lucio Lelii 2 years ago
parent a7cf9ca75c
commit b26c10eeec

@ -21,7 +21,6 @@
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.gcube.data.access</groupId>
<artifactId>storagehub-script-utils</artifactId>
<version>1.0.0</version>
<version>1.0.1-SNAPSHOT</version>
<name>ScriptingUtil</name>
<parent>

@ -5,8 +5,10 @@ import java.util.function.Predicate;
import javax.jcr.Node;
import javax.jcr.RepositoryException;
import javax.jcr.Session;
import org.gcube.common.storagehub.model.exceptions.BackendGenericError;
import org.gcube.common.storagehub.model.exceptions.StorageHubException;
import org.gcube.common.storagehub.model.items.Item;
public interface ScriptUtil {
@ -14,5 +16,9 @@ public interface ScriptUtil {
Item getItem(Node node, List<String> excludes) throws RepositoryException, BackendGenericError ;
List<Item> getChildren(Predicate<Node> checker, Node parent, List<String> excludes, boolean showHidden, Class<? extends Item> nodeTypeToInclude) throws RepositoryException, BackendGenericError;
void removeNodes(Session ses, List<Item> itemsToDelete) throws RepositoryException, StorageHubException;
}

Loading…
Cancel
Save