com.ebmwebsourcing.webcommons.user.service
Class RoleManagerImpl

java.lang.Object
  extended by com.ebmwebsourcing.webcommons.user.service.RoleManagerImpl
All Implemented Interfaces:
RoleManager

public class RoleManagerImpl
extends java.lang.Object
implements RoleManager

Author:
strino

Constructor Summary
RoleManagerImpl()
           
 
Method Summary
 void createRole(java.lang.String roleName)
          Add a new Role in registry.
 java.lang.String[] getAllRoles()
          Return the list of all roles in database.
 void init()
          Add all roles in Registry, if not exist
 void nonTransactionalInit()
           
 void setRoleDAO(RoleDAO roleDAO)
           
 void setRoleManager(RoleManager roleManager)
           
 void setRolesResource(org.springframework.core.io.Resource resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleManagerImpl

public RoleManagerImpl()
Method Detail

nonTransactionalInit

public void nonTransactionalInit()
                          throws java.io.IOException,
                                 RoleGroupException
Throws:
java.io.IOException
RoleGroupException

setRolesResource

public void setRolesResource(org.springframework.core.io.Resource resource)

init

public void init()
          throws java.io.IOException
Description copied from interface: RoleManager
Add all roles in Registry, if not exist

Specified by:
init in interface RoleManager
Throws:
java.io.IOException

createRole

public void createRole(java.lang.String roleName)
Description copied from interface: RoleManager
Add a new Role in registry. The Role name must be specified.

Specified by:
createRole in interface RoleManager
Parameters:
roleName - String

getAllRoles

public java.lang.String[] getAllRoles()
Description copied from interface: RoleManager
Return the list of all roles in database.

Specified by:
getAllRoles in interface RoleManager
Returns:
the list of all roles in database. Can't be null, could be empty

setRoleDAO

public void setRoleDAO(RoleDAO roleDAO)

setRoleManager

public void setRoleManager(RoleManager roleManager)


Copyright © 2010 eBM WebSourcing. All Rights Reserved.