public class RMMethodSecurityInterceptor
extends org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityInterceptor
Provides a way to record information about the capabilities being executed and report when an access denied exception is thrown.
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
LOGGER
logger
|
| Constructor and Description |
|---|
RMMethodSecurityInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addMessage(String message)
Add a message to be displayed in the error report.
|
static void |
addMessage(String message,
Object... params) |
protected net.sf.acegisecurity.intercept.InterceptorStatusToken |
beforeInvocation(Object object) |
String |
getFailureReport()
Gets the failure report for the currently recorded capabilities.
|
Object |
invoke(org.aopalliance.intercept.MethodInvocation mi) |
static void |
isRMSecurityChecked(boolean newValue)
Indicates whether this is a RM security check or not
|
static void |
reportCapabilityCondition(String name,
String conditionName,
boolean expected,
boolean actual)
Report capability condition.
|
static void |
reportCapabilityStatus(String name,
int status)
Report capability status.
|
pregetObjectDefinitionSource, getSecureObjectClass, obtainObjectDefinitionSource, setObjectDefinitionSourceafterInvocation, afterPropertiesSet, getAccessDecisionManager, getAfterInvocationManager, getAuthenticationManager, getRunAsManager, isValidateConfigAttributes, setAccessDecisionManager, setAfterInvocationManager, setApplicationContext, setAuthenticationManager, setRunAsManager, setValidateConfigAttributespublic static void isRMSecurityChecked(boolean newValue)
newValue - true if RM security check, false otherwisepublic static void addMessage(String message)
message - error messagepublic static void reportCapabilityStatus(String name, int status)
name - capability namestatus - capability statuspublic static void reportCapabilityCondition(String name, String conditionName, boolean expected, boolean actual)
name - capability nameconditionName - capability condition nameexpected - expected valueactual - actual valuepublic String getFailureReport()
String capability error reportprotected net.sf.acegisecurity.intercept.InterceptorStatusToken beforeInvocation(Object object)
beforeInvocation in class net.sf.acegisecurity.intercept.AbstractSecurityInterceptorAbstractSecurityInterceptor.beforeInvocation(java.lang.Object)public Object invoke(org.aopalliance.intercept.MethodInvocation mi) throws Throwable
invoke in interface org.aopalliance.intercept.MethodInterceptorinvoke in class net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptorThrowableMethodSecurityInterceptor.invoke(org.aopalliance.intercept.MethodInvocation)Copyright © 2005–2018 Alfresco Software. All rights reserved.