net.sourceforge.ganttproject.roles
Interface RoleManager

All Known Implementing Classes:
RoleManagerImpl

public interface RoleManager

Author:
athomas

Nested Class Summary
static class RoleManager.Access
           
 
Field Summary
static int DEFAULT_ROLES_NUMBER
           
 
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
 

Field Detail

DEFAULT_ROLES_NUMBER

public static final int DEFAULT_ROLES_NUMBER
See Also:
Constant Field Values
Method Detail

clear

public void clear()
Clear the role list


getRoles

public java.lang.String[] getRoles()
Return all roles list


getRolesShort

public java.lang.String[] getRolesShort()
Return all roles exept the default roles


setRoles

public void setRoles(java.util.Hashtable roles)
Change the role list by another one


getRole

public java.lang.String getRole(int ID)
Get roles by ID


nbOfRoles

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


add

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



Copyright © 2002 Alexandre THOMAS.