net.sourceforge.ganttproject.roles
Class RoleManagerImpl

java.lang.Object
  |
  +--net.sourceforge.ganttproject.roles.RoleManagerImpl
All Implemented Interfaces:
RoleManager

public class RoleManagerImpl
extends java.lang.Object
implements RoleManager

Author:
athomas

Nested Class Summary
 
Nested classes inherited from class net.sourceforge.ganttproject.roles.RoleManager
RoleManager.Access
 
Field Summary
 
Fields inherited from interface net.sourceforge.ganttproject.roles.RoleManager
DEFAULT_ROLES_NUMBER
 
Constructor Summary
RoleManagerImpl()
           
 
Method Summary
 void add(int ID, java.lang.String role)
          Add a role on the list
 void clear()
          Clear the role list
 java.lang.String getRole(int ID)
          Get roles by ID
 java.lang.String[] getRoles()
          Return all roles list
 java.lang.String[] getRolesShort()
          Return all roles exept the default roles
 int nbOfRoles()
          Return the number of roles for the project, exept the default roles
 void setRoles(java.util.Hashtable roles)
          Change the role list by another one
 
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

clear

public void clear()
Description copied from interface: RoleManager
Clear the role list

Specified by:
clear in interface RoleManager

getRoles

public java.lang.String[] getRoles()
Description copied from interface: RoleManager
Return all roles list

Specified by:
getRoles in interface RoleManager

getRolesShort

public java.lang.String[] getRolesShort()
Description copied from interface: RoleManager
Return all roles exept the default roles

Specified by:
getRolesShort in interface RoleManager

setRoles

public void setRoles(java.util.Hashtable roles)
Description copied from interface: RoleManager
Change the role list by another one

Specified by:
setRoles in interface RoleManager

getRole

public java.lang.String getRole(int ID)
Description copied from interface: RoleManager
Get roles by ID

Specified by:
getRole in interface RoleManager

nbOfRoles

public int nbOfRoles()
Return the number of roles for the project, exept the default roles

Specified by:
nbOfRoles in interface RoleManager

add

public void add(int ID,
                java.lang.String role)
Add a role on the list

Specified by:
add in interface RoleManager


Copyright © 2002 Alexandre THOMAS.