Package com.narirelays.ems.applogic

Examples of com.narirelays.ems.applogic.OperResult


   
    return SUCCESS;
  }
 
  public String status() {
    resultInfo = new OperResult();
    HttpSession session = request.getSession(false);
    String errorMsg = "none";
    String lastUser = "";
    if (session != null) {
      lastUser = (String) session
View Full Code Here


        try {
          query = URLDecoder.decode(query, "UTF-8");
          resultInfo = analysisManagementService.queryCubeData(query);
        } catch (UnsupportedEncodingException e) {
          if(resultInfo == null){
            resultInfo = new OperResult();
          }
          e.printStackTrace();
          resultInfo.setFailed(e.getMessage());
        }
      }else{
        if(resultInfo == null){
          resultInfo = new OperResult();
        }
        resultInfo.setFailed(EMSi18n.OLAP_QUERY_QUERY_NOT_EXIST);
      }
    }
    return SUCCESS;
View Full Code Here

   */
  private static final ExpressionParser PARSER = new SpelExpressionParser();
  private static final long serialVersionUID = 1L;

  public String changePassword(){
    resultInfo = new OperResult();
    String username = request.getParameter("username");
    if(username==null){
      username = (String) request.getSession()
      .getAttribute(UsernamePasswordAuthenticationFilter.SPRING_SECURITY_LAST_USERNAME_KEY);
    }
View Full Code Here

    resultInfo.setSucceed();
    return SUCCESS;
  }
 
  public String getNumberOfUsers(){
    resultInfo = new OperResult();
    SessionRegistry sessionRegistry = (SessionRegistry)StorageService.ctx.getBean("sessionRegistry");
    resultInfo.setSucceed();
    resultInfo.setData(sessionRegistry.getAllPrincipals().size());
    return SUCCESS;
  }
View Full Code Here

    resultInfo.setData(sessionRegistry.getAllPrincipals().size());
    return SUCCESS;
  }
 
  public String getUserAuthority2Function(){
    resultInfo = new OperResult();
    String[] functions = request.getParameterValues("fs");
//    Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
   
//    ServletActionContext.getRequest()
//    System.out.println(request.getContextPath());
View Full Code Here

 
  public String maintainMeasurePoints4Sophic() {
    MaintainMeasurePoints4SophicService maintainMeasurePoints4SophicService = (MaintainMeasurePoints4SophicService)StorageService.ctx.getBean("MaintainMeasurePoints4SophicService");
    if(maintainMeasurePoints4SophicService!=null){
      boolean signal = maintainMeasurePoints4SophicService.maintainMeasurePointsAndSaveLog();
      resultInfo = new OperResult();
      if(signal) resultInfo.setSucceed();
      else resultInfo.setFailed();
    }
    return SUCCESS;
  }
View Full Code Here

  public String manitainIndex4MeasurePoints()
  {
    MaintainMeasurePoints4SophicService maintainMeasurePoints4SophicService = (MaintainMeasurePoints4SophicService)StorageService.ctx.getBean("MaintainMeasurePoints4SophicService");
    if(maintainMeasurePoints4SophicService!=null){
      boolean signal = maintainMeasurePoints4SophicService.maintainIndex4MeasurePoints();
      resultInfo = new OperResult();
      if(signal) resultInfo.setSucceed();
      else resultInfo.setFailed();
    }
    return SUCCESS;
  }
View Full Code Here

   * @return
   */
  public String add() {
//    System.out.println(request.getParameter("name"));
//    System.out.println(request.getParameter("description"));
    resultInfo = new OperResult();
    List<LazyDynaBean> beans = new ArrayList<LazyDynaBean>();
    resultInfo.setData(beans);
   
    int size  = uploads.size();
    if(size==0){
View Full Code Here

  /**
   * @return
   */
  public String add() {
    ReportManagementService reportManagementService = (ReportManagementService)StorageService.ctx.getBean("reportManagementService");
    resultInfo = new OperResult();
    try{
      reportManagementService.addXLSTemplate(request.getParameter("id"),uploads, uploadFileNames, uploadContentTypes,parameterMap,resultInfo);
    }catch(Exception e){
      resultInfo.setFailed(e.getMessage());
    }
View Full Code Here

  private static final long serialVersionUID = 1L;
  /**
   * @return
   */
  public String getChartData() {
    resultInfo = new OperResult();
    resultInfo.setData(Math.random());
    return SUCCESS;
  }
View Full Code Here

TOP

Related Classes of com.narirelays.ems.applogic.OperResult

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.