Examples of ORProperty


Examples of org.efs.openreports.objects.ORProperty

        pStmt = JRQueryExecuter.getStatement(query, jrParameters, parameters,
            conn);
      }

      ORProperty maxRows = propertiesProvider
          .getProperty(ORProperty.QUERYREPORT_MAXROWS);
      if (maxRows != null && maxRows.getValue() != null)
      {
        pStmt.setMaxRows(Integer.parseInt(maxRows.getValue()));
      }

      rs = pStmt.executeQuery();

      RowSetDynaClass rowSetDynaClass = new RowSetDynaClass(rs);
View Full Code Here

Examples of org.efs.openreports.objects.ORProperty

        dateFormat = dateProvider.getDateFormat().toPattern();       
        baseDirectory = directoryProvider.getReportDirectory()
        tempDirectory = directoryProvider.getTempDirectory();
        reportGenerationDirectory = directoryProvider.getReportGenerationDirectory();

        ORProperty property = propertiesProvider.getProperty(ORProperty.MAIL_SMTP_HOST);
        if (property != null) mailHost = property.getValue();

        property = propertiesProvider.getProperty(ORProperty.MAIL_SMTP_AUTH);
        if (property != null) mailAuthenticatorUsed = new Boolean(property.getValue()).booleanValue();

        property = propertiesProvider.getProperty(ORProperty.MAIL_AUTH_USER);
        if (property != null) mailUser = property.getValue();

        property = propertiesProvider.getProperty(ORProperty.MAIL_AUTH_PASSWORD);
        if (property != null) mailPassword = property.getValue();             
       
        property = propertiesProvider.getProperty(ORProperty.QUERYREPORT_MAXROWS);
        if (property != null) maxRows = property.getValue();
               
                property = propertiesProvider.getProperty(ORProperty.XMLA_CATALOG);
                if (property != null) xmlaCatalog = property.getValue();   
               
                property = propertiesProvider.getProperty(ORProperty.XMLA_DATASOURCE);
                if (property != null) xmlaDataSource = property.getValue();   
               
                property = propertiesProvider.getProperty(ORProperty.XMLA_URL);
                if (property != null) xmlaUri = property.getValue();   
       
        //
        File tempDirFile = new File(directoryProvider.getTempDirectory());
               
        long size = FileUtils.sizeOfDirectory(tempDirFile);     
View Full Code Here

Examples of org.efs.openreports.objects.ORProperty

        Map jrParameters = ORUtil.buildJRDesignParameters(parameters);

        pStmt = JRQueryExecuter.getStatement(query, jrParameters, parameters, conn);
      }
     
      ORProperty maxRows = propertiesProvider.getProperty(ORProperty.QUERYREPORT_MAXROWS);
      if (maxRows != null && maxRows.getValue() != null)
      { 
        pStmt.setMaxRows(Integer.parseInt(maxRows.getValue()));
      }
     
      rs = pStmt.executeQuery();   
     
      model = ResultSetTableModelFactory.getInstance().createTableModel(rs);
View Full Code Here

Examples of org.efs.openreports.objects.ORProperty

 
  protected void init() throws ProviderException
  {
    String dateFormat = "MM/dd/yyyy";

    ORProperty property = propertiesProvider.getProperty(ORProperty.DATE_FORMAT);   
    if (property != null && property.getValue() != null
        && property.getValue().trim().length() > 0)
    {
      dateFormat = property.getValue();
    }

    setDateFormat(dateFormat);

    log.info("DateFormat: " + dateFormat);
View Full Code Here

Examples of org.efs.openreports.objects.ORProperty

    mailHost = null;
    useMailAuthenticator = false;
    userName = null;
    password = null;

    ORProperty property = propertiesProvider.getProperty(ORProperty.MAIL_SMTP_HOST);
    if (property != null) mailHost = property.getValue();

    property = propertiesProvider.getProperty(ORProperty.MAIL_SMTP_AUTH);   
    if (property != null) useMailAuthenticator = Boolean.valueOf(property.getValue()).booleanValue();
   
    property = propertiesProvider.getProperty(ORProperty.MAIL_AUTH_USER);
    if (property != null) userName = property.getValue();
   
    property = propertiesProvider.getProperty(ORProperty.MAIL_AUTH_PASSWORD);
    if (property != null) password = property.getValue();
   
    log.info("Created: Use Mail Authenticator = " + useMailAuthenticator);
  }
View Full Code Here

Examples of org.efs.openreports.objects.ORProperty

  {
    log.info("Loading BaseDirectory from OR_PROPERTIES table.");

    String baseDirectory = null;

    ORProperty property = propertiesProvider.getProperty(ORProperty.BASE_DIRECTORY);   
    if (property != null) baseDirectory = property.getValue();
   
    if (baseDirectory == null || baseDirectory.trim().length() < 1)
    {
      log.info("BaseDirectory not set in OR_PROPERTIES table. Trying to get path from ServletContext.");

      try
      {
        baseDirectory = ServletActionContext.getServletContext().getRealPath("");
        baseDirectory = baseDirectory + separator + "reports";
      }
      catch (NullPointerException npe)
      {
        log.info("ServletActionContext not available.");
        baseDirectory = ".";
      }
    }
       
    reportDirectory = baseDirectory;
    if (!reportDirectory.endsWith(separator)) reportDirectory +=separator;   
    log.info("Report Directory: " + reportDirectory);
     
    reportImageDirectory = reportDirectory + "images" + separator;   
    log.info("Report Image Directory: " + reportImageDirectory);
   
    //set temp directory path for report virtualization and image generation
    property = propertiesProvider.getProperty(ORProperty.TEMP_DIRECTORY);   
    if (property != null && property.getValue() != null && property.getValue().trim().length() > 0)
    {
      tempDirectory = property.getValue();
      if (!tempDirectory.endsWith(separator)) tempDirectory +=separator;     
      log.info("TempDirectory: " + tempDirectory);
    }
   
    //set report generation directory path for storing generated reports
    property = propertiesProvider.getProperty(ORProperty.REPORT_GENERATION_DIRECTORY);   
    if (property != null && property.getValue() != null && property.getValue().trim().length() > 0)
    {
      reportGenerationDirectory = property.getValue();
      if (!reportGenerationDirectory.endsWith(separator)) reportGenerationDirectory +=separator;     
      log.info("ReportGenerationDirectory: " + reportGenerationDirectory);
    }   
   
    log.info("Created");
View Full Code Here

Examples of org.efs.openreports.objects.ORProperty

    log.info("PropertiesProviderImpl created");
 

  public void setProperty(String key, String value) throws ProviderException
  {
    ORProperty property = getProperty(key);
   
    if (property == null)
    {
      property = new ORProperty();
      property.setKey(key);
      property.setValue(value);
     
      insertProperty(property);
    }
    else
    {
      property.setValue(value);
     
      updateProperty(property);
    }
  }
View Full Code Here

Examples of org.efs.openreports.objects.ORProperty

                + "where orProperty.key = ?").setCacheable(true).setString(0, key).list();
         
        if (list.size() == 0)
          return null;

        ORProperty property = list.get(0);     

        return property;
      }
      catch (HibernateException 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.