org.kinsources.kiwa.accounts
Class Roles

java.lang.Object
  extended by org.kinsources.kiwa.accounts.Roles
All Implemented Interfaces:
java.lang.Iterable<Role>

public class Roles
extends java.lang.Object
implements java.lang.Iterable<Role>

Author:
christian.momon@devinsy.fr

Constructor Summary
Roles()
           
 
Method Summary
 void clear()
           
 boolean contains(int id)
           
 Role getById(int roleId)
           
 Role getByName(java.lang.String name)
           
 boolean isEmpty()
           
 boolean isNotEmpty()
           
 java.util.Iterator<Role> iterator()
           
 int nextFreeId()
           
 Role setRole(Role role)
           
 int size()
           
 Roles sortedList()
           
 java.util.List<Role> toList()
           
 void unsetRole(int roleId)
           
 void unsetRole(Role role)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Roles

public Roles()
Method Detail

clear

public void clear()

contains

public boolean contains(int id)
Parameters:
id -
Returns:

getById

public Role getById(int roleId)
Parameters:
id -
Returns:

getByName

public Role getByName(java.lang.String name)
Parameters:
name -
Returns:

isEmpty

public boolean isEmpty()
Returns:

isNotEmpty

public boolean isNotEmpty()
Returns:

iterator

public java.util.Iterator<Role> iterator()
Specified by:
iterator in interface java.lang.Iterable<Role>

nextFreeId

public int nextFreeId()
Returns:

setRole

public Role setRole(Role role)
Parameters:
role -

size

public int size()
Returns:

sortedList

public Roles sortedList()
Returns:

toList

public java.util.List<Role> toList()
Returns:

unsetRole

public void unsetRole(int roleId)
Parameters:
role -

unsetRole

public void unsetRole(Role role)
Parameters:
role -