Package it.eng.spagobi.commons

Examples of it.eng.spagobi.commons.SingletonConfig


     *
     * @return the i security service supplier
     */
    public static ISecurityServiceSupplier createISecurityServiceSupplier(){
  logger.debug("IN");
  SingletonConfig configSingleton = SingletonConfig.getInstance();
  String engUserProfileFactorySB = configSingleton.getConfigValue("SPAGOBI.SECURITY.USER-PROFILE-FACTORY-CLASS.className");
  if (engUserProfileFactorySB==null){
      logger.warn("SPAGOBI.SECURITY.USER-PROFILE-FACTORY-CLASS ... NOT FOUND");
  }
  String engUserProfileFactoryClass = engUserProfileFactorySB;
  engUserProfileFactoryClass = engUserProfileFactoryClass.trim();
View Full Code Here


    logger.debug(dateString)
    response.setDateHeader("Expires", date.getTime());
    //response.setHeader("Expires", "Sat, 6 May 2010 12:00:00 GMT"); 
    response.setHeader("Cache-Control: max-age", "600")
   
    SingletonConfig configSingleton = SingletonConfig.getInstance();
    String pathh = configSingleton.getConfigValue("SPAGOBI.RESOURCE_PATH_JNDI_NAME");
    String filePath= SpagoBIUtilities.readJndiResource(pathh);
    filePath += "/kpi_images/";
    String dirName = (String)serviceRequest.getAttribute("dirName");
    filePath += dirName+"/";
    logger.debug("filePath="+filePath);
View Full Code Here

  logger.debug("Add document parameter:" + documentId);
  pars.put("documentLabel", biobj.getLabel());
  logger.debug("Add document parameter:" + biobj.getLabel());

  // adding date format parameter
  SingletonConfig config = SingletonConfig.getInstance();
  String formatSB = config.getConfigValue("SPAGOBI.DATE-FORMAT.format");
  String format = (formatSB == null) ? "DD-MM-YYYY" : formatSB;
  pars.put("dateformat", format);

  pars = addBISubreports(biobj, pars);
  pars = addBIParameters(biobj, pars);
View Full Code Here

     *
     * @return the instance of ISecurityInfoProvider
     */
    public static synchronized ISecurityInfoProvider getPortalSecurityProvider() throws Exception {
      logger.debug("IN");
      SingletonConfig configSingleton = SingletonConfig.getInstance();
      String portalSecurityClassName = configSingleton.getConfigValue("SPAGOBI.SECURITY.PORTAL-SECURITY-CLASS.className");
      logger.debug(" Portal security class name: " + portalSecurityClassName);
      if (portalSecurityClassName == null || portalSecurityClassName.trim().equals("")) {
        logger.error(" Portal security class name not set!!!!");
        throw new Exception("Portal security class name not set");
      }
View Full Code Here

   */
  public void synchronize() {
    logger.debug("IN");
        try {
            IRoleDAO roleDAO = DAOFactory.getRoleDAO();
          SingletonConfig conf = SingletonConfig.getInstance();
          logger.debug("Config singleton retrived " + conf);
          String portalSecurityProviderClass = conf.getConfigValue("SPAGOBI.SECURITY.PORTAL-SECURITY-CLASS.className");
          portalSecurityProviderClass = portalSecurityProviderClass.trim();
          logger.debug("Security class name retrived " + portalSecurityProviderClass);
          Class secProvClass = Class.forName(portalSecurityProviderClass);
          logger.debug("Security class found " + secProvClass);
          ISecurityInfoProvider portalSecurityProvider = (ISecurityInfoProvider)secProvClass.newInstance();
          logger.debug("Security class instance created " + portalSecurityProvider);
          String secFilterSB = conf.getConfigValue("SPAGOBI.SECURITY.ROLE-NAME-PATTERN-FILTER");
          logger.debug("Source bean filter retrived " + secFilterSB);
            String rolePatternFilter = secFilterSB;
            logger.debug("Filter string retrived " + rolePatternFilter);
            Pattern filterPattern = Pattern.compile(rolePatternFilter);
            logger.debug("Filter pattern regular expression " + filterPattern);
View Full Code Here

    aRole.setRoleTypeCD("USER");
  }
 
  private boolean isRoleType(Role aRole, String roleTypeCd) {
    String roleName = aRole.getName();
    SingletonConfig conf = SingletonConfig.getInstance();
    String adminRolePatternSB = conf.getConfigValue("SPAGOBI.SECURITY.ROLE-TYPE-PATTERNS." + roleTypeCd + "-PATTERN");
    if (adminRolePatternSB != null) {
      String adminPatternStr = adminRolePatternSB;
      Pattern adminPattern = Pattern.compile(adminPatternStr);
      Matcher matcher = adminPattern.matcher(roleName);
        if (matcher.matches()) {
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

  public void init(SourceBean config) {
    logger.debug("IN");

    logger.debug("SecurityInitializer::init: roles synchronization ended.");
    _config = config;
    SingletonConfig configSingleton = SingletonConfig.getInstance();
    String portalSecurityInitClassName = (configSingleton.getConfigValue("SPAGOBI.SECURITY.PORTAL-SECURITY-INIT-CLASS.className"));
    logger.debug("SecurityInitializer::init: Portal security initialization class name: '" + portalSecurityInitClassName + "'");
    if (portalSecurityInitClassName == null || portalSecurityInitClassName.trim().equals("")) return;
    portalSecurityInitClassName = portalSecurityInitClassName.trim();
    InitializerIFace portalSecurityInit = null;
    try {
View Full Code Here

    }
    //End writing log in the DB
   
    EventsManager eventsManager = EventsManager.getInstance();   
    List firedEventsList = eventsManager.getRegisteredEvents(profile);
        SingletonConfig config = SingletonConfig.getInstance();
        String formatSB = config.getConfigValue("SPAGOBI.DATE-FORMAT.format");
        String format = (formatSB==null)?"": formatSB;
      format = format.replaceAll("D", "d");
      format = format.replaceAll("m", "M");
      format = format.replaceAll("Y", "y");
    PaginatorIFace paginator = new GenericPaginator();
View Full Code Here

    logger.debug("Add document parameter:" + documentId);
    pars.put("documentLabel", biobj.getLabel());
    logger.debug("Add document parameter:" + biobj.getLabel());

    // adding date format parameter
    SingletonConfig config = SingletonConfig.getInstance();
    String formatSB = config.getConfigValue("SPAGOBI.DATE-FORMAT.format");
    String format = (formatSB == null) ? "DD-MM-YYYY" : formatSB;
    pars.put("dateformat", format);

    pars = addBIParameters(biobj, pars);
    pars = addBIParameterDescriptions(biobj, pars);
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.