public String getLDAPUnlockValue() {
   String ldapValue = "";
   try {
     ldapValue = getConfigParamValue(LDAP_UNLOCK_VALUE);
   } catch (Exception e) {
     ALNTLogger.warn(
         ApplicationConfigService.class.getName(),
         "getLDAPUnlockValue()",
         "Error getting value for LDAPUnlockValue:" + e.getMessage());
   }
   return ldapValue;
 }
 // This is used for getting Ldap parameters.
 public String getADParametersToModify() {
   String parameters = "";
   try {
     parameters = getConfigParamValue(AD_PROV_PARAMETERS_THAT_CAN_BE_CHANGED);
   } catch (Exception e) {
     ALNTLogger.warn(
         this.getClass().getName(),
         "getLDAPParametersToModify()",
         "Error getting value for getLDAPParametersToModify: " + e.getMessage());
   }
   return parameters;
 }
 public String getReqClosingWSPasswd() {
   String value = "";
   try {
     value = getConfigParamValue(REQ_CLOS_WS_PASSWORD);
   } catch (Exception e) {
     ALNTLogger.warn(
         ApplicationConfigService.class.getName(),
         "getReqClosingWSPasswd()",
         "Error getting value for getReqClosingWSPasswd:" + e.getMessage());
   }
   return value;
 }
 public String getConfigLogDir() {
   String parameters = "";
   try {
     parameters = getConfigParamValueForLogDir(CONFIG_LOG_DIR, true);
   } catch (Exception e) {
     ALNTLogger.warn(
         this.getClass().getName(),
         "getLDAPParametersToModify()",
         "Error getting value for getLDAPParametersToModify: " + e.getMessage());
   }
   return parameters;
 }
 public String getAdminUserIds() {
   String userIds = "";
   try {
     userIds = getConfigParamValue(ADMIN_USERS);
   } catch (Exception e) {
     ALNTLogger.warn(
         this.getClass().getName(),
         "getAdminUserIds()",
         "Error getting value for getAdminUserIds: " + e.getMessage());
   }
   return userIds;
 }
 public Boolean getDoDateValidationForRoles() {
   Boolean value = Boolean.TRUE;
   try {
     String ddvr = getConfigParamValue(DO_DATE_VALIDATION_FOR_ROLES);
     value = doesStringRepresentTrue(ddvr);
   } catch (Exception e) {
     ALNTLogger.warn(
         ApplicationConfigService.class.getName(),
         "getProvisionExternalRolesEnabled()",
         "Error getting value for getProvisionExternalRolesEnabled:" + e.getMessage());
   }
   return value;
 }
 public String getDefaultProvPassword() {
   String defPassword = "******";
   try {
     defPassword = getConfigParamValue(DEFAULT_PROV_PASSWORD);
   } catch (Exception e) {
     ALNTLogger.warn(
         ApplicationConfigService.class.getName(),
         "getDefaultProvPassword()",
         "Error getting value for getDefaultProvPassword: "******"P@$$w0rd";
   }
   return defPassword;
 }
 public String getRIAnalysisType() {
   String strRIAnalysisType = "Activity";
   try {
     strRIAnalysisType = getConfigParamValue(RI_ANALYSIS_TYPE);
   } catch (Exception e) {
     ALNTLogger.warn(
         ApplicationConfigService.class.getName(),
         "getRIAnalysisType()",
         "Error getting value for getRIAnalysisType:" + e.getMessage());
     strRIAnalysisType = "Activity";
   }
   return strRIAnalysisType;
 }
 public boolean isDisplaySaraReports() {
   boolean display = false;
   try {
     String strGraphDisplayInInboxPage = getConfigParamValue(SHOW_SARA_REPORTS);
     display = doesStringRepresentTrue(strGraphDisplayInInboxPage);
   } catch (Exception e) {
     ALNTLogger.warn(
         this.getClass().getName(),
         "isDisplaySaraReports()",
         "Error getting value for isDisplaySaraReports: " + e.getMessage());
   }
   return display;
 }
 public String getMitigatedRiskColor() {
   // TODO Shd provide a default color
   String strMigatedRiskColor = "";
   try {
     strMigatedRiskColor = getConfigParamValue(MITIGATED_RISK_COLOR);
   } catch (Exception e) {
     ALNTLogger.warn(
         ApplicationConfigService.class.getName(),
         "getMitigatedRiskColor()",
         "Error getting value for getMitigatedRiskColor:" + e.getMessage());
     strMigatedRiskColor = "";
   }
   return strMigatedRiskColor;
 }
 public boolean isKeywordSearchEnabled() {
   boolean show = true;
   try {
     String showKwrdSearch = getConfigParamValue(SHOW_KEYWORD_SEARCH);
     show = doesStringRepresentTrue(showKwrdSearch);
   } catch (Exception e) {
     ALNTLogger.warn(
         ApplicationConfigService.class.getName(),
         "isKeywordSearchEnabled()",
         "Error getting value for isKeywordSearchEnabled:" + e.getMessage());
     show = true;
   }
   return show;
 }
 public Long getProvisionExternalRolesEnabled() {
   Long value = new Long(0);
   try {
     String showExternalRoles = getConfigParamValue(SHOW_EXTERNAL_ROLES);
     value = Long.parseLong(showExternalRoles);
   } catch (Exception e) {
     ALNTLogger.warn(
         ApplicationConfigService.class.getName(),
         "getProvisionExternalRolesEnabled()",
         "Error getting value for getProvisionExternalRolesEnabled:" + e.getMessage());
     value = new Long(0);
   }
   return value;
 }
 public long getSleepTimeForExchangeEmail() {
   long sleepTime = SLEEPTIME_FOR_EXCHANGE_EMAIL;
   try {
     String sleepTimeforExchaneEmail = getConfigParamValue(CONFIG_PARAM_SLEEP_TIME_EXCHANGE);
     if ((sleepTimeforExchaneEmail != null) && (sleepTimeforExchaneEmail.trim().length() > 0)) {
       sleepTime = Long.parseLong(sleepTimeforExchaneEmail.trim());
     }
   } catch (Exception e) {
     ALNTLogger.warn(
         ApplicationConfigService.class.getName(),
         "getSleepTimeForExchangeEmail()",
         "Error getting sleeptime for exchange:" + e.getMessage());
   }
   return sleepTime;
 }
  public long getSleepTimeForFetchingUBDN() {
    long sleepTime = SLEEPTIME_FOR_LDAP_BASE_DN;

    try {
      String sleepTimeforldap = getConfigParamValue(CONFIG_PARAM_SLEEP_TIME_LDAP);
      if ((sleepTimeforldap != null) && (sleepTimeforldap.trim().length() > 0)) {
        sleepTime = Long.parseLong(sleepTimeforldap.trim());
      }
    } catch (Exception e) {
      ALNTLogger.warn(
          this.getClass().getName(),
          "getSleepTimeForFetchingUBDN()",
          "Error getting value for sleep time for ldap: " + e.getMessage());
    }
    return sleepTime;
  }