X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.db.layer0%2Fsrc%2Forg%2Fsimantics%2Fdb%2Flayer0%2Fadapter%2FRemover.java;h=6a6609adab73a91e45d9215c71ff591248afa6e0;hb=3a2595f9c5b8a3c6d98add2e869678b26662fde9;hp=e138c84165680f56d7e7051370f43b20e4030328;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git
diff --git a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/adapter/Remover.java b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/adapter/Remover.java
index e138c8416..6a6609ada 100644
--- a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/adapter/Remover.java
+++ b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/adapter/Remover.java
@@ -1,52 +1,52 @@
-/*******************************************************************************
- * Copyright (c) 2007, 2010 Association for Decentralized Information Management
- * in Industry THTH ry.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * VTT Technical Research Centre of Finland - initial API and implementation
- *******************************************************************************/
-package org.simantics.db.layer0.adapter;
-
-import java.util.Map;
-
-import org.simantics.db.ReadGraph;
-import org.simantics.db.WriteGraph;
-import org.simantics.db.exception.DatabaseException;
-import org.simantics.db.layer0.adapter.impl.AbstractRemover;
-import org.simantics.db.layer0.util.RemoverUtil;
-
-/**
- * This is a preliminary interface for making resource removal adapter-driven.
- * Adapt a resource to {@link Remover} to specify a custom logic for removing a
- * certain resource or a certain type of resource. A Remover is not reusable to
- * prevent it from being reused invalidly for unexpected inputs.
- *
- * @author Tuukka Lehtonen
- *
- * @see AbstractRemover
- * @see RemoverUtil
- */
-public interface Remover {
-
- /**
- * @param graph
- * @param aux auxiliary data storage that may be used when invoking
- * {@link #canRemove(ReadGraph, Map)} recursively
- * @return null indicates removal ok, otherwise the result
- * describes the problems.
- * @throws DatabaseException
- * @since 1.6
- */
- String canRemove(ReadGraph graph, Map