epugh 2003/08/24 12:39:57 Modified: security/src/java/org/apache/fulcrum/security PermissionManager.java RoleManager.java GroupManager.java Log: cleanup API for managers.. Revision Changes Path 1.2 +3 -12 jakarta-turbine-fulcrum/security/src/java/org/apache/fulcrum/security/PermissionManager.java Index: PermissionManager.java =================================================================== RCS file: /home/cvs/jakarta-turbine-fulcrum/security/src/java/org/apache/fulcrum/security/PermissionManager.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- PermissionManager.java 23 Aug 2003 03:56:24 -0000 1.1 +++ PermissionManager.java 24 Aug 2003 19:39:57 -0000 1.2 @@ -130,7 +130,7 @@ * @exception DataBackendException if there is a problem accessing the * storage. */ - Permission getPermissionById(int id) throws DataBackendException, UnknownEntityException; + Permission getPermissionById(long id) throws DataBackendException, UnknownEntityException; /** * Retrieves all permissions defined in the system. * @@ -139,16 +139,7 @@ * backend. */ PermissionSet getAllPermissions() throws DataBackendException; - /** - * Stores Permission's attributes. The Permission is required to exist in - * the system. - * - * @param permission The Permission to be stored. - * @throws DataBackendException if there was an error accessing the data - * backend. - * @throws UnknownEntityException if the permission does not exist. - */ - void savePermission(Permission permission) throws DataBackendException, UnknownEntityException; + /** * Creates a new permission with specified attributes. * 1.2 +3 -11 jakarta-turbine-fulcrum/security/src/java/org/apache/fulcrum/security/RoleManager.java Index: RoleManager.java =================================================================== RCS file: /home/cvs/jakarta-turbine-fulcrum/security/src/java/org/apache/fulcrum/security/RoleManager.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- RoleManager.java 23 Aug 2003 03:56:24 -0000 1.1 +++ RoleManager.java 24 Aug 2003 19:39:57 -0000 1.2 @@ -129,7 +129,7 @@ * @exception DataBackendException if there is a problem accessing the * storage. */ - Role getRoleById(int id) throws DataBackendException, UnknownEntityException; + Role getRoleById(long id) throws DataBackendException, UnknownEntityException; /** * Retrieves all roles defined in the system. * @@ -138,15 +138,7 @@ * backend. */ RoleSet getAllRoles() throws DataBackendException; - /** - * Stores Role's attributes. The Roles is required to exist in the system. - * - * @param role The Role to be stored. - * @throws DataBackendException if there was an error accessing the data - * backend. - * @throws UnknownEntityException if the role does not exist. - */ - void saveRole(Role role) throws DataBackendException, UnknownEntityException; + /** * Creates a new role with specified attributes. * 1.2 +3 -12 jakarta-turbine-fulcrum/security/src/java/org/apache/fulcrum/security/GroupManager.java Index: GroupManager.java =================================================================== RCS file: /home/cvs/jakarta-turbine-fulcrum/security/src/java/org/apache/fulcrum/security/GroupManager.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- GroupManager.java 23 Aug 2003 03:56:24 -0000 1.1 +++ GroupManager.java 24 Aug 2003 19:39:57 -0000 1.2 @@ -121,18 +121,9 @@ * @exception DataBackendException if there is a problem accessing the * storage. */ - Group getGroupById(int id) throws DataBackendException, UnknownEntityException; + Group getGroupById(long id) throws DataBackendException, UnknownEntityException; - /** - * Stores Group's attributes. The Groups is required to exist in the system. - * - * @param group The Group to be stored. - * @throws DataBackendException if there was an error accessing the data - * backend. - * @throws UnknownEntityException if the group does not exist. - */ - void saveGroup(Group group) - throws DataBackendException, UnknownEntityException; + /** * Renames an existing Group.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]