You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ca...@apache.org on 2007/05/16 10:31:24 UTC

svn commit: r538475 - /myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/security/SecurityContext.java

Author: cagatay
Date: Wed May 16 01:31:23 2007
New Revision: 538475

URL: http://svn.apache.org/viewvc?view=rev&rev=538475
Log:
Fixed API access levels

Modified:
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/security/SecurityContext.java

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/security/SecurityContext.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/security/SecurityContext.java?view=diff&rev=538475&r1=538474&r2=538475
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/security/SecurityContext.java (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/security/SecurityContext.java Wed May 16 01:31:23 2007
@@ -39,11 +39,11 @@
 	
 	public abstract boolean ifGranted(String role);
 	
-	public boolean ifSingleGranted() {
+	boolean ifSingleGranted() {
 		return ifGranted(roles[0]);
 	}
 	
-	public boolean ifAllGranted() {
+	boolean ifAllGranted() {
 		boolean isAuthorized = false;
 		for (int i = 0; i < roles.length; i++) {
 			String role = roles[i];
@@ -57,7 +57,7 @@
 		return isAuthorized;
 	}
 	
-	public boolean ifAnyGranted() {
+	boolean ifAnyGranted() {
 		boolean isAuthorized = false;
 		for (int i = 0; i < roles.length; i++) {
 			String role = roles[i];
@@ -69,7 +69,7 @@
 		return isAuthorized;
 	}
 	
-	public boolean ifNotGranted() {
+	boolean ifNotGranted() {
 		boolean isAuthorized = false;
 		for (int i = 0; i < roles.length; i++) {
 			String role = roles[i];
@@ -83,21 +83,21 @@
 		return isAuthorized;
 	}
 	
-	public boolean inAuthMode() {
+	boolean inAuthMode() {
 		return authMode != AUTH_MODE_NONE;
 	}
 	
-	public int getAuthMode() {
+	int getAuthMode() {
 		return authMode;
 	}
-	public void setAuthMode(int authMode) {
+	void setAuthMode(int authMode) {
 		this.authMode = authMode;
 	}
 
-	public String[] getRoles() {
+	String[] getRoles() {
 		return roles;
 	}
-	public void setRoles(String[] roles) {
+	void setRoles(String[] roles) {
 		this.roles = roles;
 	}
-}
+}
\ No newline at end of file