Package it.eng.spagobi.commons

Examples of it.eng.spagobi.commons.SingletonConfig


  private String getChildrenByLevel = null;
  private String getRootLeaves = null;

  @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


    SourceBean lovResultSB = lovResultHandler.getLovResultSB();
    PaginatorIFace paginator = new GenericPaginator();
   
    int numRows = 10;
    try{
      SingletonConfig spagoconfig = SingletonConfig.getInstance();
      String lookupnumRows = spagoconfig.getConfigValue("SPAGOBI.LOOKUP.numberRows");
      if(lookupnumRows!=null) {
        numRows = Integer.parseInt(lookupnumRows);
      }
    } catch(Exception e) {
      numRows = 10;
View Full Code Here

     *
     * @throws SecurityException the security exception
     */
    public void validateTicket(String ticket, String userId)throws SecurityException {
  logger.debug("IN");
  SingletonConfig config = SingletonConfig.getInstance();
  String validateUrl=null;
  String validateService=null;
  if (config!=null){
    // only server side...
      validateUrl = SingletonConfig.getInstance().getConfigValue("CAS_SSO.VALIDATE-USER.URL");
View Full Code Here

  public static void updateAudit(Connection jdbcConnection,IEngUserProfile profile, String  action_code, String info)
  throws Exception {
    logger.debug("IN");
    CustomJDBCAppender ja = null;
    boolean updateDB= false;
    SingletonConfig serverConfig = SingletonConfig.getInstance();
    String dbTimestampFormat = serverConfig.getConfigValue("SPAGOBI.DB-TIMESTAMP-FORMAT.format");
    String updateDBConf = serverConfig.getConfigValue("SPAGOBI.DB_LOG.value");
    if(updateDBConf!=null && updateDBConf.equalsIgnoreCase("true")){
      updateDB=true;
    }

    String userName = "";
View Full Code Here

    IDataStore dataStore = null;
    FileInputStream inputStream = null;
   
    try {
      // recover the file from resources!
      SingletonConfig configSingleton = SingletonConfig.getInstance();
      String filePath  = "";
      if(resPath!=null && !resPath.equals("")){
        filePath = resPath;
      }else{
        String pathh  = configSingleton.getConfigValue("SPAGOBI.RESOURCE_PATH_JNDI_NAME");
        filePath= SpagoBIUtilities.readJndiResource(pathh);
      }     
     
      filePath += "/dataset/files";
      filePath+="/"+fileName;
View Full Code Here

        getSessionContainer().setAttribute("scriptLanguageList", scriptLanguageList)
        List trasfTypesList = DAOFactory.getDomainDAO().loadListDomainsByType(DataSetConstants.TRANSFORMER_TYPE);
        getSessionContainer().setAttribute("trasfTypesList", trasfTypesList)
        List sbiAttrs = DAOFactory.getSbiAttributeDAO().loadSbiAttributes();
        getSessionContainer().setAttribute("sbiAttrsList", sbiAttrs)
        SingletonConfig configSingleton = SingletonConfig.getInstance();
        String pathh = configSingleton.getConfigValue("SPAGOBI.RESOURCE_PATH_JNDI_NAME");
        String filePath= SpagoBIUtilities.readJndiResource(pathh);
        filePath += "/dataset/files";
        File dir = new File(filePath);
           String[] fileNames = dir.list();
           getSessionContainer().setAttribute("fileNames", fileNames)
View Full Code Here

  PaginatorIFace paginator = new GenericPaginator();

  int numRows = 10;
  try {
      SingletonConfig spagoconfig = SingletonConfig.getInstance();
      String lookupnumRows = spagoconfig.getConfigValue("SPAGOBI.LOOKUP.numberRows");
      if (lookupnumRows != null) {
    numRows = Integer.parseInt(lookupnumRows);
      }
  } catch (Exception e) {
      numRows = 10;
View Full Code Here

        throw new Exception("Menu file name cannot contain file separator character");
      }
     
      logger.debug("fileName="+fileName);
     
      SingletonConfig configSingleton = SingletonConfig.getInstance();
      String path = configSingleton.getConfigValue("SPAGOBI.RESOURCE_PATH_JNDI_NAME");
      String filePath= SpagoBIUtilities.readJndiResource(path);
      filePath+="/static_menu/"+fileName;
     
      logger.debug("filePath="+filePath);
     
View Full Code Here

   * @return the spago bi context name
   * @throws EMFUserError
   */
  public static String getSpagoBIContextName(HttpServletRequest httpRequest) {
    String contextName = "Spagobi";
    SingletonConfig spagoconfig = SingletonConfig.getInstance();
    // get mode of execution
    String sbiMode = spagoconfig.getConfigValue("SPAGOBI.SPAGOBI-MODE.mode");
    if (sbiMode==null) {
      logger.error("SPAGOBI.SPAGOBI-MODE.mode IS NULL");
      sbiMode="WEB";
    }
    // based on mode get spago object and url builder
View Full Code Here

   * Checks if is web running.
   *
   * @return true, if is web running
   */
  public static boolean isWebRunning() {
    SingletonConfig spagoconfig = SingletonConfig.getInstance();
    // get mode of execution
    String sbiMode = (String)spagoconfig.getConfigValue("SPAGOBI.SPAGOBI-MODE.mode");  
    if (sbiMode==null) {
      logger.error("SPAGOBI.SPAGOBI-MODE.mode IS NULL");
      return false;
    }
    if( sbiMode.equalsIgnoreCase("WEB") ) {
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.