com.aurel.track.dropdowns
Class PersonBeans
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
com.aurel.track.dropdowns.BaseDropDowns
com.aurel.track.dropdowns.PersonBeans
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess
public class PersonBeans
- extends BaseDropDowns
This class provides a PersonBeans Arraylist mainly for displaying the list
of available persons (users) in a drop down list. It loads the array
from the database tables as defined in Constants.java. A subset of the
object filtered according to the just selected project can be registered
in a given servlet context and can ge retrieved from there by
e.g. List = (ArrayList) pageContext.findAttribute(Constants.ALLPERSONS);
- Version:
- $Revision: 1.12 $ $Date: 2007-09-06 19:34:57 $
- Author:
- Joerg Friedrich
- See Also:
- Serialized Form
| Fields inherited from class java.util.AbstractList |
modCount |
|
Method Summary |
protected void |
fillBoxes(java.util.List list,
java.util.ArrayList personList)
Fills the array list object with LabelValueBean beans. |
void |
fillDynamicBoxes(java.lang.Integer projectKey)
The detail objects of PersonBeans depend on the selected project
via the access control entries in TACL. |
void |
fillDynamicBoxes(java.lang.Integer projectKey,
java.lang.Integer listTypeKey)
The detail objects of PersonBeans depend on the selected project, and the selected listType
via the access control entries in TACL. |
java.util.ArrayList |
getActive()
|
java.util.ArrayList |
load()
This method loads all active persons and inactive persons and places
them into four different lists:
1. |
void |
registerAttribute(HttpSession session)
Registers the PersonBeans object as attributes in the given
servlet context |
void |
removeAttribute(HttpSession session)
Removes the published attribute under this context to clean
up on shutdown. |
| Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
containsAll, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
PersonBeans
public PersonBeans()
load
public java.util.ArrayList load()
- This method loads all active persons and inactive persons and places
them into four different lists:
1. A list with all active persons (not status "deleted")
2. A list with all active and inactive persons (including
status "deleted")
3. All persons having a status of "Manager" in any project
4. All persons having a status of "Responsible" in any project
- Returns:
- ArrayList with active persons in the system
fillDynamicBoxes
public void fillDynamicBoxes(java.lang.Integer projectKey,
java.lang.Integer listTypeKey)
- The detail objects of PersonBeans depend on the selected project, and the selected listType
via the access control entries in TACL.
This method makes visible only those detail rows that are childs
of the project row selected by key.
- Parameters:
projectKey - an int containing the project for which the lists
should be generated.
fillDynamicBoxes
public void fillDynamicBoxes(java.lang.Integer projectKey)
- The detail objects of PersonBeans depend on the selected project
via the access control entries in TACL.
This method makes visible only those detail rows that are childs
of the project row selected by key.
- Overrides:
fillDynamicBoxes in class BaseDropDowns
- Parameters:
projectKey - an int containing the project for which the lists
should be generated.
fillBoxes
protected void fillBoxes(java.util.List list,
java.util.ArrayList personList)
- Fills the array list object with LabelValueBean beans.
registerAttribute
public void registerAttribute(HttpSession session)
- Registers the PersonBeans object as attributes in the given
servlet context
- Overrides:
registerAttribute in class BaseDropDowns
- Parameters:
session - - the session to register the attributes in
removeAttribute
public void removeAttribute(HttpSession session)
- Removes the published attribute under this context to clean
up on shutdown.
- Overrides:
removeAttribute in class BaseDropDowns
- Parameters:
session - - the session to remove the attributes from
getActive
public java.util.ArrayList getActive()
Issue Tracking with Track+: Home Page Copyright © 2008 Trackplus. All Rights Reserved.