Author: julien(a)jboss.com
Date: 2007-07-07 09:17:01 -0400 (Sat, 07 Jul 2007)
New Revision: 7690
Added:
branches/JBoss_Portal_Branch_2_6/identity/src/main/org/jboss/portal/identity/AnonymousRole.java
branches/JBoss_Portal_Branch_2_6/identity/src/main/org/jboss/portal/identity/AnonymousUser.java
Removed:
branches/JBoss_Portal_Branch_2_6/identity/src/main/org/jboss/portal/identity/AnnonymousRole.java
branches/JBoss_Portal_Branch_2_6/identity/src/main/org/jboss/portal/identity/AnnonymousUser.java
Modified:
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/AuthorizationProviderImpl.java
branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSAdminPortlet.java
Log:
JBPORTAL-1543:Wrong two n in AnnonymousUser and AnnonymousRole class name
Modified:
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/AuthorizationProviderImpl.java
===================================================================
---
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/AuthorizationProviderImpl.java 2007-07-06
18:57:51 UTC (rev 7689)
+++
branches/JBoss_Portal_Branch_2_6/cms/src/main/org/jboss/portal/cms/security/AuthorizationProviderImpl.java 2007-07-07
13:17:01 UTC (rev 7690)
@@ -36,7 +36,7 @@
import org.jboss.portal.identity.UserModule;
import org.jboss.portal.identity.Role;
import org.jboss.portal.identity.User;
-import org.jboss.portal.identity.AnnonymousRole;
+import org.jboss.portal.identity.AnonymousRole;
import org.jboss.portal.identity.ldap.LDAPUserModule;
import org.jboss.portal.jems.as.system.AbstractJBossService;
@@ -248,7 +248,7 @@
{
Role role = (Role)itr.next();
PermRoleAssoc cour = new PermRoleAssoc();
- if(!(role instanceof AnnonymousRole))
+ if(!(role instanceof AnonymousRole))
{
cour.setRoleId(role.getName());
}
Modified:
branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSAdminPortlet.java
===================================================================
---
branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSAdminPortlet.java 2007-07-06
18:57:51 UTC (rev 7689)
+++
branches/JBoss_Portal_Branch_2_6/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSAdminPortlet.java 2007-07-07
13:17:01 UTC (rev 7690)
@@ -64,7 +64,7 @@
import org.jboss.portal.cms.util.NodeUtil;
import org.jboss.portal.core.cms.command.StreamContentCommand;
import org.jboss.portal.core.controller.ControllerContext;
-import org.jboss.portal.identity.AnnonymousRole;
+import org.jboss.portal.identity.AnonymousRole;
import org.jboss.portal.identity.IdentityException;
import org.jboss.portal.identity.MembershipModule;
import org.jboss.portal.identity.Role;
@@ -1299,7 +1299,7 @@
}
else
{
- role = new AnnonymousRole();
+ role = new AnonymousRole();
}
rolesSet.add(role);
}
Deleted:
branches/JBoss_Portal_Branch_2_6/identity/src/main/org/jboss/portal/identity/AnnonymousRole.java
===================================================================
---
branches/JBoss_Portal_Branch_2_6/identity/src/main/org/jboss/portal/identity/AnnonymousRole.java 2007-07-06
18:57:51 UTC (rev 7689)
+++
branches/JBoss_Portal_Branch_2_6/identity/src/main/org/jboss/portal/identity/AnnonymousRole.java 2007-07-07
13:17:01 UTC (rev 7690)
@@ -1,50 +0,0 @@
-/*
-* JBoss, a division of Red Hat
-* Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.portal.identity;
-
-/**
- * @author <a href="mailto:boleslaw dot dawidowicz at jboss.org">Boleslaw
Dawidowicz</a>
- * @version $Revision: 1.1 $
- */
-public class AnnonymousRole implements Role
-{
-
- public Object getId()
- {
- return new Long(0);
- }
-
- public String getName()
- {
- return "StandardAnnonymousPortalRole";
- }
-
- public String getDisplayName()
- {
- return "Portal Annonymous Role";
- }
-
- public void setDisplayName(String name)
- {
- //nothing
- }
-}
Deleted:
branches/JBoss_Portal_Branch_2_6/identity/src/main/org/jboss/portal/identity/AnnonymousUser.java
===================================================================
---
branches/JBoss_Portal_Branch_2_6/identity/src/main/org/jboss/portal/identity/AnnonymousUser.java 2007-07-06
18:57:51 UTC (rev 7689)
+++
branches/JBoss_Portal_Branch_2_6/identity/src/main/org/jboss/portal/identity/AnnonymousUser.java 2007-07-07
13:17:01 UTC (rev 7690)
@@ -1,52 +0,0 @@
-/*
-* JBoss, a division of Red Hat
-* Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
-package org.jboss.portal.identity;
-
-import org.jboss.portal.identity.User;
-
-/**
- * @author <a href="mailto:boleslaw dot dawidowicz at jboss.org">Boleslaw
Dawidowicz</a>
- * @version $Revision: 1.1 $
- */
-public class AnnonymousUser implements User
-{
-
- public Object getId()
- {
- return new Long(0);
- }
-
- public String getUserName()
- {
- return "StandardAnnonymousPortalUser";
- }
-
- public void updatePassword(String password)
- {
- //nothing
- }
-
- public boolean validatePassword(String password)
- {
- return false; //To change body of implemented methods use File | Settings | File
Templates.
- }
-}
Copied:
branches/JBoss_Portal_Branch_2_6/identity/src/main/org/jboss/portal/identity/AnonymousRole.java
(from rev 7686,
branches/JBoss_Portal_Branch_2_6/identity/src/main/org/jboss/portal/identity/AnnonymousRole.java)
===================================================================
---
branches/JBoss_Portal_Branch_2_6/identity/src/main/org/jboss/portal/identity/AnonymousRole.java
(rev 0)
+++
branches/JBoss_Portal_Branch_2_6/identity/src/main/org/jboss/portal/identity/AnonymousRole.java 2007-07-07
13:17:01 UTC (rev 7690)
@@ -0,0 +1,50 @@
+/*
+* JBoss, a division of Red Hat
+* Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+*/
+package org.jboss.portal.identity;
+
+/**
+ * @author <a href="mailto:boleslaw dot dawidowicz at jboss.org">Boleslaw
Dawidowicz</a>
+ * @version $Revision: 1.1 $
+ */
+public class AnonymousRole implements Role
+{
+
+ public Object getId()
+ {
+ return new Long(0);
+ }
+
+ public String getName()
+ {
+ return "StandardAnonymousPortalRole";
+ }
+
+ public String getDisplayName()
+ {
+ return "Portal Anonymous Role";
+ }
+
+ public void setDisplayName(String name)
+ {
+ //nothing
+ }
+}
Copied:
branches/JBoss_Portal_Branch_2_6/identity/src/main/org/jboss/portal/identity/AnonymousUser.java
(from rev 7686,
branches/JBoss_Portal_Branch_2_6/identity/src/main/org/jboss/portal/identity/AnnonymousUser.java)
===================================================================
---
branches/JBoss_Portal_Branch_2_6/identity/src/main/org/jboss/portal/identity/AnonymousUser.java
(rev 0)
+++
branches/JBoss_Portal_Branch_2_6/identity/src/main/org/jboss/portal/identity/AnonymousUser.java 2007-07-07
13:17:01 UTC (rev 7690)
@@ -0,0 +1,50 @@
+/*
+* JBoss, a division of Red Hat
+* Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+*/
+package org.jboss.portal.identity;
+
+/**
+ * @author <a href="mailto:boleslaw dot dawidowicz at jboss.org">Boleslaw
Dawidowicz</a>
+ * @version $Revision: 1.1 $
+ */
+public class AnonymousUser implements User
+{
+
+ public Object getId()
+ {
+ return new Long(0);
+ }
+
+ public String getUserName()
+ {
+ return "StandardAnonymousPortalUser";
+ }
+
+ public void updatePassword(String password)
+ {
+ //nothing
+ }
+
+ public boolean validatePassword(String password)
+ {
+ return false;
+ }
+}