patch applied.

On Wed, 2002-06-19 at 09:59, Stephen Haberman wrote:
> The TurbineSecurity has createGroup/createPermission convenience
> methods, however it doesn't follow up and also have a createRole
> convenience method.
> 
> The attached patch adds the simple, but handy, createRole convenience
> method in the same style of the createGroup/createPermission methods.
> 
> - Stephen
> ----
> 

> Index: src/java/org/apache/fulcrum/security/TurbineSecurity.java
> ===================================================================
> RCS file: 
>/home/cvspublic/jakarta-turbine-fulcrum/src/java/org/apache/fulcrum/security/TurbineSecurity.java,v
> retrieving revision 1.1.1.1
> diff -r1.1.1.1 TurbineSecurity.java
> 489a490,503
> >      * Creates a new Role in the system. This is a convenience
> >      * method.
> >      *
> >      * @param name The name of the Role.
> >      * @return An object representing the new Role.
> >      * @throws TurbineSecurityException if the Role could not be created.
> >      */
> >     public static Role createRole( String name )
> >         throws TurbineSecurityException
> >     {
> >         return getService().addRole(getNewRole(name));
> >     }
> > 
> >     /**
> 
> ----
> 

> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to