public class MethodSecurityBean<R> extends Object implements org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
MethodSecurityBean()
Default constructor.
|
MethodSecurityBean(MethodSecurityInterceptor methodSecurityInterceptor,
Class<?> service,
String methodName)
Helper constructor to supply necessary values
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
Collection<R> |
applyPermissions(Collection<R> toCheck,
net.sf.acegisecurity.Authentication authentication,
int targetResultCount) |
Collection<R> |
applyPermissions(Collection<R> toCheck,
net.sf.acegisecurity.Authentication authentication,
int targetResultCount,
long cutOffAfterTimeMs,
int cutOffAfterCount) |
void |
setMethodName(String methodName) |
void |
setMethodSecurityInterceptor(org.aopalliance.intercept.MethodInterceptor methodInterceptor) |
void |
setService(Class<?> service) |
String |
toString() |
public MethodSecurityBean()
public MethodSecurityBean(MethodSecurityInterceptor methodSecurityInterceptor, Class<?> service, String methodName)
public void setMethodSecurityInterceptor(org.aopalliance.intercept.MethodInterceptor methodInterceptor)
methodInterceptor - an method interceptor, ideally a MethodSecurityInterceptorpublic void setService(Class<?> service)
public void setMethodName(String methodName)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic Collection<R> applyPermissions(Collection<R> toCheck, net.sf.acegisecurity.Authentication authentication, int targetResultCount)
public Collection<R> applyPermissions(Collection<R> toCheck, net.sf.acegisecurity.Authentication authentication, int targetResultCount, long cutOffAfterTimeMs, int cutOffAfterCount)
Copyright © 2005–2018 Alfresco Software. All rights reserved.