Examples of SbiDistributionList


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

    Session aSession = null;
    Transaction tx = null;
    try {
      aSession = getSession();
      tx = aSession.beginTransaction();
      SbiDistributionList hibDistributionList = (SbiDistributionList) aSession.load(SbiDistributionList.class,
          new Integer(aDistributionList.getId()));

      aSession.delete(hibDistributionList);
      tx.commit();
    } catch (HibernateException he) {
View Full Code Here

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

    Transaction tx = null;
    try {
      aSession = getSession();
      tx = aSession.beginTransaction();
     
      SbiDistributionList hibDistributionList = new SbiDistributionList();
     
      hibDistributionList.setName(aDistributionList.getName());
      hibDistributionList.setDescr(aDistributionList.getDescr());
      updateSbiCommonInfo4Insert(hibDistributionList);
      aSession.save(hibDistributionList);
      tx.commit();
    } catch (HibernateException he) {
      logger.error("Error while inserting the Distribution List with name " + ((aDistributionList == null)?"":String.valueOf(aDistributionList.getName())), he);
View Full Code Here

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

    Transaction tx = null;

    try {
      aSession = getSession();
      tx = aSession.beginTransaction();
      SbiDistributionList hibDistributionList = (SbiDistributionList)aSession.load(SbiDistributionList.class,Id);
      toReturn = toDistributionList(hibDistributionList);
      tx.commit();
     
    } catch (HibernateException he) {
      logger.error("Error while loading the Distribution List with id " + ((Id == null)?"":Id.toString()), he);     
View Full Code Here

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

      tmpSession = getSession();
      tx = tmpSession.beginTransaction();
      Criterion nameCriterrion = Expression.eq("name", name);
      Criteria criteria = tmpSession.createCriteria(SbiDistributionList.class);
      criteria.add(nameCriterrion)
      SbiDistributionList hibDL = (SbiDistributionList) criteria.uniqueResult();
      if (hibDL == null) return null;
      biDL = toDistributionList(hibDL);             
      tx.commit();
    } catch (HibernateException he) {
      logger.error("Error while loading the Distribution List with name " + name, he);
View Full Code Here

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

    Transaction tx = null;
    try {
      aSession = getSession();
      tx = aSession.beginTransaction();
     
      SbiDistributionList hibDistributionList = (SbiDistributionList) aSession.load(SbiDistributionList.class,
          new Integer(aDistributionList.getId()));     
      hibDistributionList.setName(aDistributionList.getName());
      hibDistributionList.setDescr(aDistributionList.getDescr());
      updateSbiCommonInfo4Update(hibDistributionList);
      tx.commit();
    } catch (HibernateException he) {
      logger.error("Error while modifing the distribution list with id " + ((aDistributionList == null)?"":String.valueOf(aDistributionList.getId())), he);
View Full Code Here

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

    Transaction tx = null;
    try {
      aSession = getSession();
      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());
View Full Code Here

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

    Transaction tx = null;
    try {
      aSession = getSession();
      tx = aSession.beginTransaction();
     
      SbiDistributionList hibDistributionList = (SbiDistributionList) aSession.load(SbiDistributionList.class,
          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)){
View Full Code Here

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

           
            if (trigName != null && trigName.equals(trigNameOrig) && parvalues!=null && parvalues.equals(parvaluesOrig)){ hibDistributionListsObjects = temp; };
          }     
      }
     
      SbiDistributionList hibDistributionList = (SbiDistributionList) aSession.load(SbiDistributionList.class,
          new Integer(dl.getId()));
      SbiObjects hibObj = (SbiObjects) aSession.load(SbiObjects.class,new Integer(objId));
     
      hibDistributionListsObjects.setSbiDistributionList(hibDistributionList);
      hibDistributionListsObjects.setSbiObjects(hibObj);
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.