Package com.isfasiel.main.domain

Examples of com.isfasiel.main.domain.User


  private String path = "content/xml";
 
  @RequestMapping(value="/delete/{contentId}")
  public String deleteContent(Model model, @PathVariable long contentId) throws Exception {
    Data result = new Data();
    User user = getUser();
    if(user != null) {
      try {
        Data param = getParam();
        param.add(0, "userIdx", user.getId());
        param.add(0, "contentId", contentId);
        realEstateService.delete(param);
        result.add(0,"result", "OK");
       
      } catch (Exception e) {
View Full Code Here


  }
 
  @RequestMapping(value="/create.do")
  public String createContent(Model model, HttpServletRequest request) throws Exception {
    Data result = new Data();
    User user = getUser();
    if(user != null) {
     
   
      try {
        Data param = getParam(request);
       
        param.add(0, "contentType", "R");
        param.add(0, "userIdx", user.getId());
        param.add(0, "ipAddr", getRemoteIP());
        System.out.println(param);
        long contentId = realEstateService.insert(param);
        result.add(0,"result", "OK");
       
View Full Code Here

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

    return path;
  }
  @RequestMapping(value="/view/{contentId}/{page}")
  public String viewContent(@PathVariable("contentId") long contentId, @PathVariable("page")int page, Model model) throws Exception {
    Data param = getPageParam(page, 20);
    User user = getUser();
    param.add(0, "contentId", contentId);
    param.add(0, "userIdx", user.getId());
    List<Data> result = realEstateService.select(param);
   
    Data fileResult = toFileData(result);
   
    //result.get(0).add("comment", result.get(2).toXMl("comment"));
View Full Code Here

    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"));
    }
   
View Full Code Here

    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"));
    }
   
View Full Code Here

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

    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"));
    }
   
View Full Code Here

  }
 
  @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

 
  //@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

TOP

Related Classes of com.isfasiel.main.domain.User

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.