org.codehaus.redback.xmlrpc.service
Class RoleServiceImpl
java.lang.Object
org.codehaus.redback.xmlrpc.service.RoleServiceImpl
- All Implemented Interfaces:
- RoleService, Service
public class RoleServiceImpl
- extends Object
- implements RoleService
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoleServiceImpl
@Inject
public RoleServiceImpl(@Named(value="rBACManager#cached")
RBACManager rbacManager,
RoleManager roleManager)
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.