Package org.dspace.browse

Examples of org.dspace.browse.IndexBrowse.itemRemoved()


        int i=0;
        while (it.hasNext()) {
          i++;
          Item item = it.next();
          System.out.println("Deleting: " + item.getHandle());
          ib.itemRemoved(item);
          collection.removeItem(item);
          // commit every 50 items
          if (i%50 == 0) {
            context.commit();
            i=0;
View Full Code Here


//               FIXME: there is an exception handling problem here
        try
        {
//               Remove from indicies
            IndexBrowse ib = new IndexBrowse(ourContext);
            ib.itemRemoved(this);
        }
        catch (BrowseException e)
        {
            log.error("caught exception: ", e);
            throw new SQLException(e.getMessage());
View Full Code Here

//               FIXME: there is an exception handling problem here
        try
        {
//               Remove from indices
            IndexBrowse ib = new IndexBrowse(ourContext);
            ib.itemRemoved(this);
        }
        catch (BrowseException e)
        {
            log.error("caught exception: ", e);
            throw new SQLException(e.getMessage(), e);
View Full Code Here

              // the item from all collections it belongs to
              Collection[] collections = item.getCollections();
              for (int i=0; i< collections.length; i++)
              {
                //notify Browse of removing item.
                ib.itemRemoved(item);
                // Browse.itemRemoved(ourContext, itemId);
                collections[i].removeItem(item);
              }
             
            }
View Full Code Here

              // the item from all collections it belongs to
              Collection[] collections = item.getCollections();
              for (int i=0; i< collections.length; i++)
              {
                //notify Browse of removing item.
                ib.itemRemoved(item);
                // Browse.itemRemoved(ourContext, itemId);
                collections[i].removeItem(item);
              }

            }
View Full Code Here

//               FIXME: there is an exception handling problem here
        try
        {
//               Remove from indices
            IndexBrowse ib = new IndexBrowse(ourContext);
            ib.itemRemoved(this);
        }
        catch (BrowseException e)
        {
            log.error("caught exception: ", e);
            throw new SQLException(e.getMessage(), e);
View Full Code Here

        int i=0;
        while (it.hasNext()) {
          i++;
          Item item = it.next();
          System.out.println("Deleting: " + item.getHandle());
          ib.itemRemoved(item);
          collection.removeItem(item);
          // commit every 50 items
          if (i%50 == 0) {
            context.commit();
            i=0;
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.