Package it.eng.spagobi.commons

Examples of it.eng.spagobi.commons.SingletonConfig


 
  private String getResourcePath() {

    String path = null;
    SourceBean pathSB;
    SingletonConfig configSingleton = SingletonConfig.getInstance();
    String jndiPath = configSingleton.getConfigValue("SPAGOBI.RESOURCE_PATH_JNDI_NAME");
    Assert.assertNotNull(jndiPath, "Impossible to find block [<SPAGOBI.RESOURCE_PATH_JNDI_NAME>] into configuration");
    path = SpagoBIUtilities.readJndiResource(jndiPath) + System.getProperty("file.separator") + "qbe" + System.getProperty("file.separator") + "datamarts" ;
   
    return path;
  }
View Full Code Here


   */
  private OrganizationalUnitGrant deserializeOrganizationalUnitGrant(JSONObject JSONGrant) throws Exception{
    OrganizationalUnitGrant organizationalUnitGrant = new OrganizationalUnitGrant();
    organizationalUnitGrant.setDescription(JSONGrant.getString("description"));
   
        SingletonConfig config = SingletonConfig.getInstance();
        String format = config.getConfigValue("SPAGOBI.DATE-FORMAT-SERVER.format");
     
    organizationalUnitGrant.setEndDate(toDate(JSONGrant.getString("enddate"), format));
    organizationalUnitGrant.setStartDate(toDate(JSONGrant.getString("startdate"), format));
    organizationalUnitGrant.setLabel(JSONGrant.getString("label"));
    organizationalUnitGrant.setName(JSONGrant.getString("name"));
View Full Code Here

   * AG_DIM � il codice foglia
   * cd_az � il codice azienda
   */ 
  @Override
  public void initialize() {   
    SingletonConfig singleConfig = SingletonConfig.getInstance();
    jndiDatasource = singleConfig.getConfigValue("SPAGOBI.ORGANIZATIONAL-UNIT.jndiDatasource");
    getHierarchiesQuery = singleConfig.getConfigValue("SPAGOBI.ORGANIZATIONAL-UNIT.getHierarchiesQuery");
    getOUsQuery= singleConfig.getConfigValue("SPAGOBI.ORGANIZATIONAL-UNIT.getOUsQuery");
    getRootByHierarchy = singleConfig.getConfigValue("SPAGOBI.ORGANIZATIONAL-UNIT.getRootByHierarchy");
    getChildrenByLevel= singleConfig.getConfigValue("SPAGOBI.ORGANIZATIONAL-UNIT.getChildrenByLevel");
    getRootLeaves= singleConfig.getConfigValue("SPAGOBI.ORGANIZATIONAL-UNIT.getRootLeaves");
  }
View Full Code Here

TOP

Related Classes of it.eng.spagobi.commons.SingletonConfig

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.