Package org.dspace.harvest

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


          }
       
        context.turnOffAuthorisationSystem();
        hc.setHarvestParams(type, oaiSource, oaiSetId, mdConfigId);
        hc.setHarvestStatus(HarvestedCollection.STATUS_READY);
        hc.update();
        context.restoreAuthSystemState();
        context.complete();
      }
      catch (Exception e) {
        System.out.println("Changes could not be committed");
View Full Code Here


        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

      String harvestType = request.getParameter("harvest_level");

      hc.setHarvestParams(Integer.parseInt(harvestType), oaiProvider, oaiSetId, metadataKey);
      hc.setHarvestStatus(HarvestedCollection.STATUS_READY);
     
      hc.update();
    }
       
       

        // Which button was pressed?
View Full Code Here

        result.setErrors(subResult.getErrors());
        result.setContinue(false);
        return result;
      }
     
      hc.update();
    }
           
        // Save everything
        context.commit();
       
View Full Code Here

      //System.out.println("Deleting: " + item.getHandle());
      //ib.itemRemoved(item);
      collection.removeItem(item);
    }
    hc.setHarvestResult(null,"");
    hc.update();
    collection.update();
    context.commit();
   
    result = processRunCollectionHarvest(context, collectionID, request);   
   
View Full Code Here

      String harvestType = request.getParameter("harvest_level");

      hc.setHarvestParams(Integer.parseInt(harvestType), oaiProvider, oaiSetId, metadataKey);
      hc.setHarvestStatus(HarvestedCollection.STATUS_READY);
     
      hc.update();
    }
       
       

        // Which button was pressed?
View Full Code Here

        result.setErrors(subResult.getErrors());
        result.setContinue(false);
        return result;
      }
     
      hc.update();
    }
           
        // Save everything
        context.commit();
       
View Full Code Here

      //System.out.println("Deleting: " + item.getHandle());
      //ib.itemRemoved(item);
      collection.removeItem(item);
    }
    hc.setHarvestResult(null,"");
    hc.update();
    collection.update();
    context.commit();
   
    return processRunCollectionHarvest(context, collectionID, request);
  }
View Full Code Here

          }
       
        context.turnOffAuthorisationSystem();
        hc.setHarvestParams(type, oaiSource, oaiSetId, mdConfigId);
        hc.setHarvestStatus(HarvestedCollection.STATUS_READY);
        hc.update();
        context.restoreAuthSystemState();
        context.complete();
      }
      catch (Exception e) {
        System.out.println("Changes could not be committed");
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.