Package org.dspace.core

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


                IndexBrowse indexer = new IndexBrowse(context);
                indexer.setRebuild(true);
                indexer.setExecute(true);
                indexer.initBrowse();
                // Since the browse index is in the DB, we must commit & close context
                context.complete();
                log.info("Reindexing is complete");
            }
        }
        catch(Exception e)
        {
View Full Code Here


                    ctx.commit();
                }
            }
        }

        ctx.complete();

        stamps.close();

        // Clean up external data and index files, if any
        File target;
View Full Code Here

        // run command line interface
        runCLI(context, organiser, args);
       
        try
        {
            context.complete();
        }
        catch (SQLException sqle)
        {
            System.err.println("Cannot save changes to database: " + sqle.getMessage());
            System.exit(-1);
View Full Code Here

                        }
                    }
            }

            myContext.restoreAuthSystemState();
            myContext.complete();
    }

    /**
     * List accounts having no password salt.
     *
 
View Full Code Here

                System.out.println("\tNo READ policy found, adding anonymous.");
                addAnonymousPolicy(c, t, Constants.READ);
            }
        }

        c.complete();
        System.exit(0);
    }

    /**
     * check to see if a collection has any policies for a given action
View Full Code Here

        // carnage begins here
        //////////////////////
        setPoliciesFilter(c, containertype, containerID, contenttype, actionID,
                groupID, isReplace, false, filter);

        c.complete();
        System.exit(0);
    }

    /**
     * Useful policy wildcard tool. Can set entire collections' contents'
View Full Code Here

                    long upperBound = Math.min(nextHarvest,maxHeartbeat);
                    long delay = Math.max(upperBound, minHeartbeat) + 1000;


                    tempContext.complete();

                    status = HARVESTER_STATUS_SLEEPING;
                    synchronized(lock) {
                        lock.wait(delay);
                    }
View Full Code Here

        {
            if (context != null)
            {
                try
                {
                    context.complete();
                }
                catch (SQLException sqle)
                {
                }
            }
View Full Code Here

                Node n = typeNodes.item(i);
                loadType(context, n);
            }

            context.restoreAuthSystemState();
            context.complete();
        }
        finally
        {
           // Clean up our context, if it still exists & it was never completed
            if(context!=null && context.isValid())
View Full Code Here

        {
            if (context != null)
            {
                try
                {
                    context.complete();
                }
                catch (SQLException sqle)
                {
                }
            }
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.