Examples of SbiDistributionListUser


Examples of it.eng.spagobi.tools.distributionlist.metadata.SbiDistributionListUser

    //Gets all userids and respective emails and puts them into a list of Emails
    List emails = new ArrayList();
    Set s = hibDistributionList.getSbiDistributionListUsers();
    Iterator i = s.iterator();
    while(i.hasNext()){
      SbiDistributionListUser dls =(SbiDistributionListUser) i.next();
      String userId = dls.getUserId();
      String e_mail = dls.getEMail();
      Email email = new Email();
      email.setUserId(userId);
      email.setEmail(e_mail);
      emails.add(email);     
    }
View Full Code Here

Examples of it.eng.spagobi.tools.distributionlist.metadata.SbiDistributionListUser

      tx = aSession.beginTransaction();
     
      SbiDistributionList hibDistributionList = (SbiDistributionList) aSession.load(SbiDistributionList.class,
          new Integer(aDistributionList.getId()))
     
      SbiDistributionListUser hibDistributionListUser = new SbiDistributionListUser();
      hibDistributionListUser.setUserId(user.getUserId());
      hibDistributionListUser.setEMail(user.getEmail());
      hibDistributionListUser.setSbiDistributionList(hibDistributionList);
      updateSbiCommonInfo4Insert(hibDistributionListUser);
      aSession.save(hibDistributionListUser);
      tx.commit();
    } catch (HibernateException he) {
      logger.error("Error while subscribing to the distribution list with id " + ((aDistributionList == null)?"":String.valueOf(aDistributionList.getId())), he);
View Full Code Here

Examples of it.eng.spagobi.tools.distributionlist.metadata.SbiDistributionListUser

          new Integer(aDistributionList.getId()))

      Set s = hibDistributionList.getSbiDistributionListUsers();
      Iterator i = s.iterator();
      while(i.hasNext()){
        SbiDistributionListUser dls =(SbiDistributionListUser) i.next();
        String userId = dls.getUserId();
        if (userId.equals(user)){
          aSession.delete(dls);
        }     
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.