|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for JwmaContacts implementations. This is the interface any specialized implementation has to expose internal to controllers and models.
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 |
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 |
getContactGroupByName(java.lang.String name)
Returns an JwmaContactGroupByName representing the contact group with the given name. |
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. |
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. |
Methods inherited from interface dtw.webmail.model.JwmaContacts |
getContact, getContactGroup, getUID, listContactCategories, listContactGroups, listContacts, listFrequentRecipients |
Method Detail |
public boolean containsContact(java.lang.String uid)
uid
- a unique identifier of a contact.
public JwmaContact getContactByNickname(java.lang.String nick)
nick
- the nickname as String.
public boolean containsContactWithNickname(java.lang.String nick)
nick
- the nickname as String.
public void addContact(JwmaContactImpl contact)
contact
- the JwmaContactImpl to be added.public void removeContact(JwmaContactImpl contact)
contact
- the JwmaContactImpl to be removed.public void addFrequentRecipient(JwmaContactImpl contact)
contact
- the frequent recipient JwmaContactImpl
to be added.public void removeFrequentRecipient(JwmaContactImpl contact)
contact
- the frequent recipient JwmaContactImpl
to be removed.public boolean existsContactCategory(java.lang.String category)
category
- a category to be looked up.
public void addContactCategory(java.lang.String category)
If the category already exists, the method returns immediately.
category
- the category as String.public boolean containsContactGroup(java.lang.String uid)
uid
- a unique identifier of a contact group.
public boolean containsContactGroupName(java.lang.String name)
name
- the name for a contact group.
public JwmaContactGroup getContactGroupByName(java.lang.String name)
If the contact database does not contain any contact group with the given name, it returns null. Otherwise it returns the associated contact group.
public void addContactGroup(JwmaContactGroupImpl group)
public void removeContactGroup(JwmaContactGroupImpl group)
public JwmaContactGroupImpl createContactGroup(java.lang.String name) throws JwmaException
name
- the name of the new group as String.
JwmaException
- if a group with the same name exists already.public JwmaContactImpl createContact()
public void setContactFilter(ContactFilter filter)
filter
- an arbitrary ContactFilter.public ContactFilter getContactFilter()
public java.util.Iterator getLastnameStarts()
public void setCategoryFilter(java.lang.String category)
category
- the category which should be listed .public java.lang.String getCategoryFilter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |