Package it.eng.spagobi.analiticalmodel.document.bo

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


     */   
  private Map getRequestParameters(BIObject biObject) {
    logger.debug("IN");
   
    Map parameters;
    ObjTemplate template;
    IBinContentDAO contentDAO;
    byte[] content;
   
    logger.debug("IN");
   
    parameters = null;
   
    try {   
      parameters = new Hashtable();
      template = this.getTemplate(biObject);
     
      try {
        contentDAO = DAOFactory.getBinContentDAO();
        Assert.assertNotNull(contentDAO, "Impossible to instantiate contentDAO");
       
        content = contentDAO.getBinContent(template.getBinId());       
        Assert.assertNotNull(content, "Template content cannot be null");
      } catch (Throwable t){
        throw new RuntimeException("Impossible to load template content for document [" + biObject.getLabel()+ "]", t);
      }
         
View Full Code Here


   
    public final static String PARAM_SERVICE_NAME = "ACTION_NAME";
    public final static String PARAM_NEW_SESSION = "NEW_SESSION";
   
  private Map applyService(Map parameters, BIObject biObject) {
    ObjTemplate template;
   
    logger.debug("IN");
   
    try {
      Assert.assertNotNull(parameters, "Input [parameters] cannot be null");
     
      template = getTemplate(biObject);
      if(template.getName().trim().toLowerCase().endsWith(".xml")) {
        parameters.put(PARAM_SERVICE_NAME, "QBE_ENGINE_START_ACTION");
      } else if(template.getName().trim().toLowerCase().endsWith(".json")) {
        parameters.put(PARAM_SERVICE_NAME, "FORM_ENGINE_START_ACTION");
      } else {
        Assert.assertUnreachable("Active template [" + template.getName() + "] extension is not valid (valid extensions are: .xml ; .json)");
      }
     
      parameters.put(PARAM_NEW_SESSION, "TRUE");
    } catch(Throwable t) {
      throw new RuntimeException("Impossible to guess from template extension the engine startup service to call");
View Full Code Here

    }
   
    try {
      byte[] contentBytes = null;
      try{
        ObjTemplate template = DAOFactory.getObjTemplateDAO().getBIObjectActiveTemplate(obj.getId());
              if(template==null) throw new Exception("Active Template null");
              contentBytes = template.getContent();
              if(contentBytes==null) throw new Exception("Content of the Active template null");
      } catch (Exception e) {
        logger.error("Error while recovering template content: \n" + e);
        throw new EMFUserError(EMFErrorSeverity.ERROR, "1002", messageBundle);
      }
View Full Code Here

   
    return parameters;
  }
 
  private ObjTemplate getTemplate(BIObject biObject) {
    ObjTemplate template;
    IObjTemplateDAO templateDAO;
   
    logger.debug("IN");
   
    try {
      Assert.assertNotNull(biObject, "Input [biObject] cannot be null");
     
      templateDAO = DAOFactory.getObjTemplateDAO();
      Assert.assertNotNull(templateDAO, "Impossible to instantiate templateDAO");
   
      template = templateDAO.getBIObjectActiveTemplate( biObject.getId() );
      Assert.assertNotNull(template, "Loaded template cannot be null")
     
      logger.debug("Active template [" + template.getName() + "] of document [" + biObject.getLabel() + "] loaded succesfully");
    } catch(Throwable t) {
      throw new RuntimeException("Impossible to load template for document [" + biObject.getLabel()+ "]", t);
    } finally {
      logger.debug("OUT");
    }
View Full Code Here

     */   
  private Map getRequestParameters(BIObject biObject) {
    logger.debug("IN");
   
    Map parameters;
    ObjTemplate template;
    IBinContentDAO contentDAO;
    byte[] content;
   
    logger.debug("IN");
   
    parameters = null;
   
    try {   
      parameters = new Hashtable();
      template = this.getTemplate(biObject);
     
      try {
        contentDAO = DAOFactory.getBinContentDAO();
        Assert.assertNotNull(contentDAO, "Impossible to instantiate contentDAO");
       
        content = contentDAO.getBinContent(template.getBinId());       
        Assert.assertNotNull(content, "Template content cannot be null");
      } catch (Throwable t){
        throw new RuntimeException("Impossible to load template content for document [" + biObject.getLabel()+ "]", t);
      }
         
View Full Code Here

   
    return parameters;
  }
 
  private ObjTemplate getTemplate(BIObject biObject) {
    ObjTemplate template;
    IObjTemplateDAO templateDAO;
   
    logger.debug("IN");
   
    try {
      Assert.assertNotNull(biObject, "Input [biObject] cannot be null");
     
      templateDAO = DAOFactory.getObjTemplateDAO();
      Assert.assertNotNull(templateDAO, "Impossible to instantiate templateDAO");
   
      template = templateDAO.getBIObjectActiveTemplate( biObject.getId() );
      Assert.assertNotNull(template, "Loaded template cannot be null")
     
      logger.debug("Active template [" + template.getName() + "] of document [" + biObject.getLabel() + "] loaded succesfully");
    } catch(Throwable t) {
      throw new RuntimeException("Impossible to load template for document [" + biObject.getLabel()+ "]", t);
    } finally {
      logger.debug("OUT");
    }
View Full Code Here

     */   
  private Map getMap(BIObject biobj) {
    logger.debug("IN");
   
    Map pars;
    ObjTemplate objtemplate;
    byte[] template;
    String documentId;
   
    pars = new Hashtable();
    try {
   
      objtemplate = DAOFactory.getObjTemplateDAO().getBIObjectActiveTemplate(biobj.getId());       
      if (objtemplate == null) {
          throw new Exception("Active Template null");
        }
     
      template = DAOFactory.getBinContentDAO().getBinContent(objtemplate.getBinId());       
      if (template == null) {
        throw new Exception("Content of the Active template null");
      }
     
      documentId = biobj.getId().toString();
View Full Code Here

     */
    private Map getMap(BIObject biobj) {
  logger.debug("IN");

  Map pars;
  ObjTemplate objtemplate;
  byte[] template;
  String documentId;
  String documentlabel;

  pars = new Hashtable();
  try {
      objtemplate = DAOFactory.getObjTemplateDAO().getBIObjectActiveTemplate(biobj.getId());
      if (objtemplate == null) {
    throw new Exception("Active Template null");
      }

      template = DAOFactory.getBinContentDAO().getBinContent(objtemplate.getBinId());
      if (template == null) {
    throw new Exception("Content of the Active template null");
      }

      documentId = biobj.getId().toString();
View Full Code Here

     */   
  private Map getRequestParameters(BIObject biObject) {
    logger.debug("IN");
   
    Map parameters;
    ObjTemplate template;
    IBinContentDAO contentDAO;
    byte[] content;
   
    logger.debug("IN");
   
    parameters = null;
   
    try {   
      parameters = new Hashtable();
      template = this.getTemplate(biObject);
     
      try {
        contentDAO = DAOFactory.getBinContentDAO();
        Assert.assertNotNull(contentDAO, "Impossible to instantiate contentDAO");
       
        content = contentDAO.getBinContent(template.getBinId());       
        Assert.assertNotNull(content, "Template content cannot be null");
      } catch (Throwable t){
        throw new RuntimeException("Impossible to load template content for document [" + biObject.getLabel()+ "]", t);
      }
         
View Full Code Here

    private final static String PARAM_SERVICE_NAME = "ACTION_NAME";
    private final static String PARAM_NEW_SESSION = "NEW_SESSION";
    private final static String PARAM_MODALITY = "MODALITY";
   
  private Map applyService(Map parameters, BIObject biObject) {
    ObjTemplate template;
   
    logger.debug("IN");
   
    try {
      Assert.assertNotNull(parameters, "Input [parameters] cannot be null");
View Full Code Here

TOP

Related Classes of it.eng.spagobi.analiticalmodel.document.bo.ObjTemplate

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.