public void save( Message t ){
if( t == null )
throw new ApplicationException("参数为空!");
Catalog catalog = catalogManager.getDefaultInfo();
if( catalog == null )
throw new ApplicationException("默认信息分类未初始化!");
if( ReceiveType.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 );