|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.compoze.contact.DistributionList
This class represents a distribution list. Distribution lists contain a
collection of contacts (obtained with getContacts()
),
a collection
of sub-lists (obtained with getDistributionLists()
) and a parent distribution list
(obtained with getParent()
). The distribution list also has the ability
to manipulate itself (copy or move itself to another distribution list, rename, etc).
To add and search for distribution lists, see the DistributionLists
collection
class. Once the list is obtained, its
accessor methods may be called to
set and get properties. The update()
method
must be called to store any changes to the server.
If you wish to begin manipulating the contacts associated with
a list, get the contacts
collection using getContacts()
and look to its documentation for further details.
The following table contains the mappings from Distribution List properties to their corresponding Java methods:
Constructor Summary | |
DistributionList()
Constructor. |
Method Summary | |
void |
clearFlag()
Clears the flag on this distribution list. |
DistributionList |
copyTo(DistributionList targetList,
boolean bRecursive)
Copies the lists of this distribution list to the specified target distribution list. |
DistributionList |
copyTo(DistributionList targetList,
boolean bRecursive,
java.lang.String sNewName)
Copies the lists of this distribution list to the specified target distribution list. |
void |
delete()
Deletes the list and all sub-lists. |
void |
delete(boolean bRecursive)
Deletes the list. |
void |
flag(Flag flag)
Flags this distribution list with the specified flag. |
AccessManager |
getAccessManager()
Gets the access manager for this distribution list. |
java.lang.String |
getAuthor()
Gets the name of the author. |
int |
getContactCount()
Gets the number of contacts associated with the list. |
ListContacts |
getContacts()
Gets the contacts in this distribution list. |
long |
getCustomNum1()
Gets the custom number1 field of the distribution list. |
long |
getCustomNum2()
Gets the custom number2 field of the distribution list. |
long |
getCustomNum3()
Gets the custom number3 field of the distribution list. |
long |
getCustomNum4()
Gets the custom number4 field of the distribution list. |
java.lang.String |
getCustomStr1()
Gets the custom string1 field of the distribution list. |
java.lang.String |
getCustomStr2()
Gets the custom string2 field of the distribution list. |
java.lang.String |
getCustomStr3()
Gets the custom string3 field of the distribution list. |
java.lang.String |
getCustomStr4()
Gets the custom string4 field of the distribution list. |
java.util.Date |
getDateCreated()
Gets the date the distribution list was created. |
java.util.Date |
getDateLastModified()
Gets the date the distribution list was last modified. |
java.lang.String |
getDescription()
Gets the description of the distribution list. |
int |
getDistributionListCount()
Gets the number of lists associated with the list. |
DistributionLists |
getDistributionLists()
Gets the sub-lists of this distribution list. |
Flag |
getFlag()
Gets the flag of the distribution list. |
long |
getID()
Gets the unique identifier (id) of the distribution list. |
java.lang.String |
getName()
Gets the name of the distribution list. |
DistributionList |
getParent()
Gets the parent list of this distribution list. |
long |
getParentDistributionListID()
Gets the parent list id of this distribution list. |
DistributionList |
moveTo(DistributionList targetList,
boolean bRecursive)
Copies the lists of this distribution list to the specified target distribution list. |
DistributionList |
moveTo(DistributionList targetList,
boolean bRecursive,
java.lang.String sNewName)
Moves the lists of this distribution list to the specified target distribution list. |
void |
setCustomNum1(long lCustomNum1)
Sets the custom number1 field of the distribution list. |
void |
setCustomNum2(long lCustomNum2)
Sets the custom number2 field of the distribution list. |
void |
setCustomNum3(long lCustomNum3)
Sets the custom number3 field of the distribution list. |
void |
setCustomNum4(long lCustomNum4)
Sets the custom number4 field of the distribution list. |
void |
setCustomStr1(java.lang.String sCustomStr1)
Sets the custom string1 field of the distribution list. |
void |
setCustomStr2(java.lang.String sCustomStr2)
Sets the custom string2 field of the distribution list. |
void |
setCustomStr3(java.lang.String sCustomStr3)
Sets the custom string3 field of the distribution list. |
void |
setCustomStr4(java.lang.String sCustomStr4)
Sets the custom string4 field of the distribution list. |
void |
setDescription(java.lang.String sDescription)
Sets the description of the distribution list. |
void |
setName(java.lang.String sName)
Sets the name of the distribution list (renames the distribution list). |
java.lang.String |
toString()
Returns a string representation of the object. |
boolean |
update()
Updates the list (saves the list entry). |
boolean |
update(boolean bForce)
Updates the list (saves the list entry). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DistributionList()
Method Detail |
public long getID()
public java.lang.String getAuthor()
public java.lang.String getName()
public void setName(java.lang.String sName)
sName
- the name of distribution listpublic Flag getFlag()
null
for nonepublic void flag(Flag flag)
flag
- the flagpublic void clearFlag()
public java.lang.String getDescription()
public void setDescription(java.lang.String sDescription)
sDescription
- the description of distribution listpublic int getContactCount()
public int getDistributionListCount()
public java.util.Date getDateCreated()
public java.util.Date getDateLastModified()
public long getCustomNum1()
null
if the custom number1 field is not setpublic void setCustomNum1(long lCustomNum1)
lCustomNum1
- the custom number1 field of the distribution listpublic long getCustomNum2()
null
if the custom number2 field is not setpublic void setCustomNum2(long lCustomNum2)
lCustomNum2
- the custom number2 field of the distribution listpublic long getCustomNum3()
null
if the custom number3 field is not setpublic void setCustomNum3(long lCustomNum3)
lCustomNum3
- the custom number3 field of the distribution listpublic long getCustomNum4()
null
if the custom number4 field is not setpublic void setCustomNum4(long lCustomNum4)
lCustomNum4
- the custom number4 field of the distribution listpublic java.lang.String getCustomStr1()
null
if the custom string1 field is not setpublic void setCustomStr1(java.lang.String sCustomStr1)
sCustomStr1
- the custom string1 field of the distribution listpublic java.lang.String getCustomStr2()
null
if the custom string2 field is not setpublic void setCustomStr2(java.lang.String sCustomStr2)
sCustomStr2
- the custom string2 field of the distribution listpublic java.lang.String getCustomStr3()
null
if the custom string3 field is not setpublic void setCustomStr3(java.lang.String sCustomStr3)
sCustomStr3
- the custom string3 field of the distribution listpublic java.lang.String getCustomStr4()
null
if the custom string4 field is not setpublic void setCustomStr4(java.lang.String sCustomStr4)
sCustomStr4
- the custom string4 field of the distribution listpublic AccessManager getAccessManager() throws AccessManagerException
AccessManagerException
- an error occurs retrieving the access managerContactPermission
public DistributionList copyTo(DistributionList targetList, boolean bRecursive)
targetList
- the target list to copy the lists tobRecursive
- true
to copy sub-lists as wellpublic DistributionList copyTo(DistributionList targetList, boolean bRecursive, java.lang.String sNewName)
targetList
- the target list to copy the lists tobRecursive
- true
to copy sub-lists as wellsNewName
- the new name for the distribution listpublic DistributionList moveTo(DistributionList targetList, boolean bRecursive)
targetList
- the target list to move the lists tobRecursive
- true
to move sub-lists as wellpublic DistributionList moveTo(DistributionList targetList, boolean bRecursive, java.lang.String sNewName)
targetList
- the target list to move the lists tobRecursive
- true
to move sub-lists as wellsNewName
- the new name for the distribution listpublic long getParentDistributionListID()
public DistributionList getParent()
null
if there is no parent)public DistributionLists getDistributionLists()
public ListContacts getContacts()
null
if there are no contacts)public boolean update() throws java.security.AccessControlException
java.security.AccessControlException
- occurs if the user does not have permission to edit the distribution listpublic boolean update(boolean bForce) throws java.security.AccessControlException
bForce
- true
to force the update; false
otherwise (currently ignored)true
if the update is successful; false
otherwisejava.security.AccessControlException
- occurs if the user does not have permission to edit the distribution listpublic void delete() throws java.security.AccessControlException
java.security.AccessControlException
- occurs if the user does not have permission to delete the listpublic void delete(boolean bRecursive) throws java.security.AccessControlException
bRecursive
- true
to recursively remove all sub-listsjava.security.AccessControlException
- occurs if the user does not have permission to delete the listpublic java.lang.String toString()
toString
in class java.lang.Object
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |