|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sourceforge.ganttproject.resource.HumanResourceManager
Constructor Summary | |
HumanResourceManager()
|
Method Summary | |
void |
add(ProjectResource resource)
Adds the resource to the internal list of available resources. |
void |
addView(ResourceView view)
Adds a new view of this manager |
void |
clear()
Removes all resources from the manager. |
ProjectResource |
create(java.lang.String name)
The only thing that must be known when creating a new resource is the name of the resource. |
ProjectResource |
create(java.lang.String name,
int i)
|
ProjectResource |
getById(int id)
Retrieves an ancestor of ProjectResource identified by an identity value. |
java.util.ArrayList |
getResources()
Retrieves a list of all resources available. |
java.util.ArrayList |
load(java.io.InputStream source)
Loads resources from the InputStreamReader. |
void |
remove(ProjectResource resource)
Removes the resource. |
void |
removeById(int id)
Removes the resource by its id. |
void |
save(java.io.OutputStream target)
Writes all resources stored in the OutputStreamWriter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HumanResourceManager()
Method Detail |
public ProjectResource create(java.lang.String name, int i)
create
in interface ResourceManager
public ProjectResource create(java.lang.String name)
ResourceManager
create
in interface ResourceManager
name
- The name of the resource that should be added.
ProjectResource
public void add(ProjectResource resource)
ResourceManager
add
in interface ResourceManager
resource
- The resource that should be added to the list.public ProjectResource getById(int id)
ResourceManager
getById
in interface ResourceManager
id
- The id is an integer value that is unique for every resource.
ProjectResource
public java.util.ArrayList getResources()
ResourceManager
getResources
in interface ResourceManager
ProjectResource
public java.util.ArrayList load(java.io.InputStream source)
ResourceManager
load
in interface ResourceManager
source
- The InputStreamReader from which the data will be read.
The format and kind of data read is subject of the class
implementing this interface.
public void remove(ProjectResource resource)
ResourceManager
remove
in interface ResourceManager
resource
- The resource to remove.public void removeById(int id)
ResourceManager
removeById
in interface ResourceManager
id
- Id of the resource to remove.public void save(java.io.OutputStream target)
ResourceManager
save
in interface ResourceManager
target
- Stream to write the data to.public void clear()
ResourceManager
clear
in interface ResourceManager
public void addView(ResourceView view)
ResourceManager
addView
in interface ResourceManager
view
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |