Examples of SbiDistributionListsObjects


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

    Session aSession = null;
    Transaction tx = null;
    try {
      aSession = getSession();
      tx = aSession.beginTransaction();
      SbiDistributionListsObjects hibDistributionListsObjects = new SbiDistributionListsObjects();
     
      //String hql = "from SbiDistributionListsObjects sdlo where sdlo.sbiDistributionList.dlId=" + dl.getId()+" and sdlo.sbiObjects.biobjId="+biobId;
      String hql = "from SbiDistributionListsObjects sdlo where sdlo.sbiDistributionList.dlId=? and sdlo.sbiObjects.biobjId=?";
      Query query = aSession.createQuery(hql);
      query.setInteger(0, dl.getId());
      query.setInteger(1, biobId);
      List l = query.list();
      if(!l.isEmpty()){
          Iterator it = l.iterator();
          while(it.hasNext()){
            SbiDistributionListsObjects temp = (SbiDistributionListsObjects)it.next();
            String xmlstr = temp.getXml();
            SourceBean sb = SourceBean.fromXMLString(xmlstr);
            String trigName = (String)sb.getAttribute("triggerName");
            if (trigName != null && trigName.equals(triggername)){
              hibDistributionListsObjects = temp;
              aSession.delete(hibDistributionListsObjects);
View Full Code Here

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

       
        List l = query.list();
        if(!l.isEmpty()){
          Iterator it = l.iterator();
          while(it.hasNext()){
            SbiDistributionListsObjects temp = (SbiDistributionListsObjects)it.next();
            String xmlstr = temp.getXml();
            SourceBean sb = SourceBean.fromXMLString(xmlstr);
            String trigName = (String)sb.getAttribute("triggerName");
            if (trigName != null && trigName.equals(triggername)){
              aSession.delete(temp);
            }
View Full Code Here

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

    //Gets all documents related to the distribution list and puts them into a list of documents
    List documents = new ArrayList();
    Set d = hibDistributionList.getSbiDistributionListsObjectses();
    Iterator it = d.iterator();
    while(it.hasNext()){
      SbiDistributionListsObjects dlo =(SbiDistributionListsObjects) it.next();
      SbiObjects so = dlo.getSbiObjects();
      BIObjectDAOHibImpl objDAO=null;
      try {
        objDAO = (BIObjectDAOHibImpl)DAOFactory.getBIObjectDAO();
        BIObject obj = objDAO.toBIObject(so);
        documents.add(obj);
View Full Code Here

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

     
      List listRowsOrig = sbOrig.getAttributeAsList("PARAMETERS.PARAMETER");
        SourceBean tmpSBOrig = (SourceBean)listRowsOrig.get(0);
        String parvaluesOrig =(String) tmpSBOrig.getAttribute("value");
     
      SbiDistributionListsObjects hibDistributionListsObjects = new SbiDistributionListsObjects();
     
      aSession = getSession();
      tx = aSession.beginTransaction();
      if(otherSchedule == true){

        String hql = "from SbiDistributionListsObjects sdlo where sdlo.sbiDistributionList.dlId=" + dl.getId()+" and sdlo.sbiObjects.biobjId="+objId;
        Query query = aSession.createQuery(hql);
         
        List l = query.list();
       
          Iterator it = l.iterator();
          while(it.hasNext()){
            SbiDistributionListsObjects temp = (SbiDistributionListsObjects)it.next();
            String xmlstr = temp.getXml();
            SourceBean sb = SourceBean.fromXMLString(xmlstr);
            String trigName = (String)sb.getAttribute("triggerName");
           
            List listRows = sb.getAttributeAsList("PARAMETERS.PARAMETER");
            SourceBean tmpSB = (SourceBean)listRows.get(0);
View Full Code Here

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

      Query query = tmpSession.createQuery(hql);
      query.setInteger(0, dl.getId());
      query.setInteger(1, objId);
      query.setString(2, xml);
     
      SbiDistributionListsObjects hibDL = (SbiDistributionListsObjects) query.uniqueResult();
      if (hibDL == null) return false;             
      tx.commit();
    } catch (HibernateException he) {
      logger.error("Error while loading the distribution list documents ", he);
      if (tx != null)
View Full Code Here

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

      query.setInteger(1, objId);
      List l = query.list();
      if(!l.isEmpty()){
        Iterator it = l.iterator();
        while(it.hasNext()){
          SbiDistributionListsObjects temp = (SbiDistributionListsObjects)it.next();
          String xmlstr = temp.getXml();
          SourceBean sb = SourceBean.fromXMLString(xmlstr);
          String trigName = (String)sb.getAttribute("triggerName");
          if (trigName != null && trigName.equals(trigNameOrig)) return true;
       
      }
View Full Code Here

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

      List l = query.list();
     
      if(!l.isEmpty()){
        Iterator it = l.iterator();
        while(it.hasNext()){
          SbiDistributionListsObjects temp = (SbiDistributionListsObjects)it.next();
          String xmlstr = temp.getXml();
          xmls.add(xmlstr);
       
      }
    } catch (HibernateException he) {
      logger.error("Error while loading the distribution list documents ", he);
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.