Package com.esri.gpt.catalog.management

Examples of com.esri.gpt.catalog.management.MmdResult


// constructors ================================================================
/** Default constructor. */
public ManageMetadataController() {
  super();
  setResult(new MmdResult());


  // initialize the selectablables
  _selectablePublishers = new SelectablePublishers();
  _candidateGroups = new SelectableGroups();
View Full Code Here


      } else {
        actionCriteria.getSelectedRecordIdSet().add(uuid);
      }
    }
    if (actionCriteria.getSelectedRecordIdSet().size() > 0) {
      MmdResult result = new MmdResult();
      MmdCriteria criteria = new MmdCriteria();
      criteria.setActionCriteria(actionCriteria);
      MmdActionRequest actionRequest = new MmdActionRequest(
          context.getRequestContext(),publisher,criteria,result);
      actionRequest.execute();
      int numDeleted = result.getActionResult().getNumberOfRecordsModified();
      tSummary.setTotalDeleted(tSummary.getTotalDeleted() + numDeleted);
      // TODO: need some logging
      //LOGGER.finer(result.getActionResult().getNumberOfRecordsModified()+" document(s) deleted.");
    }
  }
View Full Code Here

      RequestContext context, Publisher publisher) throws Exception {
    String uuid = this.determineUuid(request,context,true);
    MmdActionCriteria actionCriteria = new MmdActionCriteria();
    actionCriteria.setActionKey("delete");
    actionCriteria.getSelectedRecordIdSet().add(uuid);
    MmdResult result = new MmdResult();
    MmdCriteria criteria = new MmdCriteria();
    criteria.setActionCriteria(actionCriteria);
    MmdActionRequest actionRequest = new MmdActionRequest(context,publisher,criteria,result);
    actionRequest.execute();
    LOGGER.finer(result.getActionResult().getNumberOfRecordsModified()+" document(s) deleted.");
  }
View Full Code Here

TOP

Related Classes of com.esri.gpt.catalog.management.MmdResult

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.