2021-05-04 11:48:19 +02:00
|
|
|
package org.gcube.data.access.storagehub.scripting;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.function.Predicate;
|
|
|
|
|
|
|
|
import javax.jcr.Node;
|
|
|
|
import javax.jcr.RepositoryException;
|
2022-09-28 19:10:41 +02:00
|
|
|
import javax.jcr.Session;
|
2021-05-04 11:48:19 +02:00
|
|
|
|
|
|
|
import org.gcube.common.storagehub.model.exceptions.BackendGenericError;
|
2022-09-28 19:10:41 +02:00
|
|
|
import org.gcube.common.storagehub.model.exceptions.StorageHubException;
|
2021-05-04 11:48:19 +02:00
|
|
|
import org.gcube.common.storagehub.model.items.Item;
|
|
|
|
|
|
|
|
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;
|
2022-09-28 19:10:41 +02:00
|
|
|
|
|
|
|
void removeNodes(Session ses, List<Item> itemsToDelete) throws RepositoryException, StorageHubException;
|
|
|
|
|
|
|
|
|
2021-05-04 11:48:19 +02:00
|
|
|
|
|
|
|
}
|