Examples of itemRemoved()


Examples of org.apache.lenya.ac.ItemManagerListener.itemRemoved()

        log.debug("Item was removed: [" + item + "]");
        List clone = new ArrayList(itemManagerListeners);
        for (Iterator i = clone.iterator(); i.hasNext();) {
            ItemManagerListener listener = (ItemManagerListener) i.next();
            log.debug("Notifying listener: [" + listener + "]");
            listener.itemRemoved(item);
        }
    }

    /**
     * Helper class to observe a directory for changes.
View Full Code Here

Examples of org.apache.lenya.ac.ItemManagerListener.itemRemoved()

        log.debug("Item was removed: [" + item + "]");
        List clone = new ArrayList(itemManagerListeners);
        for (Iterator i = clone.iterator(); i.hasNext();) {
            ItemManagerListener listener = (ItemManagerListener) i.next();
            log.debug("Notifying listener: [" + listener + "]");
            listener.itemRemoved(item);
        }
    }

    /**
     * Helper class to observe a directory for changes.
View Full Code Here

Examples of org.apache.lenya.ac.ItemManagerListener.itemRemoved()

    protected void notifyRemoved(Item item) throws AccessControlException {
       
        List clone = new ArrayList(itemManagerListeners);
        for (Iterator i = clone.iterator(); i.hasNext();) {
            ItemManagerListener listener = (ItemManagerListener) i.next();
            listener.itemRemoved(item);
        }
    }

    /**
   * @see org.apache.lenya.ac.ItemManagerListener#itemAdded(org.apache.lenya.ac.Item)
View Full Code Here

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

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

//               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

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

//               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

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

              // 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

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

              // 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

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

//               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

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
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.