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

Examples of com.esri.gpt.catalog.harvest.repository.HrSelectRequest.execute()


    while (rs.next()) {
      String harvestUuid = Val.chkStr(rs.getString(2));
      if (UuidUtil.isUuid(harvestUuid)) {
        HrSelectRequest harvestRequest =
          new HrSelectRequest(getRequestContext(), harvestUuid);
        harvestRequest.execute();
        HrRecords harvestRecords = harvestRequest.getQueryResult().getRecords();
        if (harvestRecords.size()>=1) {
          HjRecord record = new HjRecord(harvestRecords.get(0));
          n = 1;
          record.setUuid(rs.getString(n++));
View Full Code Here


    }

    // select and read repository record
    HrSelectRequest selectRepositoryRequest =
      new HrSelectRequest(context, uuid);
    selectRepositoryRequest.execute();
    HrRecords records = selectRepositoryRequest.getQueryResult().getRecords();

    // get harvest repository record
    HrRecord record = records.size() == 1 ? records.get(0) : null;
    if (record == null) {
View Full Code Here

private HrRecords selectRecords() throws SQLException {
  RequestContext context = RequestContext.extract(null);
  try {
    // get all harveting records
    HrSelectRequest selectRequest = new HrSelectRequest(context);
    selectRequest.execute();
    return selectRequest.getQueryResult().getRecords();
  } finally {
    context.onExecutionPhaseCompleted();
  }
}
View Full Code Here

        getCriteria().getActionCriteria().
                setAction(HrActionCriteria.RepositoryAction.Create);
      }
      HrSelectRequest request =
              new HrSelectRequest(context, getCriteria(), getResult(), isAdministrator(context));
      request.execute();

    } catch (NotAuthorizedException e) {
      try {
        ExternalContext ec = getContextBroker().getExternalContext();
        ec.redirect(Val.chkStr(ec.getRequestContextPath()) + "/catalog/main/home.page");
View Full Code Here

    if (UuidUtil.isUuid(uuid)) {
      if (!getEditor().getRepository().getUuid().equals(uuid) || reload) {
        RequestContext rc = new FacesContextBroker().extractRequestContext();
        HrSelectRequest request = new HrSelectRequest(rc, uuid);
        request.execute();
        HrRecords records = request.getQueryResult().getRecords();
        if (records.size() == 1) {
          record = records.get(0);
          doInit = true;
        } else {
View Full Code Here

    ArrayList<String> uuids = new ArrayList<String>();

    String uuid = getEditor().getRepository().getUuid();
    HrSelectRequest select = new HrSelectRequest(context, uuid);
    select.execute();

    for (HrRecord r : select.getQueryResult().getRecords()) {
      if (UuidUtil.isUuid(r.getUuid())) {
        uuids.add(r.getUuid());
      }
View Full Code Here

  private void submitFullSynchronization(RequestContext context) throws Exception {
    ArrayList<String> uuids = new ArrayList<String>();

    String uuid = getEditor().getRepository().getUuid();
    HrSelectRequest select = new HrSelectRequest(context, uuid);
    select.execute();

    for (HrRecord r : select.getQueryResult().getRecords()) {
      if (UuidUtil.isUuid(r.getUuid())) {
        uuids.add(r.getUuid());
      }
View Full Code Here

  private void submitCancelSycnhronization(RequestContext context) throws Exception {
    ArrayList<String> uuids = new ArrayList<String>();

    String uuid = getEditor().getRepository().getUuid();
    HrSelectRequest select = new HrSelectRequest(context, uuid);
    select.execute();

    for (HrRecord r : select.getQueryResult().getRecords()) {
      if (UuidUtil.isUuid(r.getUuid())) {
        uuids.add(r.getUuid());
      }
View Full Code Here

    while (rs.next()) {
      n = 1;
      String ownerUuid = rs.getString(n++);
      HrSelectRequest hrSelect = new HrSelectRequest(getRequestContext(),ownerUuid);
      hrSelect.execute();
      HrRecords hrRecords = hrSelect.getQueryResult().getRecords();
      if (!hrRecords.isEmpty()) {
        HeRecord record = new HeRecord(hrRecords.get(0));
        records.add(record);
        record.setUuid(sEventUuid);
View Full Code Here

    if (rs.next()) {
      String harvestUuid = Val.chkStr(rs.getString(2));
      if (UuidUtil.isUuid(harvestUuid)) {
        HrSelectRequest harvestRequest =
          new HrSelectRequest(getRequestContext(), harvestUuid);
        harvestRequest.execute();
        HrRecords harvestRecords = harvestRequest.getQueryResult().getRecords();
        if (harvestRecords.size()>=1) {
          HjRecord record = new HjRecord(harvestRecords.get(0));
          n = 1;
          record.setUuid(rs.getString(n++));
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.