Examples of BIObject


Examples of it.eng.spagobi.analiticalmodel.document.bo.BIObject

    */
    public EngineURL getEditDocumentTemplateBuildUrl(Object biobject, IEngUserProfile profile)
  throws InvalidOperationRequest {
     
      EngineURL engineURL;
      BIObject obj;
      String documentId;
      Engine engine;
      String url;
      HashMap parameters;
     
      logger.debug("IN");
     
      try {
        obj = null;     
      try {
        obj = (BIObject) biobject;
      } catch (ClassCastException cce) {
        logger.error("The input object is not a BIObject type", cce);
        return null;
      }
     
      documentId = obj.getId().toString();
      engine = obj.getEngine();
      url = engine.getUrl();
      //url = url.replaceFirst("/servlet/AdapterHTTP", "");
      //url += "/templateBuilder.jsp";
       
      parameters = new HashMap();
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.bo.BIObject

      // it's an end process event, nothing more to do
    }
    IBIObjectDAO biObjectDAO = DAOFactory.getBIObjectDAO();
    String biobjectIdStr = (String) eventParams.get("biobjectId");
    Integer biObjectId = new Integer(biobjectIdStr);
    BIObject biObject = biObjectDAO.loadBIObjectById(biObjectId);

    response.setAttribute("biobject", biObject);
    SubreportDAOHibImpl subreportDAOHibImpl = new SubreportDAOHibImpl();
    List list = subreportDAOHibImpl.loadSubreportsByMasterRptId(biObject.getId());
    List biObjectList = new ArrayList();
    for(int i = 0; i < list.size(); i++) {
      Subreport subreport = (Subreport)list.get(i);
      BIObject biobj = biObjectDAO.loadBIObjectForDetail(subreport.getSub_rpt_id());
      biObjectList.add(biobj);
    }
    response.setAttribute("linkedBIObjects", biObjectList);
    response.setAttribute("PUBLISHER_NAME", "CommonjExecutionEventLogDetailPublisher");
  }
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.bo.BIObject

     */
    public EngineURL getNewDocumentTemplateBuildUrl(Object biobject, IEngUserProfile profile)
  throws InvalidOperationRequest {
     
      EngineURL engineURL;
      BIObject obj;
      String documentId;
      Engine engine;
      String url;
      HashMap parameters;
     
      logger.debug("IN");
     
      try {
        obj = null;     
      try {
        obj = (BIObject) biobject;
      } catch (ClassCastException cce) {
        logger.error("The input object is not a BIObject type", cce);
        return null;
      }
     
      documentId = obj.getId().toString();
      engine = obj.getEngine();
      url = engine.getUrl();
      //url = url.replaceFirst("/servlet/AdapterHTTP", "");
      //url += "/templateBuilder.jsp";
       
      parameters = new HashMap();
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.bo.BIObject

 
  public void loadEventInfo(EventLog event, SourceBean response) throws SourceBeanException, EMFUserError {
    Map eventParams;
    String startEventId;
    String documentId;
    BIObject document;
    List<BIObject> linkedDocuments;
    String operationType;
    String operationOutput;
    String operationResult;
    String engineBaseUrl;
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.bo.BIObject

  }
 
  protected BIObject getDocument(String documentId) throws EMFUserError {
    IBIObjectDAO biObjectDAO;
    Integer biObjectId;
    BIObject biObject;
   
    biObject = null;
    try {
      Assert.assertNotNull(documentId, "Parameter [documentId] cannot be null");
     
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.bo.BIObject

      subreportDAOHibImpl = new SubreportDAOHibImpl();
      list = subreportDAOHibImpl.loadSubreportsByMasterRptId(document.getId());
     
      for(int i = 0; i < list.size(); i++) {
        Subreport subreport = (Subreport)list.get(i);
        BIObject biobj = biObjectDAO.loadBIObjectForDetail(subreport.getSub_rpt_id());
        biObjectList.add(biobj);
      }
    } catch(Throwable t) {
      logger.error("Impossible to load linked documents", t);
      if(t instanceof EMFUserError) throw (EMFUserError)t;     
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.bo.BIObject

   */
  public Map getParameterMap(Object biobject, IEngUserProfile profile, String roleName) {
    logger.debug("IN");
    Map map = new Hashtable();
    try {
      BIObject biobj = (BIObject) biobject;
      map = getMap(biobj, profile, roleName);
    } catch (ClassCastException cce) {
      logger.error("The parameter is not a BIObject type", cce);
    }
    map = applySecurity(map, profile);
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.bo.BIObject

   */
  public Map getParameterMap(Object object, Object subObject, IEngUserProfile profile, String roleName) {
    logger.debug("IN");
    Map map = new Hashtable();
    try {
      BIObject biobj = (BIObject) object;
      map = getMap(biobj, profile, roleName);
      SubObject subObj = (SubObject) subObject;
      map = getParameterMap(object, profile, roleName);
      String nameSub = (subObj.getName()==null)?"":subObj.getName();
      map.put("nameSubObject", nameSub);
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.bo.BIObject

   * @throws InvalidOperationRequest the invalid operation request
   */
  public EngineURL getEditDocumentTemplateBuildUrl(Object biobject, IEngUserProfile profile)
  throws InvalidOperationRequest {
    logger.debug("IN");
    BIObject obj = null;
    try {
      obj = (BIObject) biobject;
    } catch (ClassCastException cce) {
      logger.error("The input object is not a BIObject type", cce);
      return null;
    }
    Engine engine = obj.getEngine();
    String url = engine.getUrl();
    HashMap parameters = new HashMap();
    String documentId = obj.getId().toString();
    parameters.put("document", documentId);
    parameters.put("forward", "editQuery.jsp");
    applySecurity(parameters, profile);
    EngineURL engineURL = new EngineURL(url, parameters);
    logger.debug("OUT");
View Full Code Here

Examples of it.eng.spagobi.analiticalmodel.document.bo.BIObject

            String dsLabel = (String)request.getAttribute("datasetFolderLabel_"+biobId+"__"+index)
            sInfo.setDataSetFolderLabel(dsLabel);
            String datasetParameterLabel = (String)request.getAttribute("datasetFolderParameter_"+biobId+"__"+index)
            sInfo.setDataSetFolderParameterLabel(datasetParameterLabel);
            if (dsLabel == null || dsLabel.trim().equals("")) {
              BIObject biobj = DAOFactory.getBIObjectDAO().loadBIObjectById(biobId);
              List params = new ArrayList();
              params.add(biobj.getName());
              this.getErrorHandler().addError(new EMFValidationError(EMFErrorSeverity.ERROR, null, "errors.trigger.missingDataSet", params, "component_scheduler_messages"));
            }
            if (datasetParameterLabel == null || datasetParameterLabel.trim().equals("")) {
              BIObject biobj = DAOFactory.getBIObjectDAO().loadBIObjectById(biobId);
              List params = new ArrayList();
              params.add(biobj.getName());
              this.getErrorHandler().addError(new EMFValidationError(EMFErrorSeverity.ERROR, null, "errors.trigger.missingDataSetParameter", params, "component_scheduler_messages"));
            }
          //  sInfo.setFunctionalityIds(functIdsConcat);
          }
        }
        String sendmail = (String)request.getAttribute("sendmail_"+biobId+"__"+index)
        if(sendmail!=null) {
          sInfo.setSendMail(true);
          boolean useFixedRecipients = "true".equalsIgnoreCase((String) request.getAttribute("useFixedRecipients_"+biobId+"__"+index));
          sInfo.setUseFixedRecipients(useFixedRecipients);
          if (useFixedRecipients) {
            String mailtos = (String)request.getAttribute("mailtos_"+biobId+"__"+index);
            sInfo.setMailTos(mailtos);
            if (mailtos == null || mailtos.trim().equals("")) {
              BIObject biobj = DAOFactory.getBIObjectDAO().loadBIObjectById(biobId);
              List params = new ArrayList();
              params.add(biobj.getName());
              this.getErrorHandler().addError(new EMFValidationError(EMFErrorSeverity.ERROR, null, "errors.trigger.missingFixedRecipients", params, "component_scheduler_messages"));
            }
          }
          boolean useDataset = "true".equalsIgnoreCase((String) request.getAttribute("useDataset_"+biobId+"__"+index));
          sInfo.setUseDataSet(useDataset);
          if (useDataset) {
            String dsLabel = (String)request.getAttribute("datasetLabel_"+biobId+"__"+index)
            sInfo.setDataSetLabel(dsLabel);
            String datasetParameterLabel = (String)request.getAttribute("datasetParameter_"+biobId+"__"+index)
            sInfo.setDataSetParameterLabel(datasetParameterLabel);
            if (dsLabel == null || dsLabel.trim().equals("")) {
              BIObject biobj = DAOFactory.getBIObjectDAO().loadBIObjectById(biobId);
              List params = new ArrayList();
              params.add(biobj.getName());
              this.getErrorHandler().addError(new EMFValidationError(EMFErrorSeverity.ERROR, null, "errors.trigger.missingDataSet", params, "component_scheduler_messages"));
            }
            if (datasetParameterLabel == null || datasetParameterLabel.trim().equals("")) {
              BIObject biobj = DAOFactory.getBIObjectDAO().loadBIObjectById(biobId);
              List params = new ArrayList();
              params.add(biobj.getName());
              this.getErrorHandler().addError(new EMFValidationError(EMFErrorSeverity.ERROR, null, "errors.trigger.missingDataSetParameter", params, "component_scheduler_messages"));
            }
          }
          boolean useExpression = "true".equalsIgnoreCase((String) request.getAttribute("useExpression_"+biobId+"__"+index));
          sInfo.setUseExpression(useExpression);
          if (useExpression) {
            String expression = (String)request.getAttribute("expression_"+biobId+"__"+index)
            sInfo.setExpression(expression);
            if (expression == null || expression.trim().equals("")) {
              BIObject biobj = DAOFactory.getBIObjectDAO().loadBIObjectById(biobId);
              List params = new ArrayList();
              params.add(biobj.getName());
              this.getErrorHandler().addError(new EMFValidationError(EMFErrorSeverity.ERROR, null, "errors.trigger.missingExpression", params, "component_scheduler_messages"));
            }
          }
         
          if (!useFixedRecipients && !useDataset && !useExpression) {
            BIObject biobj = DAOFactory.getBIObjectDAO().loadBIObjectById(biobId);
            List params = new ArrayList();
            params.add(biobj.getName());
            this.getErrorHandler().addError(new EMFValidationError(EMFErrorSeverity.ERROR, null, "errors.trigger.missingRecipients", params, "component_scheduler_messages"))
          }
         
          String mailsubj = (String)request.getAttribute("mailsubj_"+biobId+"__"+index)
          sInfo.setMailSubj(mailsubj);
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.