You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by he...@apache.org on 2003/04/11 14:05:10 UTC
cvs commit: jakarta-turbine-2/src/java/org/apache/turbine/services/security BaseSecurityService.java SecurityService.java TurbineSecurity.java
henning 2003/04/11 05:05:09
Modified: src/java/org/apache/turbine/util/security GroupSet.java
PermissionSet.java RoleSet.java
src/java/org/apache/turbine/services/security
BaseSecurityService.java SecurityService.java
TurbineSecurity.java
Log:
Deprecation of getGroup/getRole/getPermission as discussed.
Revision Changes Path
1.10 +2 -1 jakarta-turbine-2/src/java/org/apache/turbine/util/security/GroupSet.java
Index: GroupSet.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/util/security/GroupSet.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- GroupSet.java 8 Apr 2003 13:15:32 -0000 1.9
+++ GroupSet.java 11 Apr 2003 12:05:09 -0000 1.10
@@ -185,6 +185,7 @@
* @param groupName Name of Group.
* @return Group if argument matched a Group in this
* GroupSet; null if no match.
+ * @deprecated Use <a href="#getGroupByName">getGroupByName</a> instead.
*/
public Group getGroup(String groupName)
{
1.10 +2 -1 jakarta-turbine-2/src/java/org/apache/turbine/util/security/PermissionSet.java
Index: PermissionSet.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/util/security/PermissionSet.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- PermissionSet.java 8 Apr 2003 13:15:32 -0000 1.9
+++ PermissionSet.java 11 Apr 2003 12:05:09 -0000 1.10
@@ -187,6 +187,7 @@
* @param permissionName Name of Permission.
* @return Permission if argument matched a Permission in this
* PermissionSet; null if no match.
+ * @deprecated Use <a href="#getPermissionByName">getPermissionByName</a> instead.
*/
public Permission getPermission(String permissionName)
{
1.9 +2 -1 jakarta-turbine-2/src/java/org/apache/turbine/util/security/RoleSet.java
Index: RoleSet.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/util/security/RoleSet.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- RoleSet.java 8 Apr 2003 13:15:32 -0000 1.8
+++ RoleSet.java 11 Apr 2003 12:05:09 -0000 1.9
@@ -185,6 +185,7 @@
* @param roleName Name of Role.
* @return Role if argument matched a Role in this
* RoleSet; null if no match.
+ * @deprecated Use <a href="#getRoleByName">getRoleByName</a> instead.
*/
public Role getRole(String roleName)
{
1.30 +4 -1 jakarta-turbine-2/src/java/org/apache/turbine/services/security/BaseSecurityService.java
Index: BaseSecurityService.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/services/security/BaseSecurityService.java,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- BaseSecurityService.java 11 Apr 2003 11:59:59 -0000 1.29
+++ BaseSecurityService.java 11 Apr 2003 12:05:09 -0000 1.30
@@ -1014,6 +1014,7 @@
* @throws DataBackendException if there was an error accessing the
* data backend.
* @throws UnknownEntityException if the group does not exist.
+ * @deprecated Use <a href="#getGroupByName">getGroupByName</a> instead.
*/
public Group getGroup(String name)
throws DataBackendException, UnknownEntityException
@@ -1074,6 +1075,7 @@
* @throws DataBackendException if there was an error accessing the
* data backend.
* @throws UnknownEntityException if the role does not exist.
+ * @deprecated Use <a href="#getRoleByName">getRoleByName</a> instead.
*/
public Role getRole(String name)
throws DataBackendException, UnknownEntityException
@@ -1137,6 +1139,7 @@
* @throws DataBackendException if there was an error accessing the
* data backend.
* @throws UnknownEntityException if the permission does not exist.
+ * @deprecated Use <a href="#getPermissionByName">getPermissionByName</a> instead.
*/
public Permission getPermission(String name)
throws DataBackendException, UnknownEntityException
1.21 +4 -1 jakarta-turbine-2/src/java/org/apache/turbine/services/security/SecurityService.java
Index: SecurityService.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/services/security/SecurityService.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- SecurityService.java 11 Apr 2003 11:59:59 -0000 1.20
+++ SecurityService.java 11 Apr 2003 12:05:09 -0000 1.21
@@ -782,6 +782,7 @@
* @throws DataBackendException if there was an error accessing the data
* backend.
* @throws UnknownEntityException if the group does not exist.
+ * @deprecated Use <a href="#getGroupByName">getGroupByName</a> instead.
*/
Group getGroup(String name)
throws DataBackendException, UnknownEntityException;
@@ -822,6 +823,7 @@
* @throws DataBackendException if there was an error accessing the data
* backend.
* @throws UnknownEntityException if the role does not exist.
+ * @deprecated Use <a href="#getRoleByName">getRoleByName</a> instead.
*/
Role getRole(String name)
throws DataBackendException, UnknownEntityException;
@@ -862,6 +864,7 @@
* @throws DataBackendException if there was an error accessing the data
* backend.
* @throws UnknownEntityException if the permission does not exist.
+ * @deprecated Use <a href="#getPermissionByName">getPermissionByName</a> instead.
*/
Permission getPermission(String name)
throws DataBackendException, UnknownEntityException;
1.19 +4 -1 jakarta-turbine-2/src/java/org/apache/turbine/services/security/TurbineSecurity.java
Index: TurbineSecurity.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/services/security/TurbineSecurity.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- TurbineSecurity.java 10 Apr 2003 16:20:19 -0000 1.18
+++ TurbineSecurity.java 11 Apr 2003 12:05:09 -0000 1.19
@@ -681,6 +681,7 @@
* @throws DataBackendException if there was an error accessing the data
* backend.
* @throws UnknownEntityException if the Group is not present.
+ * @deprecated Use <a href="#getGroupByName">getGroupByName</a> instead.
*/
public static Group getGroup(String groupName)
throws DataBackendException, UnknownEntityException
@@ -836,6 +837,7 @@
* @throws DataBackendException if there was an error accessing the data
* backend.
* @throws UnknownEntityException if the Role is not present.
+ * @deprecated Use <a href="#getRoleByName">getRoleByName</a> instead.
*/
public static Role getRole(String roleName)
throws DataBackendException, UnknownEntityException
@@ -885,6 +887,7 @@
* @throws DataBackendException if there was an error accessing the data
* backend.
* @throws UnknownEntityException if the Permission is not present.
+ * @deprecated Use <a href="#getPermissionByName">getPermissionByName</a> instead.
*/
public static Permission getPermission(String permissionName)
throws DataBackendException, UnknownEntityException
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org