You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by me...@apache.org on 2013/01/11 19:04:31 UTC

svn commit: r1432199 - in /incubator/jspwiki/trunk/src/org/apache/wiki/auth: AuthorizationManager.java UserManager.java

Author: metskem
Date: Fri Jan 11 18:04:31 2013
New Revision: 1432199

URL: http://svn.apache.org/viewvc?rev=1432199&view=rev
Log:
typo's fixed (thanks to Wil van de Corput)

Modified:
    incubator/jspwiki/trunk/src/org/apache/wiki/auth/AuthorizationManager.java
    incubator/jspwiki/trunk/src/org/apache/wiki/auth/UserManager.java

Modified: incubator/jspwiki/trunk/src/org/apache/wiki/auth/AuthorizationManager.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/src/org/apache/wiki/auth/AuthorizationManager.java?rev=1432199&r1=1432198&r2=1432199&view=diff
==============================================================================
--- incubator/jspwiki/trunk/src/org/apache/wiki/auth/AuthorizationManager.java (original)
+++ incubator/jspwiki/trunk/src/org/apache/wiki/auth/AuthorizationManager.java Fri Jan 11 18:04:31 2013
@@ -134,7 +134,7 @@ public final class AuthorizationManager
      * Permission in the Acl: these will be role, group or user Principals, or
      * {@link org.apache.wiki.auth.acl.UnresolvedPrincipal}s (see below).
      * Then iterate through the Subject's Principal set and determine whether
-     * the user (Subject) posesses any one of these specified Roles or
+     * the user (Subject) possesses any one of these specified Roles or
      * Principals. The matching process delegates to
      * {@link #hasRoleOrPrincipal(WikiSession, Principal)}.
      * </ol>
@@ -263,7 +263,7 @@ public final class AuthorizationManager
      * supplied WikiSession contains a desired Role or GroupPrincipal.
      * The algorithm simply checks to see if the Subject possesses
      * the Role or GroupPrincipal it in its Principal set. Note that
-     * any user (anyonymous, asserted, authenticated) can possess
+     * any user (anonymous, asserted, authenticated) can possess
      * a built-in role. But a user <em>must</em> be authenticated to
      * possess a role other than one of the built-in ones.
      * We do this to prevent privilege escalation.</p>
@@ -275,7 +275,7 @@ public final class AuthorizationManager
      * @param session the current wiki session, which must be non-null. If null,
      *            the result of this method always returns <code>false</code>
      * @param principal the Principal (role or group principal) to look
-     *            for, which must be non-<cor>null</code>. If <code>null</code>,
+     *            for, which must be non-<code>null</code>. If <code>null</code>,
      *            the result of this method always returns <code>false</code>
      * @return <code>true</code> if the Subject supplied with the WikiContext
      *         posesses the Role or GroupPrincipal, <code>false</code> otherwise
@@ -294,7 +294,7 @@ public final class AuthorizationManager
             return session.hasPrincipal( principal );
         }
 
-        // Only authenticated users can posssess groups or custom roles
+        // Only authenticated users can possess groups or custom roles
         if ( session.isAuthenticated() && AuthenticationManager.isRolePrincipal( principal ) )
         {
             return session.hasPrincipal( principal );
@@ -534,7 +534,7 @@ public final class AuthorizationManager
      *       is absent (or present).
      * @param session the WikiSession whose permission status is being queried
      * @param permission the Permission the Subject must possess
-     * @return <code>true</code> if the Subject posesses the permission,
+     * @return <code>true</code> if the Subject possesses the permission,
      *         <code>false</code> otherwise
      */
     protected final boolean checkStaticPermission( final WikiSession session, final Permission permission )

Modified: incubator/jspwiki/trunk/src/org/apache/wiki/auth/UserManager.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/src/org/apache/wiki/auth/UserManager.java?rev=1432199&r1=1432198&r2=1432199&view=diff
==============================================================================
--- incubator/jspwiki/trunk/src/org/apache/wiki/auth/UserManager.java (original)
+++ incubator/jspwiki/trunk/src/org/apache/wiki/auth/UserManager.java Fri Jan 11 18:04:31 2013
@@ -258,7 +258,7 @@ public final class UserManager
      * the user will be automatically be logged in.
      * </p>
      * <p>
-     * When the user's profile is saved succcessfully, this method fires a
+     * When the user's profile is saved successfully, this method fires a
      * {@link WikiSecurityEvent#PROFILE_SAVE} event with the WikiSession as the
      * source and the UserProfile as target. For existing profiles, if the
      * user's full name changes, this method also fires a "name changed"
@@ -414,7 +414,7 @@ public final class UserManager
      * <code>email</code> or <code>password</code> parameter values differ
      * from those in the existing profile, the passed parameters override the
      * old values.</li> <li>For new profiles, the user-supplied
-     * <code>fullname</code parameter is always
+     * <code>fullname</code> parameter is always
      * used; for existing profiles the existing value is used, and whatever
      * value the user supplied is discarded. The wiki name is automatically
      * computed by taking the full name and extracting all whitespace.</li>
@@ -579,7 +579,7 @@ public final class UserManager
 
     /**
      * This is a database that gets used if nothing else is available. It does
-     * nothing of note - it just mostly thorws NoSuchPrincipalExceptions if
+     * nothing of note - it just mostly throws NoSuchPrincipalExceptions if
      * someone tries to log in.
      */
     public static class DummyUserDatabase extends AbstractUserDatabase