Commits

tmjee  committed 55e3a7b

- added getter/setter for denyMethodExecution

Issue number:
Obtained from:
Submitted by:
Reviewed by:

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@1013e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits 52dbf7b

Comments (0)

Files changed (1)

File src/java/com/opensymphony/xwork/util/OgnlContextState.java

 	public static boolean isGettingByKeyProperty(Map context) {
 		return getBooleanProperty(GETTING_BY_KEY_PROPERTY, context);
 	}
+	
+	public static void setDenyMethodExecution(Map context, boolean denyMethodExecution) {
+		setBooleanValue(XWorkMethodAccessor.DENY_METHOD_EXECUTION, context, denyMethodExecution);
+	}
+	
+	public static boolean isDenyMethodExecution(Map context) {
+		return getBooleanProperty(XWorkMethodAccessor.DENY_METHOD_EXECUTION, context);
+	}
 
 	public static void setGettingByKeyProperty(Map context, boolean gettingByKeyProperty) {
 		setBooleanValue(GETTING_BY_KEY_PROPERTY, context, gettingByKeyProperty);