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/02/18 16:51:16 UTC

cvs commit: jakarta-turbine-2/src/java/org/apache/turbine/services/security TurbineSecurity.java

henning     2003/02/18 07:51:16

  Modified:    src/java/org/apache/turbine/services/security
                        TurbineSecurity.java
  Log:
  Add methods to be able to retrieve Group, Permission and Role Object classes
  from the TurbineSecurity Service. These were already available in the
  interface and the Base class but the facade methods were missing.
  
  Revision  Changes    Path
  1.11      +47 -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.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- TurbineSecurity.java	18 Feb 2003 15:48:44 -0000	1.10
  +++ TurbineSecurity.java	18 Feb 2003 15:51:16 -0000	1.11
  @@ -152,6 +152,10 @@
           return getService().checkPassword(checkpw, encpw);
       }
   
  +    /*-----------------------------------------------------------------------
  +      Getting Object Classes
  +      -----------------------------------------------------------------------*/
  +
       /**
        * Returns the Class object for the implementation of User interface
        * used by the system.
  @@ -164,6 +168,48 @@
               throws UnknownEntityException
       {
           return getService().getUserClass();
  +    }
  +
  +    /**
  +     * Returns the Class object for the implementation of Group interface
  +     * used by the system.
  +     *
  +     * @return the implementation of Group interface used by the system.
  +     * @throws UnknownEntityException if the system's implementation of Group
  +     *         interface could not be determined.
  +     */
  +    public static Class getGroupClass()
  +        throws UnknownEntityException
  +    {
  +        return getService().getGroupClass();
  +    }
  +
  +    /**
  +     * Returns the Class object for the implementation of Permission interface
  +     * used by the system.
  +     *
  +     * @return the implementation of Permission interface used by the system.
  +     * @throws UnknownEntityException if the system's implementation of Permission
  +     *         interface could not be determined.
  +     */
  +    public static Class getPermissionClass()
  +        throws UnknownEntityException
  +    {
  +        return getService().getPermissionClass();
  +    }
  +
  +    /**
  +     * Returns the Class object for the implementation of Role interface
  +     * used by the system.
  +     *
  +     * @return the implementation of Role interface used by the system.
  +     * @throws UnknownEntityException if the system's implementation of Role
  +     *         interface could not be determined.
  +     */
  +    public static Class getRoleClass()
  +        throws UnknownEntityException
  +    {
  +        return getService().getRoleClass();
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org