|
|
|
@ -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;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|