Class MethodSecurityBean<R>
- java.lang.Object
-
- org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityBean<R>
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
public class MethodSecurityBean<R> extends java.lang.Object implements org.springframework.beans.factory.InitializingBeanSupport to simulate interceptor-driven permissions.- Since:
- 4.0
- Author:
- janv, Derek Hulley
-
-
Constructor Summary
Constructors Constructor Description MethodSecurityBean()Default constructor.MethodSecurityBean(MethodSecurityInterceptor methodSecurityInterceptor, java.lang.Class<?> service, java.lang.String methodName)Helper constructor to supply necessary values
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()java.util.Collection<R>applyPermissions(java.util.Collection<R> toCheck, net.sf.acegisecurity.Authentication authentication, int targetResultCount)java.util.Collection<R>applyPermissions(java.util.Collection<R> toCheck, net.sf.acegisecurity.Authentication authentication, int targetResultCount, long cutOffAfterTimeMs, int cutOffAfterCount)voidsetMethodName(java.lang.String methodName)voidsetMethodSecurityInterceptor(org.aopalliance.intercept.MethodInterceptor methodInterceptor)voidsetService(java.lang.Class<?> service)java.lang.StringtoString()
-
-
-
Constructor Detail
-
MethodSecurityBean
public MethodSecurityBean()
Default constructor. Use setter methods for initialization.
-
MethodSecurityBean
public MethodSecurityBean(MethodSecurityInterceptor methodSecurityInterceptor, java.lang.Class<?> service, java.lang.String methodName)
Helper constructor to supply necessary values
-
-
Method Detail
-
setMethodSecurityInterceptor
public void setMethodSecurityInterceptor(org.aopalliance.intercept.MethodInterceptor methodInterceptor)
- Parameters:
methodInterceptor- an method interceptor, ideally a MethodSecurityInterceptor
-
setService
public void setService(java.lang.Class<?> service)
-
setMethodName
public void setMethodName(java.lang.String methodName)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
java.lang.Exception
-
applyPermissions
public java.util.Collection<R> applyPermissions(java.util.Collection<R> toCheck, net.sf.acegisecurity.Authentication authentication, int targetResultCount)
-
-