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);
        jobService.delete(param);
        result.add(0,"result", "OK");
        Data files = uploadFiles(request, contentId);
        System.out.println(files);
View Full Code Here


  }
 
  @RequestMapping(value="/create.do")
  public String createContent(Model model) throws Exception {
    Data result = new Data();
    User user = getUser();
    if(user != null) {
     
   
      try {
        Data param = getParam();
       
        param.add(0, "contentType", "J");
        param.add(0, "userIdx", user.getId());
        param.add(0, "ipAddr", getRemoteIP());
        System.out.println(param);
        jobService.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();
        param.add(0, "userIdx", user.getId());
        System.out.println(param);
        jobService.update(param);
        result.add(0,"result", "OK");
       
      } catch (Exception e) {
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 = jobService.select(param);
    //result.get(0).add("comment", result.get(2).toXMl("comment"));
    Data fileResult = toFileData(result);
   
    //result.get(0).add("comment", result.get(2).toXMl("comment"));
View Full Code Here

    if(!isLogin()) {
      return returnErrorMsg(model, "NO_LOGIN");
    }
   
   
    User user = getUser();
    Data param = getParam(request);
   
    param.add(0, "contentType", "M");
    param.add(0, "userIdx", user.getId());
    param.add(0, "ipAddr", getRemoteIP());
    System.out.println(param);
    long contentId = movieService.insert(param);
   
    Data files = uploadFiles(request, contentId);
View Full Code Here

  public String update(Model model) throws Exception {
    if(!isLogin()) {
      return returnErrorMsg(model, "NO_LOGIN");
    }
   
    User user = getUser();
    Data param = getParam();
    param.add(0, "userIdx", user.getId());
    movieService.update(param);
    param = null;
    return returnOkMsg(model);
   
  }
View Full Code Here

  public String delete(Model model) throws Exception {
    if(!isLogin()) {
      return returnErrorMsg(model, "NO_LOGIN");
    }
   
    User user = getUser();
    Data param = getParam();
    param.add(0, "userIdx", user.getId());
    movieService.delete(param);
    param = null;
    return returnOkMsg(model);
   
  }
View Full Code Here

  public String view(Model model, @PathVariable long contentId) throws Exception {
    if(!isLogin()) {
      return returnErrorMsg(model, "NO_LOGIN");
    }
   
    User user = getUser();
    Data param = getParam();
    param.add(0, "userIdx", user.getId());
    param.add(0, "contentId", contentId);
    List<Data> result = movieService.select(param);
    param = null;
   
    int size = result.get(2).size();
View Full Code Here

  public String list(Model model, @PathVariable int page) throws Exception {
    if(!isLogin()) {
      return returnErrorMsg(model, "NO_LOGIN");
    }
   
    User user = getUser();
    Data param = getPageParam(page, pageSize);
    param.add(0, "userIdx", user.getId());
   
    System.out.println(param);
    Data result = movieService.list(param);

    addXML(model, "result", result, "content");
View Full Code Here

  public String listAll(Model model, @PathVariable int page) throws Exception {
    if(!isLogin()) {
      return returnErrorMsg(model, "NO_LOGIN");
    }
   
    User user = getUser();
    Data param = getPageParam(page, pageSize);
    param.add(0, "userIdx", user.getId());
   
    System.out.println(param);
    Data result = movieService.listAll(param);

    addXML(model, "result", result, "content");
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.