Package com.isfasiel.util.data

Examples of com.isfasiel.util.data.Data


      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);
    //files.add(0,"contentId", contentId);
    System.out.println(files);
    param = null;
    return returnOkMsg(model);
  }
View Full Code Here


    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

    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

    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();
    int index = 0;//EXTENTION
View Full Code Here

    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");
    result = null;
    param = null;
    return path;
View Full Code Here

public class SampleDAO extends BaseDAO{

  //@Transactional(readOnly=true)
  public Data insert(Data param) throws Exception{
    System.out.println(param);
    Data result = list("sampleDAO.Select", param.getRecord(0));
    this.getSqlMapClientTemplate().insert("sampleDAO.insert", param.getRecord(0));
   
   
    System.out.println(result);
    System.out.println(result.toJSArray());
    //this.getSqlMapClientTemplate().insert("sampleDAO.insert", param.getRecord(0));
    return result;
  }
View Full Code Here

    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");
    result = null;
    param = null;
    return path;
View Full Code Here

   * @param tagNames
   * @param dataType
   * @throws Exception
   */
  public void updateTag(long contentId, String[] tagNames) throws Exception {
    Data rs = new Data(this.getSqlMapClientTemplate().queryForList("tagDAO.connSelectByContent", contentId));
   
    if( tagNames != null) {
      tagNames = text.toUnique(tagNames);
      addCntTags(contentId, tagNames, rs);
    }
View Full Code Here

    }
   
    if(notAddedTagNames != null) {
      for(i=0; i<notAddedTagNames.length; i++) {
       
        Data tagRs = getTag(notAddedTagNames[i].toUpperCase());
        Long tagId;
        // If the tag is not existed add the tag into TN_TAG
        if(tagRs.size() == 0) {
          tagId = insertTag(notAddedTagNames[i]);
          tagRs.add(0,"tagId", tagId);
          //tagRs = getTag(notAddedTagNames[i]);
        // If the tag is existing get a tagId and add into addedTagIds, after this step the tag counting will be increased.
        } else {
          tagId = tagRs.getLong(0, "tagId");
          addedTagIds = numberUtil.add(addedTagIds, tagId);
        }
        setCntTag(contentId, tagRs.getLong(0, "tagId"));
        tagRs = null;
      }
    }
    if( addedTagIds.length > 0) {
      setTagCountInc(addedTagIds);
View Full Code Here

  }
 
 
 
  public boolean setCntTag(long contentId, long tagId) throws Exception {
    Data param = new Data();
    param.add(0, "contentId", contentId);
    param.add(0, "tagId", tagId);
    Object result = this.getSqlMapClientTemplate().insert("tagDAO.connInsert", param.getRecord(0));
    param = null;
    return result != null ? true : false;
  }
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.