You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by ep...@apache.org on 2003/08/25 03:01:24 UTC

cvs commit: jakarta-turbine-fulcrum/security/src/java/org/apache/fulcrum/security/model/simple/manager SimpleRoleManager.java

epugh       2003/08/24 18:01:24

  Modified:    security/src/java/org/apache/fulcrum/security/model/simple/manager
                        SimpleRoleManager.java
  Added:       security/src/java/org/apache/fulcrum/security/model/turbine/manager
                        TurbineRoleManager.java
  Log:
  Cleaned up api a bit
  
  Revision  Changes    Path
  1.1                  jakarta-turbine-fulcrum/security/src/java/org/apache/fulcrum/security/model/turbine/manager/TurbineRoleManager.java
  
  Index: TurbineRoleManager.java
  ===================================================================
  package org.apache.fulcrum.security.model.turbine.manager;
  import org.apache.fulcrum.security.RoleManager;
  import org.apache.fulcrum.security.entity.Permission;
  import org.apache.fulcrum.security.entity.Role;
  import org.apache.fulcrum.security.util.DataBackendException;
  import org.apache.fulcrum.security.util.UnknownEntityException;
  /**
   * @author Eric Pugh
   *
   */
  public interface TurbineRoleManager extends RoleManager
  {
      /**
       * Puts a permission in a role
       *
       * This method is used when adding a permission to a role
       *
       * @param user the User.
       * @throws DataBackendException if there was an error accessing the data
       *         backend.
       * @throws UnknownEntityException if the account is not present.
       */
      void grant(Role role, Permission permission) throws DataBackendException, UnknownEntityException;
      /**
  	 * Removes a permission from a role
  	 *
  	 *
  	 * @param role the Role.
  	 * @throws DataBackendException if there was an error accessing the data
  	 *         backend.
  	 * @throws UnknownEntityException if the user or group is not present.
  	 */
      void revoke(Role role, Permission permission) throws DataBackendException, UnknownEntityException;
  
  	    
  }
  
  
  
  1.2       +2 -0      jakarta-turbine-fulcrum/security/src/java/org/apache/fulcrum/security/model/simple/manager/SimpleRoleManager.java
  
  Index: SimpleRoleManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-fulcrum/security/src/java/org/apache/fulcrum/security/model/simple/manager/SimpleRoleManager.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SimpleRoleManager.java	23 Aug 2003 15:26:55 -0000	1.1
  +++ SimpleRoleManager.java	25 Aug 2003 01:01:24 -0000	1.2
  @@ -31,4 +31,6 @@
   	 * @throws UnknownEntityException if the user or group is not present.
   	 */
       void revoke(Role role, Permission permission) throws DataBackendException, UnknownEntityException;
  +
  +	    
   }