|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.netmgt.config.users.User
Field Summary | |
private java.util.ArrayList |
_contactList
|
private java.util.ArrayList |
_dutyScheduleList
|
private java.lang.String |
_fullName
|
private java.lang.String |
_password
|
private java.lang.String |
_userComments
|
private java.lang.String |
_userId
|
private java.util.Vector |
propertyChangeListeners
|
Constructor Summary | |
User()
|
Method Summary | |
void |
addContact(Contact vContact)
|
void |
addContact(int index,
Contact vContact)
|
void |
addDutySchedule(int index,
java.lang.String vDutySchedule)
|
void |
addDutySchedule(java.lang.String vDutySchedule)
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Registers a PropertyChangeListener with this class. |
void |
clearContact()
|
void |
clearDutySchedule()
|
java.util.Enumeration |
enumerateContact()
|
java.util.Enumeration |
enumerateDutySchedule()
|
boolean |
equals(java.lang.Object obj)
Note: hashCode() has not been overriden |
Contact[] |
getContact()
|
Contact |
getContact(int index)
|
java.util.Collection |
getContactCollection()
|
int |
getContactCount()
|
java.lang.String[] |
getDutySchedule()
|
java.lang.String |
getDutySchedule(int index)
|
java.util.Collection |
getDutyScheduleCollection()
|
int |
getDutyScheduleCount()
|
java.lang.String |
getFullName()
Returns the value of field 'fullName'. |
java.lang.String |
getPassword()
Returns the value of field 'password'. |
java.lang.String |
getUserComments()
Returns the value of field 'userComments'. |
java.lang.String |
getUserId()
Returns the value of field 'userId'. |
boolean |
isValid()
|
void |
marshal(org.xml.sax.DocumentHandler handler)
|
void |
marshal(java.io.Writer out)
|
protected void |
notifyPropertyChangeListeners(java.lang.String fieldName,
java.lang.Object oldValue,
java.lang.Object newValue)
Notifies all registered PropertyChangeListeners when a bound property's value changes. |
boolean |
removeContact(Contact vContact)
|
boolean |
removeDutySchedule(java.lang.String vDutySchedule)
|
boolean |
removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
Removes the given PropertyChangeListener from this classes list of ProperyChangeListeners. |
void |
setContact(Contact[] contactArray)
|
void |
setContact(int index,
Contact vContact)
|
void |
setContactCollection(java.util.Collection vContact)
|
void |
setDutySchedule(int index,
java.lang.String vDutySchedule)
|
void |
setDutySchedule(java.lang.String[] dutyScheduleArray)
|
void |
setDutyScheduleCollection(java.util.Collection vDutySchedule)
|
void |
setFullName(java.lang.String fullName)
Sets the value of field 'fullName'. |
void |
setPassword(java.lang.String password)
Sets the value of field 'password'. |
void |
setUserComments(java.lang.String userComments)
Sets the value of field 'userComments'. |
void |
setUserId(java.lang.String userId)
Sets the value of field 'userId'. |
static User |
unmarshal(java.io.Reader reader)
|
void |
validate()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String _userId
private java.lang.String _fullName
private java.lang.String _userComments
private java.lang.String _password
private java.util.ArrayList _contactList
private java.util.ArrayList _dutyScheduleList
private java.util.Vector propertyChangeListeners
Constructor Detail |
public User()
Method Detail |
public void addContact(Contact vContact) throws java.lang.IndexOutOfBoundsException
vContact
-
java.lang.IndexOutOfBoundsException
public void addContact(int index, Contact vContact) throws java.lang.IndexOutOfBoundsException
index
- vContact
-
java.lang.IndexOutOfBoundsException
public void addDutySchedule(java.lang.String vDutySchedule) throws java.lang.IndexOutOfBoundsException
vDutySchedule
-
java.lang.IndexOutOfBoundsException
public void addDutySchedule(int index, java.lang.String vDutySchedule) throws java.lang.IndexOutOfBoundsException
index
- vDutySchedule
-
java.lang.IndexOutOfBoundsException
public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl
- The PropertyChangeListener to register.public void clearContact()
public void clearDutySchedule()
public java.util.Enumeration enumerateContact()
public java.util.Enumeration enumerateDutySchedule()
public boolean equals(java.lang.Object obj)
obj
- public Contact getContact(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
public Contact[] getContact()
public java.util.Collection getContactCollection()
public int getContactCount()
public java.lang.String getDutySchedule(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
public java.lang.String[] getDutySchedule()
public java.util.Collection getDutyScheduleCollection()
public int getDutyScheduleCount()
public java.lang.String getFullName()
public java.lang.String getPassword()
public java.lang.String getUserComments()
public java.lang.String getUserId()
public boolean isValid()
public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
out
-
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public void marshal(org.xml.sax.DocumentHandler handler) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
-
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
protected void notifyPropertyChangeListeners(java.lang.String fieldName, java.lang.Object oldValue, java.lang.Object newValue)
fieldName
- the name of the property that has changed.newValue
- the new value of the property.oldValue
- the old value of the property.public boolean removeContact(Contact vContact)
vContact
- public boolean removeDutySchedule(java.lang.String vDutySchedule)
vDutySchedule
- public boolean removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl
- The PropertyChangeListener to remove.
public void setContact(int index, Contact vContact) throws java.lang.IndexOutOfBoundsException
index
- vContact
-
java.lang.IndexOutOfBoundsException
public void setContact(Contact[] contactArray)
contactArray
- public void setContactCollection(java.util.Collection vContact)
vContact
- public void setDutySchedule(int index, java.lang.String vDutySchedule) throws java.lang.IndexOutOfBoundsException
index
- vDutySchedule
-
java.lang.IndexOutOfBoundsException
public void setDutySchedule(java.lang.String[] dutyScheduleArray)
dutyScheduleArray
- public void setDutyScheduleCollection(java.util.Collection vDutySchedule)
vDutySchedule
- public void setFullName(java.lang.String fullName)
fullName
- the value of field 'fullName'.public void setPassword(java.lang.String password)
password
- the value of field 'password'.public void setUserComments(java.lang.String userComments)
userComments
- the value of field 'userComments'.public void setUserId(java.lang.String userId)
userId
- the value of field 'userId'.public static User unmarshal(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reader
-
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |