Package it.eng.spagobi.tools.distributionlist.bo

Examples of it.eng.spagobi.tools.distributionlist.bo.DistributionList


  private void newDistributionList(SourceBean response) throws EMFUserError {
    logger.debug("IN");
    try {
     
      DistributionList dl = null;
      this.modalita = SpagoBIConstants.DETAIL_INS;
      response.setAttribute("modality", modalita);
      dl = new DistributionList();
      dl.setId(-1);
      dl.setDescr("");
      dl.setName("");
      response.setAttribute("dlObj", dl);
      IDomainDAO domaindao = DAOFactory.getDomainDAO();
      List dialects = domaindao.loadListDomainsByType("DIALECT_HIB");
      response.setAttribute(NAME_ATTR_LIST_DIALECTS, dialects);
    } catch (Exception ex) {
View Full Code Here


  }


  private DistributionList recoverDistributionListDetails (SourceBean serviceRequest) throws EMFUserError, SourceBeanException, IOException  {
    logger.debug("IN");
    DistributionList dl  = new DistributionList();
   
    String id = (String)serviceRequest.getAttribute("id");
    String name = (String)serviceRequest.getAttribute("NAME");
    String description = (String)serviceRequest.getAttribute("DESCR")
   
    dl.setId((new Integer(id)).intValue());
    dl.setName(name);
    dl.setDescr(description);
    logger.debug("OUT");   
    return dl;
  }
View Full Code Here

           
            Integer dlId = (Integer)iter.next();
            try {if(!runImmediately){
              IDistributionListDAO dao=DAOFactory.getDistributionListDAO();
              dao.setUserProfile(profile);
              DistributionList dl = dao.loadDistributionListById(dlId);
              dao.insertDLforDocument(dl, objId, xml);
            }
            } catch (Exception ex) {
              logger.error("Cannot fill response container" + ex.getLocalizedMessage())
              throw new EMFUserError(EMFErrorSeverity.ERROR, 100);     
View Full Code Here

                String triggername = jobExecutionContext.getTrigger().getName();
                List dlIds = saveInfo.getDlIds();
                it = dlIds.iterator();
                while(it.hasNext()){
                  Integer dlId = (Integer)it.next();
                  DistributionList dl = DAOFactory.getDistributionListDAO().loadDistributionListById(dlId);
                  DAOFactory.getDistributionListDAO().eraseDistributionListObjects(dl, (biobj.getId()).intValue(), triggername);
                }
              }
            }
View Full Code Here

      List dlIds = sInfo.getDlIds();
      Iterator it = dlIds.iterator();
      while(it.hasNext()){

        Integer dlId = (Integer)it.next();
        DistributionList dl = DAOFactory.getDistributionListDAO().loadDistributionListById(dlId);

        List emails = new ArrayList();
        emails = dl.getEmails();
        Iterator j = emails.iterator();
        while(j.hasNext()){
          Email e = (Email) j.next();
          String email = e.getEmail();
          String userTemp = e.getUserId();
View Full Code Here

          sInfo.setSendToDl(true);
          sInfo.setBiobjId(biobId.intValue());
          List dlist = DAOFactory.getDistributionListDAO().loadAllDistributionLists()
          Iterator it = dlist.iterator();
          while(it.hasNext()){
            DistributionList dl = (DistributionList)it.next();
            int dlId = dl.getId();
            String listID = (String)request.getAttribute("sendtodl_"+dlId+"_"+biobId+"__"+index);
            if(listID!=null){
              sInfo.addDlId(new Integer(listID));
            }
            else{
View Full Code Here

TOP

Related Classes of it.eng.spagobi.tools.distributionlist.bo.DistributionList

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.