Package com.google.code.lightssh.project.message.entity

Examples of com.google.code.lightssh.project.message.entity.Catalog


 
  public void save( Message t ){
    if( t == null )
      throw new ApplicationException("参数为空!");
   
    Catalog catalog = catalogManager.getDefaultInfo();
    if( catalog == null )
      throw new ApplicationException("默认信息分类未初始化!");
   
    ifReceiveType.ALL.equals(t.getRecType()) ){
      t.setRecValue( ReceiveType.ALL.name() );
      t.setForward( false ); //所有人接收的消息不能转发
    }else{
      t.setForward( catalog.getForward() );
    }
   
    if( t.getStatus() == null )
      t.setStatus(Message.Status.PUBLISH );
    t.setCatalog( catalog );
View Full Code Here

TOP

Related Classes of com.google.code.lightssh.project.message.entity.Catalog

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.