@@ -0,0 +1,2845 @@
+/*%0A * EPersonDeletionException.java%0A *%0A *%0A * Copyright (c) 2002, Hewlett-Packard Company and Massachusetts%0A * Institute of Technology.  All rights reserved.%0A *%0A * Redistribution and use in source and binary forms, with or without%0A * modification, are permitted provided that the following conditions are%0A * met:%0A *%0A * - Redistributions of source code must retain the above copyright%0A * notice, this list of conditions and the following disclaimer.%0A *%0A * - Redistributions in binary form must reproduce the above copyright%0A * notice, this list of conditions and the following disclaimer in the%0A * documentation and/or other materials provided with the distribution.%0A *%0A * - Neither the name of the Hewlett-Packard Company nor the name of the%0A * Massachusetts Institute of Technology nor the names of their%0A * contributors may be used to endorse or promote products derived from%0A * this software without specific prior written permission.%0A *%0A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS%0A * %60%60AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT%0A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR%0A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT%0A * HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,%0A * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,%0A * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS%0A * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND%0A * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR%0A * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE%0A * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH%0A * DAMAGE.%0A */%0A%0Apackage org.dspace.eperson;%0A%0Aimport java.util.Vector;%0Aimport java.util.Iterator;%0A%0Aimport org.dspace.content.DSpaceObject;%0A%0A/**%0A * Exception indicating that an EPerson may not be deleted due to the%0A * presence of the EPerson's ID in certain tables%0A *%0A * @author   Grace Carpenter%0A */%0Apublic class EPersonDeletionException extends Exception%0A%7B%0A    private Vector myTableList; //set of tables in which EPerson exists%0A%0A    /**%0A     * Create an empty EPersonDeletionException%0A     */%0A    public EPersonDeletionException()%0A    %7B%0A        super();  %0A        myTableList = null;%0A    %7D%0A    %0A     %0A    /**%0A     * Create an EPersonDeletionException%0A     *%0A     * @param  tableList tables in which the eperson ID exists. An person cannot%0A     * be deleted if it exists in these tables.%0A     *%0A     */%0A    public EPersonDeletionException(Vector tableList)%0A    %7B%0A        super();%0A        myTableList = tableList;%0A        %0A    %7D%0A    %0A    /**%0A     * Return the list of offending tables.%0A     *%0A     * @return  The tables in which the eperson ID exists. %0A     */%0A    public Vector getTables()%7Breturn myTableList;%7D        %0A%7D%0A

Fix for bug 738402. Thrown from EPerson.delete()