|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.users.User
public class User
Class User.
| Constructor Summary | |
|---|---|
User()
|
|
| Method Summary | |
|---|---|
void |
addContact(Contact vContact)
|
void |
addContact(int index,
Contact vContact)
|
void |
addDutySchedule(int index,
String vDutySchedule)
|
void |
addDutySchedule(String vDutySchedule)
|
Enumeration<Contact> |
enumerateContact()
Method enumerateContact. |
Enumeration<String> |
enumerateDutySchedule()
Method enumerateDutySchedule. |
Contact[] |
getContact()
Method getContact.Returns the contents of the collection in an Array. |
Contact |
getContact(int index)
Method getContact. |
List<Contact> |
getContactCollection()
Method getContactCollection.Returns a reference to '_contactList'. |
int |
getContactCount()
Method getContactCount. |
String[] |
getDutySchedule()
Method getDutySchedule.Returns the contents of the collection in an Array. |
String |
getDutySchedule(int index)
Method getDutySchedule. |
List<String> |
getDutyScheduleCollection()
Method getDutyScheduleCollection.Returns a reference to '_dutyScheduleList'. |
int |
getDutyScheduleCount()
Method getDutyScheduleCount. |
String |
getFullName()
Returns the value of field 'fullName'. |
String |
getPassword()
Returns the value of field 'password'. |
String |
getUserComments()
Returns the value of field 'userComments'. |
String |
getUserId()
Returns the value of field 'userId'. |
boolean |
isValid()
Method isValid. |
Iterator<Contact> |
iterateContact()
Method iterateContact. |
Iterator<String> |
iterateDutySchedule()
Method iterateDutySchedule. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllContact()
|
void |
removeAllDutySchedule()
|
boolean |
removeContact(Contact vContact)
Method removeContact. |
Contact |
removeContactAt(int index)
Method removeContactAt. |
boolean |
removeDutySchedule(String vDutySchedule)
Method removeDutySchedule. |
String |
removeDutyScheduleAt(int index)
Method removeDutyScheduleAt. |
void |
setContact(Contact[] vContactArray)
|
void |
setContact(int index,
Contact vContact)
|
void |
setContact(List<Contact> vContactList)
Sets the value of '_contactList' by copying the given Vector. |
void |
setContactCollection(List<Contact> contactList)
Deprecated. |
void |
setDutySchedule(int index,
String vDutySchedule)
|
void |
setDutySchedule(List<String> vDutyScheduleList)
Sets the value of '_dutyScheduleList' by copying the given Vector. |
void |
setDutySchedule(String[] vDutyScheduleArray)
|
void |
setDutyScheduleCollection(List<String> dutyScheduleList)
Deprecated. |
void |
setFullName(String fullName)
Sets the value of field 'fullName'. |
void |
setPassword(String password)
Sets the value of field 'password'. |
void |
setUserComments(String userComments)
Sets the value of field 'userComments'. |
void |
setUserId(String userId)
Sets the value of field 'userId'. |
static User |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public User()
| Method Detail |
|---|
public void addContact(Contact vContact)
throws IndexOutOfBoundsException
vContact -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addContact(int index,
Contact vContact)
throws IndexOutOfBoundsException
index - vContact -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addDutySchedule(String vDutySchedule)
throws IndexOutOfBoundsException
vDutySchedule -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addDutySchedule(int index,
String vDutySchedule)
throws IndexOutOfBoundsException
index - vDutySchedule -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<Contact> enumerateContact()
public Enumeration<String> enumerateDutySchedule()
public Contact getContact(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Contact[] getContact()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Contact> getContactCollection()
public int getContactCount()
public String getDutySchedule(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic String[] getDutySchedule()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<String> getDutyScheduleCollection()
public int getDutyScheduleCount()
public String getFullName()
public String getPassword()
public String getUserComments()
public String getUserId()
public boolean isValid()
public Iterator<Contact> iterateContact()
public Iterator<String> iterateDutySchedule()
public void marshal(Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
out -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
IOException - if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshalingpublic void removeAllContact()
public void removeAllDutySchedule()
public boolean removeContact(Contact vContact)
vContact -
public Contact removeContactAt(int index)
index -
public boolean removeDutySchedule(String vDutySchedule)
vDutySchedule -
public String removeDutyScheduleAt(int index)
index -
public void setContact(int index,
Contact vContact)
throws IndexOutOfBoundsException
index - vContact -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setContact(Contact[] vContactArray)
vContactArray - public void setContact(List<Contact> vContactList)
vContactList - the Vector to copy.public void setContactCollection(List<Contact> contactList)
contactList - the Vector to set.
public void setDutySchedule(int index,
String vDutySchedule)
throws IndexOutOfBoundsException
index - vDutySchedule -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setDutySchedule(String[] vDutyScheduleArray)
vDutyScheduleArray - public void setDutySchedule(List<String> vDutyScheduleList)
vDutyScheduleList - the Vector to copy.public void setDutyScheduleCollection(List<String> dutyScheduleList)
dutyScheduleList - the Vector to set.public void setFullName(String fullName)
fullName - the value of field 'fullName'.public void setPassword(String password)
password - the value of field 'password'.public void setUserComments(String userComments)
userComments - the value of field 'userComments'.public void setUserId(String userId)
userId - the value of field 'userId'.
public static User unmarshal(Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
reader -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||