org.opennms.netmgt.config.users
Class User

java.lang.Object
  extended by org.opennms.netmgt.config.users.User
All Implemented Interfaces:
java.io.Serializable

public class User
extends java.lang.Object
implements java.io.Serializable

Class User.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
User()
           
 
Method Summary
 void addContact(Contact vContact)
          Method addContact
 void addContact(int index, Contact vContact)
          Method addContact
 void addDutySchedule(int index, java.lang.String vDutySchedule)
          Method addDutySchedule
 void addDutySchedule(java.lang.String vDutySchedule)
          Method addDutySchedule
 void clearContact()
          Method clearContact
 void clearDutySchedule()
          Method clearDutySchedule
 java.util.Enumeration enumerateContact()
          Method enumerateContact
 java.util.Enumeration enumerateDutySchedule()
          Method enumerateDutySchedule
 Contact[] getContact()
          Method getContact
 Contact getContact(int index)
          Method getContact
 java.util.ArrayList getContactCollection()
          Method getContactCollection Returns a reference to 'contact'.
 int getContactCount()
          Method getContactCount
 java.lang.String[] getDutySchedule()
          Method getDutySchedule
 java.lang.String getDutySchedule(int index)
          Method getDutySchedule
 java.util.ArrayList getDutyScheduleCollection()
          Method getDutyScheduleCollection Returns a reference to 'dutySchedule'.
 int getDutyScheduleCount()
          Method 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()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeContact(Contact vContact)
          Method removeContact
 boolean removeDutySchedule(java.lang.String vDutySchedule)
          Method removeDutySchedule
 void setContact(java.util.ArrayList contactCollection)
          Method setContact Sets the value of 'contact' by copying the given ArrayList.
 void setContact(Contact[] contactArray)
          Method setContact
 void setContact(int index, Contact vContact)
          Method setContact
 void setContactCollection(java.util.ArrayList contactCollection)
          Method setContactCollection Sets the value of 'contact' by setting it to the given ArrayList.
 void setDutySchedule(java.util.ArrayList dutyScheduleCollection)
          Method setDutySchedule Sets the value of 'dutySchedule' by copying the given ArrayList.
 void setDutySchedule(int index, java.lang.String vDutySchedule)
          Method setDutySchedule
 void setDutySchedule(java.lang.String[] dutyScheduleArray)
          Method setDutySchedule
 void setDutyScheduleCollection(java.util.ArrayList dutyScheduleCollection)
          Method setDutyScheduleCollection Sets the value of 'dutySchedule' by setting it to the given ArrayList.
 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 java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

User

public User()
Method Detail

addContact

public void addContact(Contact vContact)
                throws java.lang.IndexOutOfBoundsException
Method addContact

Parameters:
vContact -
Throws:
java.lang.IndexOutOfBoundsException

addContact

public void addContact(int index,
                       Contact vContact)
                throws java.lang.IndexOutOfBoundsException
Method addContact

Parameters:
index -
vContact -
Throws:
java.lang.IndexOutOfBoundsException

addDutySchedule

public void addDutySchedule(java.lang.String vDutySchedule)
                     throws java.lang.IndexOutOfBoundsException
Method addDutySchedule

Parameters:
vDutySchedule -
Throws:
java.lang.IndexOutOfBoundsException

addDutySchedule

public void addDutySchedule(int index,
                            java.lang.String vDutySchedule)
                     throws java.lang.IndexOutOfBoundsException
Method addDutySchedule

Parameters:
index -
vDutySchedule -
Throws:
java.lang.IndexOutOfBoundsException

clearContact

public void clearContact()
Method clearContact


clearDutySchedule

public void clearDutySchedule()
Method clearDutySchedule


enumerateContact

public java.util.Enumeration enumerateContact()
Method enumerateContact

Returns:
Enumeration

enumerateDutySchedule

public java.util.Enumeration enumerateDutySchedule()
Method enumerateDutySchedule

Returns:
Enumeration

getContact

public Contact getContact(int index)
                   throws java.lang.IndexOutOfBoundsException
Method getContact

Parameters:
index -
Returns:
Contact
Throws:
java.lang.IndexOutOfBoundsException

getContact

public Contact[] getContact()
Method getContact

Returns:
Contact

getContactCollection

public java.util.ArrayList getContactCollection()
Method getContactCollection Returns a reference to 'contact'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getContactCount

public int getContactCount()
Method getContactCount

Returns:
int

getDutySchedule

public java.lang.String getDutySchedule(int index)
                                 throws java.lang.IndexOutOfBoundsException
Method getDutySchedule

Parameters:
index -
Returns:
String
Throws:
java.lang.IndexOutOfBoundsException

getDutySchedule

public java.lang.String[] getDutySchedule()
Method getDutySchedule

Returns:
String

getDutyScheduleCollection

public java.util.ArrayList getDutyScheduleCollection()
Method getDutyScheduleCollection Returns a reference to 'dutySchedule'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getDutyScheduleCount

public int getDutyScheduleCount()
Method getDutyScheduleCount

Returns:
int

getFullName

public java.lang.String getFullName()
Returns the value of field 'fullName'.

Returns:
String

getPassword

public java.lang.String getPassword()
Returns the value of field 'password'.

Returns:
String

getUserComments

public java.lang.String getUserComments()
Returns the value of field 'userComments'.

Returns:
String

getUserId

public java.lang.String getUserId()
Returns the value of field 'userId'.

Returns:
String

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeContact

public boolean removeContact(Contact vContact)
Method removeContact

Parameters:
vContact -
Returns:
boolean

removeDutySchedule

public boolean removeDutySchedule(java.lang.String vDutySchedule)
Method removeDutySchedule

Parameters:
vDutySchedule -
Returns:
boolean

setContact

public void setContact(int index,
                       Contact vContact)
                throws java.lang.IndexOutOfBoundsException
Method setContact

Parameters:
index -
vContact -
Throws:
java.lang.IndexOutOfBoundsException

setContact

public void setContact(Contact[] contactArray)
Method setContact

Parameters:
contactArray -

setContact

public void setContact(java.util.ArrayList contactCollection)
Method setContact Sets the value of 'contact' by copying the given ArrayList.

Parameters:
contactCollection - the Vector to copy.

setContactCollection

public void setContactCollection(java.util.ArrayList contactCollection)
Method setContactCollection Sets the value of 'contact' by setting it to the given ArrayList. No type checking is performed.

Parameters:
contactCollection - the ArrayList to copy.

setDutySchedule

public void setDutySchedule(int index,
                            java.lang.String vDutySchedule)
                     throws java.lang.IndexOutOfBoundsException
Method setDutySchedule

Parameters:
index -
vDutySchedule -
Throws:
java.lang.IndexOutOfBoundsException

setDutySchedule

public void setDutySchedule(java.lang.String[] dutyScheduleArray)
Method setDutySchedule

Parameters:
dutyScheduleArray -

setDutySchedule

public void setDutySchedule(java.util.ArrayList dutyScheduleCollection)
Method setDutySchedule Sets the value of 'dutySchedule' by copying the given ArrayList.

Parameters:
dutyScheduleCollection - the Vector to copy.

setDutyScheduleCollection

public void setDutyScheduleCollection(java.util.ArrayList dutyScheduleCollection)
Method setDutyScheduleCollection Sets the value of 'dutySchedule' by setting it to the given ArrayList. No type checking is performed.

Parameters:
dutyScheduleCollection - the ArrayList to copy.

setFullName

public void setFullName(java.lang.String fullName)
Sets the value of field 'fullName'.

Parameters:
fullName - the value of field 'fullName'.

setPassword

public void setPassword(java.lang.String password)
Sets the value of field 'password'.

Parameters:
password - the value of field 'password'.

setUserComments

public void setUserComments(java.lang.String userComments)
Sets the value of field 'userComments'.

Parameters:
userComments - the value of field 'userComments'.

setUserId

public void setUserId(java.lang.String userId)
Sets the value of field 'userId'.

Parameters:
userId - the value of field 'userId'.

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.