class RoleManagerServiceImpl extends HibernateDaoImpl implements RoleManagerService {

    @Transactional(propagation = Propagation.REQUIRED, readOnly = false)
    public void deleteAll(ExecutionContext context, List<String> roles) {
        if (roles != null) {
            for(String roleName : roles) {
                if (roleName != null && roleName.length() > 0) {
                    userService.deleteRole(context, roleName);
                }
            }
        }
    }

}