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

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


        || StringUtils.isEmpty(param.getCatalog().getId())
        || param.getRecType() == null
        || StringUtils.isEmpty(param.getRecValue())  )
      return false;
   
    Subscription exists = get( param.getCatalog().getId()
        ,param.getRecType(),param.getRecValue());
 
    return exists == null || exists.getIdentity().equals(param.getIdentity() );
  }
View Full Code Here


      throw new ApplicationException("参数为空!");
   
    if( ReceiveType.ALL.equals(t.getRecType()) )
      t.setRecValue( ReceiveType.ALL.name() );
   
    Subscription db = dao.read(t);
    if( db == null ){
      db = t;
      t.setCreatedTime( Calendar.getInstance() );
    }else{
      db.setCatalog(t.getCatalog());
      db.setPeriod(t.getPeriod());
      db.setRecType(t.getRecType());
      db.setRecValue(t.getRecValue());
      db.setDescription(t.getDescription());
    }
   
    super.save(db);
  }
View Full Code Here

TOP

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

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.