Package com.liusoft.dlog4j.beans

Examples of com.liusoft.dlog4j.beans.AlbumBean


      //�޸��ಾ����Ƭ��
      album.setPhotoCount(album.getPhotoCount()+1);
      if(cover)
        album.setCover(photo);
      //�ݹ����и��ಾ
      AlbumBean parent = album.getParent();
      int deep = 0;
      do{
        if(parent == null)
          break;
        deep ++;
        parent.incPhotoCount(1);
        parent = parent.getParent();
      }while(deep < 10);//������ʮ���ಾ

      photo.getUser().getCount().incPhotoCount(1);
     
      ssn.save(photo);
View Full Code Here


      errMsg = getMessage(request, null, "error.illegal_glossary");
    } else if (DLOGSecurityManager.IllegalGlossary.existIllegalWord(album.getDesc())){
      errMsg = getMessage(request, null, "error.illegal_glossary");
    } else {
      try {
        AlbumBean abean = AlbumDAO.getAlbumByID(album.getId());
        abean.setName(super.autoFiltrate(abean.getSite(), album.getName()));
        if (StringUtils.isNotEmpty(album.getDesc())){
          String desc = super.autoFiltrate(abean.getSite(), album.getDesc());
          abean.setDesc(super.filterScriptAndStyle(desc));
        }
        else
          abean.setDesc(null);
        abean.setType(album.getType());
        if (StringUtils.isNotEmpty(album.getVerifyCode())
            && abean.getType() == AlbumBean.TYPE_VERIFIED) {
          abean.setVerifyCode(album.getVerifyCode());
        } else {
          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);
        }
       
        AlbumDAO.flush();
      } catch (Exception e) {
        errMsg = getMessage(request, null, "error.database", e
View Full Code Here

TOP

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

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.