Package com.exedosoft.plat.action.customize.tools

Source Code of com.exedosoft.plat.action.customize.tools.DOExportAction

package com.exedosoft.plat.action.customize.tools;

import com.exedosoft.plat.ExedoException;
import com.exedosoft.plat.action.DOAbstractAction;
import com.exedosoft.plat.bo.BOInstance;
import com.exedosoft.plat.bo.DOBO;
import com.exedosoft.plat.bo.DOService;
import com.exedosoft.plat.util.StringUtil;

public class DOExportAction extends DOAbstractAction {

  /**
   *
   */
  private static final long serialVersionUID = 568992871873045123L;

  @Override
  public String excute() throws ExedoException {


    StringBuilder sb = new StringBuilder("<export>");
    DOBO bo = DOBO.getDOBOByName("DO_ActionConfig");

    BOInstance biController = bo.getCorrInstance();
    if (biController != null) {
      DOService pm = DOService.getService(biController.getUid());
      sb.append("\n<action><li>").append(StringUtil.filter(biController.toJSONString())).append(
          "</li></action>");
    }
    sb.append("</export>");
    this.setEchoValue(sb.toString());
    return DEFAULT_FORWARD;

  }

}
TOP

Related Classes of com.exedosoft.plat.action.customize.tools.DOExportAction

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.