Package com.esri.gpt.catalog.harvest.repository

Examples of com.esri.gpt.catalog.harvest.repository.HrHarvestRequest


* @throws Exception if an exception occurs
*/
private void executeSynchronization(ActionEvent event, RequestContext context, MmdActionCriteria actionCriteria) throws Exception {
  StringSet uuids = actionCriteria.getSelectedRecordIdSet();
  String[] aUuids = uuids.toArray(new String[uuids.size()]);
  HrHarvestRequest hrvFullRequest =
    new HrHarvestRequest(context,aUuids,HjRecord.JobType.Now,new HrCriteria(),new HrResult());
  hrvFullRequest.execute();
  if (hrvFullRequest.getActionResult().getNumberOfRecordsModified() > 0) {
    extractMessageBroker().addSuccessMessage(
      "catalog.harvest.manage.message.synchronized",
      new Object[]{Integer.toString(hrvFullRequest.getActionResult().
                   getNumberOfRecordsModified())
      });
  } else {
    extractMessageBroker().addSuccessMessage(
      "catalog.harvest.manage.message.synchronized.none");
View Full Code Here


      }
    }

    String[] aUuids = uuids.toArray(new String[uuids.size()]);

    HrHarvestRequest hrvNowRequest =
            new HrHarvestRequest(context,
            aUuids,
            HjRecord.JobType.Now,
            getCriteria(),
            getResult());
    hrvNowRequest.execute();

    if (hrvNowRequest.getActionResult().getNumberOfRecordsModified() > 0) {
      extractMessageBroker().addSuccessMessage(
              "catalog.harvest.manage.message.synchronized",
              new Object[]{Integer.toString(hrvNowRequest.getActionResult().
        getNumberOfRecordsModified())
      });
    } else {
      extractMessageBroker().addSuccessMessage(
              "catalog.harvest.manage.message.synchronized.none");
View Full Code Here

      }
    }

    String[] aUuids = uuids.toArray(new String[uuids.size()]);

    HrHarvestRequest hrvFullRequest =
            new HrHarvestRequest(context,
            aUuids,
            HjRecord.JobType.Full,
            getCriteria(),
            getResult());
    hrvFullRequest.execute();

    if (hrvFullRequest.getActionResult().getNumberOfRecordsModified() > 0) {
      extractMessageBroker().addSuccessMessage(
              "catalog.harvest.manage.message.synchronized",
              new Object[]{Integer.toString(hrvFullRequest.getActionResult().
        getNumberOfRecordsModified())
      });
    } else {
      extractMessageBroker().addSuccessMessage(
              "catalog.harvest.manage.message.synchronized.none");
View Full Code Here

TOP

Related Classes of com.esri.gpt.catalog.harvest.repository.HrHarvestRequest

Copyright © 2018 www.massapicom. 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.