[seam-commits] Seam SVN: r12399 - in modules/security/trunk/core/src/main/java/org/jboss/seam/security/management: action and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Apr 6 09:11:46 EDT 2010


Author: shane.bryzak at jboss.com
Date: 2010-04-06 09:11:46 -0400 (Tue, 06 Apr 2010)
New Revision: 12399

Modified:
   modules/security/trunk/core/src/main/java/org/jboss/seam/security/management/IdentityManager.java
   modules/security/trunk/core/src/main/java/org/jboss/seam/security/management/action/RoleAction.java
   modules/security/trunk/core/src/main/java/org/jboss/seam/security/management/action/UserAction.java
   modules/security/trunk/core/src/main/java/org/jboss/seam/security/management/action/UserSearch.java
Log:
rename list* methods in IdentityManager with get* to make more EL friendly


Modified: modules/security/trunk/core/src/main/java/org/jboss/seam/security/management/IdentityManager.java
===================================================================
--- modules/security/trunk/core/src/main/java/org/jboss/seam/security/management/IdentityManager.java	2010-04-05 21:45:25 UTC (rev 12398)
+++ modules/security/trunk/core/src/main/java/org/jboss/seam/security/management/IdentityManager.java	2010-04-06 13:11:46 UTC (rev 12399)
@@ -152,7 +152,7 @@
       return roleIdentityStore.roleExists(name);
    }
    
-   public List<String> listUsers()
+   public List<String> getUsers()
    {
       identity.checkPermission(USER_PERMISSION_NAME, PERMISSION_READ);
       List<String> users = identityStore.listUsers();
@@ -166,7 +166,7 @@
       return users;
    }
    
-   public List<String> listUsers(String filter)
+   public List<String> getUsers(String filter)
    {
       identity.checkPermission(USER_PERMISSION_NAME, PERMISSION_READ);
       List<String> users = identityStore.listUsers(filter);
@@ -180,7 +180,7 @@
       return users;
    }
    
-   public List<String> listRoles()
+   public List<String> getRoles()
    {
       identity.checkPermission(ROLE_PERMISSION_NAME, PERMISSION_READ);
       List<String> roles = roleIdentityStore.listRoles();
@@ -194,7 +194,7 @@
       return roles;
    }
    
-   public List<String> listGrantableRoles()
+   public List<String> getGrantableRoles()
    {
       List<String> roles = roleIdentityStore.listGrantableRoles();
       

Modified: modules/security/trunk/core/src/main/java/org/jboss/seam/security/management/action/RoleAction.java
===================================================================
--- modules/security/trunk/core/src/main/java/org/jboss/seam/security/management/action/RoleAction.java	2010-04-05 21:45:25 UTC (rev 12398)
+++ modules/security/trunk/core/src/main/java/org/jboss/seam/security/management/action/RoleAction.java	2010-04-06 13:11:46 UTC (rev 12399)
@@ -101,7 +101,7 @@
    
    public List<String> getAssignableRoles()
    {
-      List<String> roles = identityManager.listGrantableRoles();
+      List<String> roles = identityManager.getGrantableRoles();
       roles.remove(role);
       return roles;
    }

Modified: modules/security/trunk/core/src/main/java/org/jboss/seam/security/management/action/UserAction.java
===================================================================
--- modules/security/trunk/core/src/main/java/org/jboss/seam/security/management/action/UserAction.java	2010-04-05 21:45:25 UTC (rev 12398)
+++ modules/security/trunk/core/src/main/java/org/jboss/seam/security/management/action/UserAction.java	2010-04-06 13:11:46 UTC (rev 12399)
@@ -20,6 +20,8 @@
 @ConversationScoped
 public class UserAction implements Serializable
 {
+   private static final long serialVersionUID = 5820385095080724087L;
+   
    private String firstname;
    private String lastname;
    private String username;

Modified: modules/security/trunk/core/src/main/java/org/jboss/seam/security/management/action/UserSearch.java
===================================================================
--- modules/security/trunk/core/src/main/java/org/jboss/seam/security/management/action/UserSearch.java	2010-04-05 21:45:25 UTC (rev 12398)
+++ modules/security/trunk/core/src/main/java/org/jboss/seam/security/management/action/UserSearch.java	2010-04-06 13:11:46 UTC (rev 12399)
@@ -24,7 +24,7 @@
    
    public void loadUsers()
    {
-      users = identityManager.listUsers();
+      users = identityManager.getUsers();
    }
    
    public String getUserRoles(String username)



More information about the seam-commits mailing list