Package com.adito.core

Examples of com.adito.core.BrowserChecker


    public BrowserCheckTag() {
        super();
    }

    public int doStartTag() {
      BrowserChecker checker = new BrowserChecker(((HttpServletRequest)pageContext.getRequest()).getHeader("user-agent"));
      boolean ok = checker.isBrowserVersionExpression(browser, Util.isNullOrTrimmedBlank(version) ? "*" : version);
        return ok ? (required ? EVAL_BODY_INCLUDE : SKIP_BODY ) : (required ? SKIP_BODY : EVAL_BODY_INCLUDE );
    }
View Full Code Here


    try {
        // this is an extra check to ensure that the webDav authentication scheme is accessible to allow web folders.
        AuthenticationScheme authenticationSchemeSequence = SystemDatabaseFactory.getInstance().getAuthenticationSchemeSequence("WebDAV", sessionInfo.getRealm().getRealmID());
        boolean principalAllowed = PolicyDatabaseFactory.getInstance().isPrincipalAllowed(sessionInfo.getUser(), authenticationSchemeSequence, true);
        if (principalAllowed){
              BrowserChecker checker = new BrowserChecker(request.getHeader("user-agent"));
              if (item.getResource().getResourceType().equals(
                      NetworkPlacePlugin.NETWORK_PLACE_RESOURCE_TYPE)
                      && CoreUtil
                              .isAuthenticationModuleInUse(WebDAVAuthenticationModule.MODULE_NAME)
                      && ( checker.isBrowserVersionExpression(BrowserChecker.BROWSER_IE, "+=5") ||
                          ( Property.getPropertyBoolean(
                              new SystemConfigKey("ui.allowOpenWebFolderInFirefox")) && checker.isBrowserVersion(BrowserChecker.BROWSER_FIREFOX, -1) ) ) ) {
                  return true;
              }
        }
    } catch (Exception e) {
    }
View Full Code Here

TOP

Related Classes of com.adito.core.BrowserChecker

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.