org.codehaus.redback.xmlrpc.service
Class RoleServiceImpl

java.lang.Object
  extended by org.codehaus.redback.xmlrpc.service.RoleServiceImpl
All Implemented Interfaces:
RoleService, Service

public class RoleServiceImpl
extends Object
implements RoleService


Constructor Summary
RoleServiceImpl(RBACManager rbacManager, RoleManager roleManager)
           
 
Method Summary
 Boolean addChildRole(String roleName, String childRoleName)
           
 Boolean assignRole(String roleId, String username)
           
 Boolean assignRoleByName(String roleName, String username)
           
 Boolean createRole(String roleName)
           
 List<String> getChildRoles(String roleName)
           
 Role getRole(String roleName)
           
 List<Role> getRoles()
           
 Boolean ping()
           
 Boolean removeRole(String roleName)
           
 Boolean roleExists(String roleName)
           
 Boolean unassignRole(String roleId, String username)
           
 Boolean unassignRoleByName(String roleName, String username)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleServiceImpl

@Inject
public RoleServiceImpl(@Named(value="rBACManager#cached")
                              RBACManager rbacManager,
                              RoleManager roleManager)
Method Detail

addChildRole

public Boolean addChildRole(String roleName,
                            String childRoleName)
                     throws Exception
Specified by:
addChildRole in interface RoleService
Throws:
Exception

createRole

public Boolean createRole(String roleName)
                   throws Exception
Specified by:
createRole in interface RoleService
Throws:
Exception

getRole

public Role getRole(String roleName)
             throws Exception
Specified by:
getRole in interface RoleService
Throws:
Exception

getRoles

public List<Role> getRoles()
                    throws Exception
Specified by:
getRoles in interface RoleService
Throws:
Exception

removeRole

public Boolean removeRole(String roleName)
                   throws Exception
Specified by:
removeRole in interface RoleService
Throws:
Exception

roleExists

public Boolean roleExists(String roleName)
                   throws Exception
Specified by:
roleExists in interface RoleService
Throws:
Exception

ping

public Boolean ping()
             throws Exception
Specified by:
ping in interface Service
Throws:
Exception

getChildRoles

public List<String> getChildRoles(String roleName)
                           throws Exception
Specified by:
getChildRoles in interface RoleService
Throws:
Exception

assignRole

public Boolean assignRole(String roleId,
                          String username)
                   throws Exception
Specified by:
assignRole in interface RoleService
Throws:
Exception

assignRoleByName

public Boolean assignRoleByName(String roleName,
                                String username)
                         throws Exception
Specified by:
assignRoleByName in interface RoleService
Throws:
Exception

unassignRole

public Boolean unassignRole(String roleId,
                            String username)
                     throws Exception
Specified by:
unassignRole in interface RoleService
Throws:
Exception

unassignRoleByName

public Boolean unassignRoleByName(String roleName,
                                  String username)
                           throws Exception
Specified by:
unassignRoleByName in interface RoleService
Throws:
Exception


Copyright © 2006-2011 Codehaus. All Rights Reserved.