Package org.dspace.core

Examples of org.dspace.core.Context.abort()


        }
        catch (SQLException sqle)
        {
            log.info("Caught SQLException: ", sqle);
            System.err.println("Can't connect to database: " + sqle.getMessage());
            context.abort();
            System.exit(-1);
        }
       
       
        RDFizer myself = null;
View Full Code Here


        } catch (SQLException ex) {
            System.err.println("A problem with the database occured: "
                    + ex.getMessage());
            ex.printStackTrace(System.err);
            log.error(ex);
            context.abort();
            System.exit(1);
        }
       
        myself.overrideContext(context);
        myself.runCLI(args);
View Full Code Here

       
        myself.overrideContext(context);
        myself.runCLI(args);
       
        // we don't change anything in the database, so abort the context.
        context.abort();
    }
   
    protected abstract class Callback
    {
        protected abstract void callback(DSpaceObject dso)
View Full Code Here

        finally
        {
            if( context != null && context.isValid() )
            {
                // Nothing is actually written
                context.abort();
            }
        }
    }

    private static List<HarvestedItemInfo> filterOutToday(List<HarvestedItemInfo> completeList)
View Full Code Here

            DAVServlet.putAuthCookie(context, this.request, this.response, true);
            return context;
        }
        else if (status == AuthenticationMethod.BAD_CREDENTIALS)
        {
            context.abort();
            throw new LNIRemoteException(
                    "Authentication failed: Bad Credentials.");
        }
        else if (status == AuthenticationMethod.CERT_REQUIRED)
        {
View Full Code Here

            throw new LNIRemoteException(
                    "Authentication failed: Bad Credentials.");
        }
        else if (status == AuthenticationMethod.CERT_REQUIRED)
        {
            context.abort();
            throw new LNIRemoteException(
                    "Authentication failed: This user may only login with X.509 certificate.");
        }
        else if (status == AuthenticationMethod.NO_SUCH_USER)
        {
View Full Code Here

            throw new LNIRemoteException(
                    "Authentication failed: This user may only login with X.509 certificate.");
        }
        else if (status == AuthenticationMethod.NO_SUCH_USER)
        {
            context.abort();
            throw new LNIRemoteException("Authentication failed: No such user.");
        }
        else
        {
            context.abort();
View Full Code Here

            context.abort();
            throw new LNIRemoteException("Authentication failed: No such user.");
        }
        else
        {
            context.abort();
            /** AuthenticationMethod.BAD_ARGS and etc * */
            throw new LNIRemoteException(
                    "Authentication failed: Cannot authenticate.");
        }
    }
View Full Code Here

        }
        finally
        {
            // Clean up our context, if it still exists & it was never completed
            if(context!=null && context.isValid())
                context.abort();
        }
    }

    /**
     * Load Bitstream Format metadata
View Full Code Here

        }
        finally
        {
            if (context != null && context.isValid())
            {
                context.abort();
            }
        }
    }

    /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.