|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--dtw.webmail.util.AbstractIdentifiable
|
+--dtw.webmail.plugin.std.CastorContacts
Class implementing a specialized JwmaContactsImpl for being persisted with the Castor Plugins.
| Field Summary |
| Fields inherited from interface org.exolab.castor.jdo.TimeStampable |
NO_TIMESTAMP |
| Constructor Summary | |
CastorContacts()
|
|
| Method Summary | |
void |
addContact(JwmaContactImpl contact)
Adds a JwmaContactImpl instance to this contact database. |
void |
addContactCategory(java.lang.String category)
Adds a contact category to the cached list of categories. |
void |
addContactGroup(JwmaContactGroupImpl group)
Adds a JwmaContactGroupImpl instance to this contact database. |
void |
addFrequentRecipient(JwmaContactImpl contact)
Adds a frequent recipient JwmaContactImpl instance to this contact database. |
boolean |
containsContact(java.lang.String uid)
Tests if this JwmaContactsImpl contains a contact with the given unique identifier. |
boolean |
containsContactGroup(java.lang.String uid)
Tests if this JwmaContactsImpl contains a contact group with the given unique identifier. |
boolean |
containsContactGroupName(java.lang.String name)
Tests if this JwmaContactsImpl contains a contact group with the given name. |
boolean |
containsContactWithNickname(java.lang.String nick)
Tests if the contact database contains a contact with the given nickname. |
JwmaContactImpl |
createContact()
Creates and returns a new JwmaContactImpl. |
JwmaContactGroupImpl |
createContactGroup(java.lang.String name)
Creates a new JwmaContactGroupImpl with the given name. |
boolean |
existsContactCategory(java.lang.String category)
Tests if a given category exists in this JwmaContactsImpl. |
java.lang.String |
getCategoryFilter()
Returns the name of the category which is not filtered at the moment. |
JwmaContact |
getContact(java.lang.String uid)
Returns an JwmaContact representing the contact with the given unique identifier. |
JwmaContact |
getContactByNickname(java.lang.String nick)
Returns contact with given nickname. |
ContactFilter |
getContactFilter()
Returns the arbitrary contact filter, which is set for filtering contacts on listing. |
JwmaContactGroup |
getContactGroup(java.lang.String cuid)
Returns an JwmaContactGroup representing the contact group with the given unique identifier. |
JwmaContactGroup |
getContactGroupByName(java.lang.String name)
Returns an JwmaContactGroupByName representing the contact group with the given name. |
java.util.Collection |
getContactsCollection()
Methods for Castor to set/get collections |
java.util.Collection |
getGroupsCollection()
|
java.util.Iterator |
getLastnameStarts()
Returns an iterator of non-duplicate strings with the first characters of the lastnames of all contacts in this contact database. |
java.util.List |
getRemovedAssociations()
Returns the associated instances. |
long |
jdoGetTimeStamp()
|
void |
jdoSetTimeStamp(long timeStamp)
|
java.lang.String[] |
listContactCategories()
Returns an array of available contact categories. |
JwmaContactGroup[] |
listContactGroups()
Returns an array of contact groups containing all groups of this contact database. |
JwmaContact[] |
listContacts()
Returns an array of contacts containing all contacts in this contact database. |
JwmaContact[] |
listFrequentRecipients()
Returns an array of contacts containing all frequent recipient contacts. |
void |
persistContacts(org.exolab.castor.jdo.Database db)
|
void |
removeContact(JwmaContactImpl contact)
Removes a JwmaContactImpl instance from this contact database. |
void |
removeContactGroup(JwmaContactGroupImpl group)
Removes a JwmaContactGroupImpl instance from this contact database. |
void |
removeFrequentRecipient(JwmaContactImpl contact)
Removes a frequent recipient JwmaContactImpl instance from this contact database. |
void |
setCategoryFilter(java.lang.String category)
Sets a category based contact filter, which will be filtering contacts which are not of the given category on listing. |
void |
setContactFilter(ContactFilter filter)
Sets an arbitrary contact filter, which will be filtering contacts on listing. |
void |
setContactsCollection(java.util.Collection collection)
|
void |
setGroupsCollection(java.util.Collection collection)
|
void |
updateContacts(org.exolab.castor.jdo.Database db)
|
| Methods inherited from class dtw.webmail.util.AbstractIdentifiable |
equals, getUID, setUID |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface dtw.webmail.model.JwmaContacts |
getUID |
| Constructor Detail |
public CastorContacts()
| Method Detail |
public java.util.Collection getContactsCollection()
public void setContactsCollection(java.util.Collection collection)
public java.util.Collection getGroupsCollection()
public void setGroupsCollection(java.util.Collection collection)
public java.lang.String[] listContactCategories()
JwmaContacts
listContactCategories in interface JwmaContactspublic void addContactCategory(java.lang.String category)
JwmaContactsImplIf the category already exists, the method returns immediately.
addContactCategory in interface JwmaContactsImplcategory - the category as String.public boolean existsContactCategory(java.lang.String category)
JwmaContactsImpl
existsContactCategory in interface JwmaContactsImplcategory - a category to be looked up.
public boolean containsContact(java.lang.String uid)
JwmaContactsImpl
containsContact in interface JwmaContactsImpluid - a unique identifier of a contact.
public JwmaContact getContact(java.lang.String uid)
JwmaContactsIf the contact database does not contain any contact with the given identifier, it returns null. Otherwise it returns the associated contact.
getContact in interface JwmaContactspublic JwmaContact getContactByNickname(java.lang.String nick)
JwmaContactsImpl
getContactByNickname in interface JwmaContactsImplnick - the nickname as String.
public boolean containsContactWithNickname(java.lang.String nick)
JwmaContactsImpl
containsContactWithNickname in interface JwmaContactsImplnick - the nickname as String.
public JwmaContactImpl createContact()
JwmaContactsImpl
createContact in interface JwmaContactsImplpublic JwmaContact[] listContacts()
JwmaContactsIf this contact database does not contain any contacts, then this method returns an empty array. Otherwise it contains one JwmaContact for each entry in this contact database.
listContacts in interface JwmaContactspublic void addContact(JwmaContactImpl contact)
JwmaContactsImpl
addContact in interface JwmaContactsImplcontact - the JwmaContactImpl to be added.public void removeContact(JwmaContactImpl contact)
JwmaContactsImpl
removeContact in interface JwmaContactsImplcontact - the JwmaContactImpl to be removed.public JwmaContact[] listFrequentRecipients()
JwmaContactsIf the contact database does not contain any frequent recipient contacts, then this method returns an empty array. Otherwise it contains one JwmaContact for each entry in this contact database.
listFrequentRecipients in interface JwmaContactspublic void addFrequentRecipient(JwmaContactImpl contact)
JwmaContactsImpl
addFrequentRecipient in interface JwmaContactsImplcontact - the frequent recipient JwmaContactImpl
to be added.public void removeFrequentRecipient(JwmaContactImpl contact)
JwmaContactsImpl
removeFrequentRecipient in interface JwmaContactsImplcontact - the frequent recipient JwmaContactImpl
to be removed.public boolean containsContactGroup(java.lang.String uid)
JwmaContactsImpl
containsContactGroup in interface JwmaContactsImpluid - a unique identifier of a contact group.
public boolean containsContactGroupName(java.lang.String name)
JwmaContactsImpl
containsContactGroupName in interface JwmaContactsImplname - the name for a contact group.
public JwmaContactGroup getContactGroup(java.lang.String cuid)
JwmaContactsIf the contact database does not contain any contact group with the given identifier, it returns null. Otherwise it returns the associated contact group.
getContactGroup in interface JwmaContactspublic JwmaContactGroup getContactGroupByName(java.lang.String name)
JwmaContactsImplIf the contact database does not contain any contact group with the given name, it returns null. Otherwise it returns the associated contact group.
getContactGroupByName in interface JwmaContactsImplpublic JwmaContactGroup[] listContactGroups()
JwmaContactsIf this contact database does not contain any groups, then this method returns an empty array. Otherwise it contains one JwmaContactGroup for each group entry in this contact database.
listContactGroups in interface JwmaContactspublic void addContactGroup(JwmaContactGroupImpl group)
JwmaContactsImpl
addContactGroup in interface JwmaContactsImplpublic void removeContactGroup(JwmaContactGroupImpl group)
JwmaContactsImpl
removeContactGroup in interface JwmaContactsImpl
public JwmaContactGroupImpl createContactGroup(java.lang.String name)
throws JwmaException
JwmaContactsImpl
createContactGroup in interface JwmaContactsImplname - the name of the new group as String.
JwmaException - if a group with the same name exists already.public void setContactFilter(ContactFilter filter)
JwmaContactsImpl
setContactFilter in interface JwmaContactsImplfilter - an arbitrary ContactFilter.public ContactFilter getContactFilter()
JwmaContactsImpl
getContactFilter in interface JwmaContactsImplpublic void setCategoryFilter(java.lang.String category)
JwmaContactsImpl
setCategoryFilter in interface JwmaContactsImplcategory - the category which should be listed .public java.lang.String getCategoryFilter()
JwmaContactsImpl
getCategoryFilter in interface JwmaContactsImplpublic java.util.Iterator getLastnameStarts()
JwmaContactsImpl
getLastnameStarts in interface JwmaContactsImplpublic java.util.List getRemovedAssociations()
Associator
getRemovedAssociations in interface Associator
public void updateContacts(org.exolab.castor.jdo.Database db)
throws org.exolab.castor.jdo.PersistenceException
org.exolab.castor.jdo.PersistenceException
public void persistContacts(org.exolab.castor.jdo.Database db)
throws org.exolab.castor.jdo.PersistenceException
org.exolab.castor.jdo.PersistenceExceptionpublic long jdoGetTimeStamp()
jdoGetTimeStamp in interface org.exolab.castor.jdo.TimeStampablepublic void jdoSetTimeStamp(long timeStamp)
jdoSetTimeStamp in interface org.exolab.castor.jdo.TimeStampable
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||