Package com.changestuffs.server.persistence.beans

Examples of com.changestuffs.server.persistence.beans.Online


    userBean.setReceiveEmails(action.isReceiveEmails());
  }
 
  @Transactional
  public void updateOnline(boolean online, String email){
    Online bean = model.find(Online.class, email);
    if(bean != null){
      bean.setOnline(online);
    }else{
      bean = new Online();
      bean.setEmail(email);
      bean.setOnline(online);
      model.persist(bean);
    }
  }
View Full Code Here


  }
 
  public Set<String> getOnline(Set<String> contacts){
    Set<String> onlines = new HashSet<String>();
    for(String contact:contacts){
      Online online = model.find(Online.class, contact);
      if(online != null && online.isOnline()){
        onlines.add(contact);
      }
    }
    return onlines;
  }
View Full Code Here

TOP

Related Classes of com.changestuffs.server.persistence.beans.Online

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.