org.alfresco.repo.security.permissions.impl.acegi
Class MethodSecurityBean
java.lang.Object
org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityBean
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean
public class MethodSecurityBean
- extends java.lang.Object
- implements org.springframework.beans.factory.InitializingBean
Support to simulate interceptor-driven permissions.
- Since:
- 4.0
Method Summary |
void |
afterPropertiesSet()
|
java.util.Collection |
applyPermissions(java.util.Collection toCheck,
net.sf.acegisecurity.Authentication authentication,
int targetResultCount)
|
java.util.Collection |
applyPermissions(java.util.Collection toCheck,
net.sf.acegisecurity.Authentication authentication,
int targetResultCount,
long cutOffAfterTimeMs,
int cutOffAfterCount)
|
void |
setMethodName(java.lang.String methodName)
|
void |
setMethodSecurityInterceptor(org.aopalliance.intercept.MethodInterceptor methodInterceptor)
|
void |
setService(java.lang.Class service)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
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:
toString
in class java.lang.Object
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
applyPermissions
public java.util.Collection applyPermissions(java.util.Collection toCheck,
net.sf.acegisecurity.Authentication authentication,
int targetResultCount)
- See Also:
PermissionCheckCollection.PermissionCheckCollectionMixin.create(Collection, int, long, int)
applyPermissions
public java.util.Collection applyPermissions(java.util.Collection toCheck,
net.sf.acegisecurity.Authentication authentication,
int targetResultCount,
long cutOffAfterTimeMs,
int cutOffAfterCount)
- See Also:
PermissionCheckCollection.PermissionCheckCollectionMixin.create(Collection, int, long, int)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.