Package org.zkoss.spring.security.util

Examples of org.zkoss.spring.security.util.UrlMatcher


        RootBeanDefinition interceptor = getStandardFilter(pc, FilterSecurityInterceptor.class.getName());       

        Object accessDecisionManager = interceptor.getPropertyValues().getPropertyValue("accessDecisionManager").getValue();
        Object authenticationManager = interceptor.getPropertyValues().getPropertyValue("authenticationManager").getValue();

        final UrlMatcher matcher = createUrlMatcher(element);
        builder.addPropertyValue("accessDecisionManager", accessDecisionManager);
        builder.addPropertyValue("authenticationManager", authenticationManager);
        builder.addPropertyValue("objectDefinitionSource", new ZkEventProcessDefinitionSourceImpl(matcher, requestMap));
        pc.getRegistry().registerBeanDefinition(ZkBeanIds.ZK_EVENT_PROCESS_INTERCEPTOR, builder.getBeanDefinition());
    }
View Full Code Here


        if (!StringUtils.hasText(pathType)) {
            pathType = DEF_PATH_TYPE_ANT;
        }

        if (pathType.equals(OPT_PATH_TYPE_REGEX)) {
          final UrlMatcher matcher = new RegexUrlPathMatcher();
          ((RegexUrlPathMatcher)matcher).setRequiresLowerCaseUrl(false);
          return matcher;
        } else {
          final UrlMatcher matcher = new AntUrlPathMatcher();
          ((AntUrlPathMatcher)matcher).setRequiresLowerCaseUrl(false);
          return matcher;
        }
    }
View Full Code Here

    }

    protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {
        List interceptUrls = DomUtils.getChildElementsByTagName(element, ZkElements.INTERCEPT_EVENT);
       
        UrlMatcher matcher = ZkEventSecurityBeanDefinitionParser.createUrlMatcher(element);
       
        LinkedHashMap<EventProcessKey, Collection<ConfigAttribute>> requestMap =
          parseInterceptEventsForZkEventProcessMap(interceptUrls, parserContext);
        builder.addConstructorArgValue(matcher);
        builder.addConstructorArgValue(requestMap);
View Full Code Here

TOP

Related Classes of org.zkoss.spring.security.util.UrlMatcher

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.