Package org.dspace.harvest

Examples of org.dspace.harvest.HarvestedCollection.update()


        HarvestedCollection hc = HarvestedCollection.find(context, collection.getID());
        if (hc != null) {
          hc.setHarvestResult(null,"");
          hc.setHarvestStatus(HarvestedCollection.STATUS_READY);
          hc.setHarvestStartTime(null);
          hc.update();
        }
        context.restoreAuthSystemState();       
        context.commit();
      }
      catch (Exception e) {
View Full Code Here


            {
                HarvestedCollection hc = HarvestedCollection.find(context, cid);
                //hc.setHarvestResult(null,"");
                hc.setHarvestStartTime(null);
                hc.setHarvestStatus(HarvestedCollection.STATUS_READY);
                hc.update();
            }
            context.commit();
            System.out.println("success. ");
      }
      catch (Exception ex) {
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.