org.apache.lenya.ac
Interface RoleManager

All Superinterfaces:
ItemManager

public interface RoleManager
extends ItemManager

Role manager.

Version:
$Id: RoleManager.java 473861 2006-11-12 03:51:14Z gregor $

Method Summary
 void add(Role role)
          Add a role
 Role getRole(java.lang.String roleId)
          Get the role for the given ID.
 Role[] getRoles()
          Get all roles
 void remove(Role role)
          Remove a role
 
Methods inherited from interface org.apache.lenya.ac.ItemManager
addItemManagerListener, getAccreditableManager, removeItemManagerListener
 

Method Detail

getRole

Role getRole(java.lang.String roleId)
Get the role for the given ID.

Parameters:
roleId - The name of the role requested.
Returns:
a Role or null if no role with the given name found

getRoles

Role[] getRoles()
Get all roles

Returns:
an array of roles

add

void add(Role role)
         throws AccessControlException
Add a role

Parameters:
role - Role to add
Throws:
AccessControlException - when the role is already contained.

remove

void remove(Role role)
            throws AccessControlException
Remove a role

Parameters:
role - Role to remove
Throws:
AccessControlException - when the role is not contained.


Copyright 1999-2006 Apache Software Foundation. All Rights Reserved.