Package it.eng.spagobi.commons.dao

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


      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

     *
     * @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

  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

Related Classes of it.eng.spagobi.commons.dao.IConfigDAO

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.