Examples of MmdActionCriteria


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

protected void processSubAction(ActionEvent event, RequestContext context)
    throws AbortProcessingException, Exception {

  // duplicate the action criteria for the request to limit
  // thread safety issues
  MmdActionCriteria actionCriteria;
  actionCriteria = new MmdActionCriteria(getActionCriteria());

  // check for a page cursor navigation event
  getPageCursorPanel().checkActionEvent(event, true);

  // prepare the publisher
  Publisher publisher = new Publisher(context);

  // determine and execute the command
  UIComponent component = event.getComponent();
  String sCommand = Val.chkStr((String) component.getAttributes().get("command"));
  if (sCommand.equals("")) {
   
  // set the sort option
  } else if (sCommand.equals("sort")) {
    String sCol = (String) component.getAttributes().get("column");
    String sDir = (String) component.getAttributes().get("defaultDirection");
    getQueryCriteria().getSortOption().setColumnKey(sCol, true, sDir);

    // execute an action
  } else if (sCommand.equals("executeAction")) {
    String sAction = actionCriteria.getActionKey();
    boolean applyToAll = Val.chkBool((String) component.getAttributes().get("applyToAll"), false);
    boolean bRequiresAdmin = sAction.equalsIgnoreCase("transfer")
        || sAction.equalsIgnoreCase("setApproved")
        || sAction.equalsIgnoreCase("setDisapproved")
        || sAction.equalsIgnoreCase("setReviewed")
View Full Code Here

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

    if ((ids == null) || (ids.length == 0)) return;
   
    TransactionOptions tOptions = context.getRequestOptions().getTransactionOptions();
    TransactionSummary tSummary = tOptions.getSummary();
    ImsMetadataAdminDao dao = new ImsMetadataAdminDao(context.getRequestContext());
    MmdActionCriteria actionCriteria = new MmdActionCriteria();
    actionCriteria.setActionKey("delete");
    for (String id: ids) {
      String uuid = Val.chkStr(dao.findUuid(id));
      if (uuid.length() == 0) {
        // TODO: throw an exception 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);
View Full Code Here

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

   * @throws Exception if an exception occurs
   */
  private void executeDelete(HttpServletRequest request, HttpServletResponse response,
      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();
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.