Class TeamCityMethodSecurityInterceptor

  • All Implemented Interfaces:
    org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationEventPublisherAware, org.springframework.context.MessageSourceAware

    public class TeamCityMethodSecurityInterceptor
    extends org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor
    Author:
    Pavel.Sher Date: 08.08.2007
    • Field Summary

      • Fields inherited from class org.springframework.security.access.intercept.AbstractSecurityInterceptor

        logger, messages
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.springframework.security.access.intercept.InterceptorStatusToken beforeInvocation​(Object object)  
      Object invoke​(org.aopalliance.intercept.MethodInvocation mi)
      This method should be used to enforce security on a MethodInvocation.
      void setAccessDecisionManager​(org.springframework.security.access.AccessDecisionManager accessDecisionManager)  
      • Methods inherited from class org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor

        getSecureObjectClass, getSecurityMetadataSource, obtainSecurityMetadataSource, setSecurityMetadataSource
      • Methods inherited from class org.springframework.security.access.intercept.AbstractSecurityInterceptor

        afterInvocation, afterPropertiesSet, finallyInvocation, getAccessDecisionManager, getAfterInvocationManager, getAuthenticationManager, getRunAsManager, isAlwaysReauthenticate, isRejectPublicInvocations, isValidateConfigAttributes, setAfterInvocationManager, setAlwaysReauthenticate, setApplicationEventPublisher, setAuthenticationManager, setMessageSource, setPublishAuthorizationSuccess, setRejectPublicInvocations, setRunAsManager, setSecurityContextHolderStrategy, setValidateConfigAttributes
    • Constructor Detail

      • TeamCityMethodSecurityInterceptor

        public TeamCityMethodSecurityInterceptor()
    • Method Detail

      • setAccessDecisionManager

        public void setAccessDecisionManager​(org.springframework.security.access.AccessDecisionManager accessDecisionManager)
        Overrides:
        setAccessDecisionManager in class org.springframework.security.access.intercept.AbstractSecurityInterceptor
      • invoke

        public Object invoke​(org.aopalliance.intercept.MethodInvocation mi)
                      throws Throwable
        This method should be used to enforce security on a MethodInvocation.
        Specified by:
        invoke in interface org.aopalliance.intercept.MethodInterceptor
        Overrides:
        invoke in class org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor
        Parameters:
        mi - The method being invoked which requires a security decision
        Returns:
        The returned value from the method invocation
        Throws:
        Throwable - if any error occurs
      • beforeInvocation

        protected org.springframework.security.access.intercept.InterceptorStatusToken beforeInvocation​(Object object)
        Overrides:
        beforeInvocation in class org.springframework.security.access.intercept.AbstractSecurityInterceptor