Package com.liusoft.dlog4j.beans

Examples of com.liusoft.dlog4j.beans.TypeBean


      }
      cbean.setType(catalog.getType());
      cbean.setSite(site);
      cbean.setCreateTime(new Date());
      if(catalog.getCatalog()>0){
        cbean.setCatalog(new TypeBean(catalog.getCatalog()));
      }
      try{
        CatalogDAO.create(cbean, catalog.getId(), catalog.getDirection()==1);
      }catch(Exception e){
        msgs.add("catalog", new ActionMessage("error.database", e.getMessage()));
View Full Code Here


        cbean.setArticleCount(logCount);
       
        //�����������
        if(catalog.getCatalog()>0){
          if(cbean.getCatalog()==null)
            cbean.setCatalog(new TypeBean(catalog.getCatalog()));
          else if(cbean.getCatalog().getId()!=catalog.getCatalog())
            cbean.setCatalog(new TypeBean(catalog.getCatalog()));           
        }
        else if(cbean.getCatalog()!=null){
          cbean.setCatalog(null);
        }
       
View Full Code Here

   */
  protected void doListSubTypes(ActionMapping mapping, ActionForm form,
      HttpServletRequest req, HttpServletResponse res, String s_type_id)
      throws Exception {
    int type_id = Integer.parseInt(s_type_id);
    TypeBean tbean = DlogTypeDAO.getTypeByID(type_id);
    StringBuffer xml = new StringBuffer("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n");
    if(tbean==null)
      xml.append("<type-not-found/>");   
    else{
      List types = tbean.getSubTypes();
      xml.append("<type id=\"");
      xml.append(tbean.getId());
      xml.append("\" name=\"");
      xml.append(tbean.getName());
      xml.append("\">\r\n");
      xml.append("\t<subTypes>\r\n");
      for(int i=0;types!=null&&i<types.size();i++){
        TypeBean subType = (TypeBean)types.get(i);
        xml.append("\t\t<subType id=\"");
        xml.append(subType.getId());
        xml.append("\" name=\">");
        xml.append(subType.getName());
        xml.append("\"/>\r\n");
      }
      xml.append("\t</subTypes>\r\n");
      xml.append("</type>");
    }
View Full Code Here

          fbean.setStatus(forum.getStatus());
      }
      //�����������
      if(forum.getCatalog()>0){
        if(fbean.getCatalog()==null)
          fbean.setCatalog(new TypeBean(forum.getCatalog()));
        else if(fbean.getCatalog().getId()!=forum.getCatalog())
          fbean.setCatalog(new TypeBean(forum.getCatalog()));           
      }
      else if(fbean.getCatalog()!=null){
        fbean.setCatalog(null);
      }
     
View Full Code Here

      if(s==ForumBean.STATUS_NORMAL||s==ForumBean.STATUS_HIDDEN||s==ForumBean.STATUS_LOCKED)
        fbean.setStatus(forum.getStatus());
      else
        fbean.setStatus(ForumBean.STATUS_NORMAL);
      if(forum.getCatalog()>0){
        fbean.setCatalog(new TypeBean(forum.getCatalog()));
      }
      BBSForumDAO.createForum(fbean, forum.getId(), forum.getDirection()==1);
    }
    if(!msgs.isEmpty()){
      saveMessages(request, msgs);
View Full Code Here

      try {
        //1: ֮ǰ; 2: ֮��; 3: ֮��
        if(album.getDirection()==3)
          album.setParent(album.getId());
        if(album.getCatalog()>0)
          abean.setCatalog(new TypeBean(album.getCatalog()));
        AlbumDAO.create(album.getParent(), abean, album.getId(), album
            .getDirection());
        new_album_id = abean.getId();
      } catch (CapacityExceedException e) {
        msgs.add("album",
View Full Code Here

          abean.setVerifyCode(null);
        }
        //�����������
        if(album.getCatalog()>0){
          if(abean.getCatalog()==null)
            abean.setCatalog(new TypeBean(album.getCatalog()));
          else if(abean.getCatalog().getId()!=album.getCatalog())
            abean.setCatalog(new TypeBean(album.getCatalog()));           
        }
        else if(abean.getCatalog()!=null){
          abean.setCatalog(null);
        }
       
View Full Code Here

TOP

Related Classes of com.liusoft.dlog4j.beans.TypeBean

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.