com.openexchange.api
Class OXContact.DistributionList

java.lang.Object
  extended bycom.openexchange.api.OXContact.DistributionList
All Implemented Interfaces:
java.lang.Cloneable
Enclosing class:
OXContact

public class OXContact.DistributionList
extends java.lang.Object
implements java.lang.Cloneable


Field Summary
static java.lang.String CONTACT_ID
           
static java.lang.String DISPLAYNAME
           
static java.lang.String EMAILFIELD
           
 
Constructor Summary
OXContact.DistributionList()
           
 
Method Summary
 void addEntry()
          add the entry with the prefilled values to the distribution list
 void addEntry(int id, java.lang.String firstname, java.lang.String lastname, java.lang.String displayname, java.lang.String email, int emailmapping)
          add an entry to the distribution list
 java.lang.Object clone()
           
 java.lang.String getDisplayname()
          get the displayname from the distributionlist entry
 java.lang.String getEmail()
          get the email from the distributionlist entry
 int getEmailField()
          get the emailfield from the distributionlist entry
 java.lang.String getFirstname()
          get the firstname from the distributionlist entry
 int getID()
          get the id from the distributionlist entry
 java.lang.String getLastname()
          get the lastname from the distributionlist entry
 void loadEntry(int position)
          load the entry at the given position
 void reset()
          reset the object to the default values
 void setDisplayname(java.lang.String displayname)
          set the displayname to the distributionlist entry
 void setEmail(java.lang.String email, int emailmapping)
          set the email with the given mapping to the distributionlist entry
 void setFirstname(java.lang.String firstname)
          set the firstname to the distributionlist entry
 void setID(int id)
          set the contact_id to the distributionlist entry
 void setLastname(java.lang.String lastname)
          set the lastname to the distributionlist entry
 int size()
          return the number of entries in the distribution list
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMAILFIELD

public static final java.lang.String EMAILFIELD
See Also:
Constant Field Values

DISPLAYNAME

public static final java.lang.String DISPLAYNAME
See Also:
Constant Field Values

CONTACT_ID

public static final java.lang.String CONTACT_ID
See Also:
Constant Field Values
Constructor Detail

OXContact.DistributionList

public OXContact.DistributionList()
Method Detail

reset

public void reset()
reset the object to the default values


setID

public void setID(int id)
set the contact_id to the distributionlist entry

Parameters:
id -

setFirstname

public void setFirstname(java.lang.String firstname)
set the firstname to the distributionlist entry

Parameters:
firstname -

setLastname

public void setLastname(java.lang.String lastname)
set the lastname to the distributionlist entry

Parameters:
lastname -

setDisplayname

public void setDisplayname(java.lang.String displayname)
set the displayname to the distributionlist entry

Parameters:
displayname -

setEmail

public void setEmail(java.lang.String email,
                     int emailmapping)
set the email with the given mapping to the distributionlist entry

Parameters:
email -
emailmapping -

getID

public int getID()
get the id from the distributionlist entry

Returns:
id

getFirstname

public java.lang.String getFirstname()
get the firstname from the distributionlist entry

Returns:
firstname

getLastname

public java.lang.String getLastname()
get the lastname from the distributionlist entry

Returns:
lastname

getDisplayname

public java.lang.String getDisplayname()
get the displayname from the distributionlist entry

Returns:
displayname

getEmail

public java.lang.String getEmail()
get the email from the distributionlist entry

Returns:
email firstname

getEmailField

public int getEmailField()
get the emailfield from the distributionlist entry

Returns:
emailmapping

size

public int size()
return the number of entries in the distribution list

Returns:
size

loadEntry

public void loadEntry(int position)
load the entry at the given position

Parameters:
position -

addEntry

public void addEntry(int id,
                     java.lang.String firstname,
                     java.lang.String lastname,
                     java.lang.String displayname,
                     java.lang.String email,
                     int emailmapping)
add an entry to the distribution list

Parameters:
id -
firstname -
lastname -
displayname -
email -
emailmapping -

addEntry

public void addEntry()
add the entry with the prefilled values to the distribution list


clone

public java.lang.Object clone()