Examples of IConfigDAO


Examples of com.lgx8.common.dao.IConfigDao

     * @see ServletContextListener#contextInitialized(ServletContextEvent)
     */
    public void contextInitialized(ServletContextEvent arg0) {
      ServletContext servletContext = arg0.getServletContext();
      ApplicationContext appContext = WebApplicationContextUtils.getWebApplicationContext(servletContext);
      IConfigDao configDao = (IConfigDao) appContext.getBean("configDao");
      GatewayConfig gatewayConfig = configDao.findGatewayConfig();
      servletContext.setAttribute("gatewayConfig", gatewayConfig);
     
//      gatewayConfig.setUrl("http://localhost:8080/yikatao");
     
      Constants.gatewayConfig = gatewayConfig;
View Full Code Here

Examples of it.eng.spagobi.commons.dao.IConfigDAO

    boolean toReturn = false;
    if (user==null) return toReturn;
    Date currentDate = new Date();

    //gets the active controls to applicate:
    IConfigDAO configDao = DAOFactory.getSbiConfigDAO();
    List lstConfigChecks = configDao.loadConfigParametersByProperties(PROP_NODE);
    logger.debug("checks found on db: " + lstConfigChecks.size());

    for(int i=0; i<lstConfigChecks.size(); i++){
      Config check = (Config)lstConfigChecks.get(i);
      if ((SpagoBIConstants.CHANGEPWD_CHANGE_FIRST).equals(check.getLabel()) && user.getDtLastAccess() == null){
View Full Code Here

Examples of it.eng.spagobi.commons.dao.IConfigDAO

      tmpUser = userDao.loadSbiUserByUserId(userId);
     
      if (message.trim().equalsIgnoreCase("CHANGE_PWD")){ 
        if (PWD_OK == CheckPwd(tmpUser)){         
          //getting days number for calculate new expiration date
          IConfigDAO configDao = DAOFactory.getSbiConfigDAO();
          List lstConfigChecks = configDao.loadConfigParametersByProperties("changepwd.expired_time");
          Date beginDate = new Date();
          if (lstConfigChecks.size() > 0){
            Config check = (Config)lstConfigChecks.get(0);           
            if (check.isActive()){
              //define the new expired date             
View Full Code Here

Examples of it.eng.spagobi.commons.dao.IConfigDAO

     *
     * @return true if it's correct, else otherwise
     */
    private int CheckPwd (SbiUser tmpUser) throws EMFUserError, Exception {
      //gets the active controls to apply:
    IConfigDAO configDao = DAOFactory.getSbiConfigDAO();
    List lstConfigChecks = configDao.loadConfigParametersByProperties(PROP_NODE);
    logger.debug("checks found on db: " + lstConfigChecks.size());
   
    /* initial checks: - all values must be valorized,
     *            - oldPwd must be correct,
     *                 - newPwd and newPwd2 must be the same */
 
View Full Code Here

Examples of it.eng.spagobi.commons.dao.IConfigDAO

  private HashMap<String, String> cache=new HashMap<String, String>();
 
  public SingletonConfigCache() {
    logger.debug("IN");
   
    IConfigDAO dao= null
    try {
      dao= DAOFactory.getSbiConfigDAO();
      List<Config> allConfig= dao.loadAllConfigParameters();
      if (allConfig.size()==0) logger.error("The table sbi_config is EMPTY");
      for (Config config: allConfig ) {
        cache.put(config.getLabel(), config.getValueCheck());
        logger.info("Add: "+config.getLabel() +" / "+config.getValueCheck());
      }
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.