Package com.isfasiel.util.data

Examples of com.isfasiel.util.data.Data


  public String delete(Model model) throws Exception {
    if(!isLogin()) {
      return returnErrorMsg(model,  groupPathProp.getProperty("LOGIN_ERROR"));
    }
   
    Data param = getParam();
    User user= getUser();
    param.add(0, "userIdx", user.getId());
    if(text.isNull(param.getString(0,"groupId"))) {
      param = null;
      return returnErrorMsg(model, groupPathProp.getProperty("NO_GROUP_ID"));
    }
   
    if(text.isNull(param.getString(0,"pathId"))) {
      param = null;
      return returnErrorMsg(model, groupPathProp.getProperty("NO_PATH_ID"));
    }
   
    groupPathService.delete(param);
View Full Code Here


    return path;
  }
 
  @RequestMapping(value="/update.do")
  public String updateComment(Model model) throws Exception {
    Data result = new Data();
    User user = getUser();
    if(user != null) {
      try {
        Data param = getParam();
        param.add(0, "userIdx", user.getId());
        commentService.update(param);
        result.add(0, "result", "OK");
        param = null;
      } catch (Exception e) {
        e.printStackTrace();
View Full Code Here

    if(!isLogin()) {
      return returnErrorMsg(model,  groupPathProp.getProperty("LOGIN_ERROR"));
    }
   
    //Data param = getPageParam(page, pageSize);
    Data param = getParam();
   
    if(text.isNull(param.getString(0,"groupId"))) {
      param = null;
      return returnErrorMsg(model, groupPathProp.getProperty("NO_GROUP_ID"));
    }
   
    Data result = groupPathService.list(param);
   
    addXML(model, "result", result, "path");
    result = null;
    param = null;
   
View Full Code Here

  }
 
  //@RequestMapping(value="/delete/{commentId}")
  @RequestMapping(value="/delete.do")
  public String deleteComment(Model model) throws Exception {
    Data result = new Data();
    User user = getUser();
    if(user != null) {
      try {
        Data param = getParam();
        param.add(0, "userIdx", user.getId());
        commentService.delete(param);
        result.add(0, "result", "OK");
        param = null;
      } catch (Exception e) {
        e.printStackTrace();
View Full Code Here

  }
 
 
  @RequestMapping(value="/create.do")
  public String insertUser() throws Exception{
    Data param = getParam();
    param.add(0,"password", encode(param.getString(0,"pwd")));
    return "user/join";
  }
View Full Code Here

TOP

Related Classes of com.isfasiel.util.data.Data

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.