com.ebmwebsourcing.webcommons.user.api.service
Interface RoleManager

All Known Implementing Classes:
RoleManagerImpl

@Transactional
public interface RoleManager


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
 

Method Detail

init

void init()
          throws java.io.IOException
Add all roles in Registry, if not exist

Throws:
java.io.IOException

createRole

void createRole(java.lang.String roleName)
Add a new Role in registry. The Role name must be specified.

Parameters:
roleName - String

getAllRoles

java.lang.String[] getAllRoles()
Return the list of all roles in database.

Returns:
the list of all roles in database. Can't be null, could be empty


Copyright © 2010 eBM WebSourcing. All Rights Reserved.