Package com.adito.properties.impl.systemconfig

Examples of com.adito.properties.impl.systemconfig.SystemConfigKey


        String expectingRealm = (String) req.getSession().getAttribute(ATTR_EXPECTING_REALM_AUTHENTICATION);

        /* Attempt authentication if cookieless clients are allowed to connect or
         * if we are definitely expecting some realm to be authenticated
         */
        if (Property.getPropertyBoolean(new SystemConfigKey("security.allowUntrackedWebDAVSessions")) || expectingRealm != null) {
            for (Enumeration e = req.getHeaders(HttpConstants.HDR_AUTHORIZATION); e.hasMoreElements();) {
                String val = (String) e.nextElement();
                authorize(expectingRealm, val);
            }
        }
View Full Code Here


    public String getName() {
      return "security.maxUserCount";
    }

    public String getValue() {
      return String.valueOf(Property.getProperty(new SystemConfigKey("security.maxUserCount")));
    }
View Full Code Here

        SessionInfo sessionInfo = (SessionInfo)request.getSession().getAttribute(Constants.SESSION_INFO);
        int realmID = sessionInfo.getRealm().getRealmID();
        int navigationContext = sessionInfo.getNavigationContext();
        String defaultView =  navigationContext ==
            SessionInfo.MANAGEMENT_CONSOLE_CONTEXT  
                    ? Property.getProperty(new SystemConfigKey("ui.defaultManagementConsoleViewType"))
                    : Property.getProperty(new ProfilePropertyKey("ui.defaultUserConsoleViewType", sessionInfo));
        if(navigationContext == SessionInfo.USER_CONSOLE_CONTEXT) {
            selectedView = CoreUtil.getCookieValue("ui_view_" + getModel().getId() + "_" + navigationContext, request, defaultView);
           
            if (selectedView == null){
View Full Code Here

        try {
          if(userProfile) {
            val = CoreUtil.getUsersProfileProperty(pageContext.getSession(), propertyName, user);
          }
          else {
            val = Property.getProperty(new SystemConfigKey(propertyName));           
          }
            if (regExp) {
                if (!val.matches(propertyValue)) {
                    return EVAL_BODY_INCLUDE;
                } else {
View Full Code Here

        }
        if(userProfile) {
            value = CoreUtil.getUsersProfileProperty(pageContext.getSession(), propertyName, user);
      }
      else {
        value = Property.getProperty(new SystemConfigKey(propertyName));           
      }
        return (EVAL_BODY_AGAIN);
    }
View Full Code Here

  public AbstractNetworkPlaceMount(LaunchSession launchSession, VFSStore store) {
    this.store = store;
    this.launchSession = launchSession;
    this.readOnly = getNetworkPlace().isReadOnly();
    try {
      tryCurrentUser = Property.getPropertyBoolean(new SystemConfigKey("fileBrowsing.auth.tryCurrentUser"));
      tryGuest = Property.getPropertyBoolean(new SystemConfigKey("fileBrowsing.auth.tryGuest"));

    } catch (Exception e) {
    }
  }
View Full Code Here

        try {
          if(userProfile) {
            val = CoreUtil.getUsersProfileProperty(pageContext.getSession(), propertyName, user);
          }
          else {
            val = Property.getProperty(new SystemConfigKey(propertyName));
          }
            if (regExp) {
                if (val.matches(propertyValue)) {
                    return EVAL_BODY_INCLUDE;
                } else {
View Full Code Here

 
  PublicKeyStore() {
    store = RepositoryFactory.getRepository().getStore("PKI");
   
    try {     
      keyType = Property.getProperty(new SystemConfigKey("pki.algorithm"));     
      bitLength = Property.getPropertyInt(new SystemConfigKey("pki.bitLength"));
    } catch (Exception e) {
      log.error("Could not get PKI properties! defaults will be used");
      keyType = "rsa";
      bitLength = 1024;
    }
View Full Code Here

            super.doForward(uri, request, response);
        }
    }

  private void setDefaultLocale(HttpServletRequest request, HttpSession session) {
    String defaultLocale = Property.getProperty(new SystemConfigKey("ui.defaultLanguage"));
    try {
            if (Util.isNullOrTrimmedBlank(SystemProperties.get("adito.defaultLanguage", ""))) {
            Cookie[] c = request.getCookies();
            if (c != null) {
                for (int i = 0; i < c.length; i++) {
View Full Code Here

        String isRunningUnitTests = SystemProperties.get("adito.testing", "false");
        return Boolean.valueOf(isRunningUnitTests);
    }

    private static boolean checkForRedirect(HttpServletRequest request, HttpServletResponse response) throws IOException {
        String action = Property.getProperty(new SystemConfigKey("webServer.invalidHostnameAction"));
        PropertyList validExternalHosts = Property.getPropertyList(new SystemConfigKey("webServer.validExternalHostnames"));
        ;
        if (validExternalHosts.size() != 0) {
            Iterator<String> it = validExternalHosts.iterator();
            String host = request.getHeader("Host");
            HostService hostService = host == null ? null : new HostService(host);
View Full Code Here

TOP

Related Classes of com.adito.properties.impl.systemconfig.SystemConfigKey

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.