Jwma

dtw.webmail.plugin.std
Class CastorContactGroup

java.lang.Object
  |
  +--dtw.webmail.util.AbstractIdentifiable
        |
        +--dtw.webmail.util.AssociatedAbstractIdentifiable
              |
              +--dtw.webmail.plugin.std.CastorContactGroup
All Implemented Interfaces:
Identifiable, JwmaContactGroup, JwmaContactGroupImpl, org.exolab.castor.jdo.TimeStampable

public class CastorContactGroup
extends AssociatedAbstractIdentifiable
implements JwmaContactGroupImpl, org.exolab.castor.jdo.TimeStampable

Class implementing a specialized JwmaContactGroupImpl for being persisted with the Castor Plugins.

Version:
0.9.7 07/02/2003
Author:
Dieter Wimberger

Field Summary
 
Fields inherited from interface org.exolab.castor.jdo.TimeStampable
NO_TIMESTAMP
 
Constructor Summary
CastorContactGroup()
           
CastorContactGroup(CastorContacts ctdb)
           
CastorContactGroup(CastorContacts ctdb, java.lang.String name)
           
 
Method Summary
 void addContact(JwmaContactImpl con)
          Adds a JwmaContactImpl instance to this contact database.
protected  void addContactID(java.lang.String uid)
           
 boolean containsContact(java.lang.String uid)
          Tests if this JwmaContactGroupImpl contains a contact with the given unique identifier.
 java.lang.String getComments()
          Returns the comments about this JwmaContactGroup.
 java.lang.String getContactIDList()
          Used by castor to get list for persistence.
 java.util.List getContacts()
           
 java.lang.String getName()
          Returns the name of this JwmaContactGroup.
 long jdoGetTimeStamp()
           
 void jdoSetTimeStamp(long timeStamp)
           
protected  java.lang.String[] listContactIDs()
           
 JwmaContact[] listContacts()
          Returns an array of contacts containing all contacts in this contact group.
 void removeContact(JwmaContactImpl con)
          Removes a JwmaContactImpl instance from this contact database.
protected  void removeContactID(java.lang.String uid)
           
 void setComments(java.lang.String comments)
          Sets the comments about this JwmaContactGroupImpl.
 void setContactIDList(java.lang.String list)
          Used by castor to set list from persistent store.
 void setContactsDB(CastorContacts contacts)
           
 void setName(java.lang.String name)
          Sets the name of this JwmaContactGroupImpl.
 
Methods inherited from class dtw.webmail.util.AssociatedAbstractIdentifiable
getAssociatorUID, isAssociated, resetAssociatorUID, setAssociatorUID
 
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.JwmaContactGroup
getUID
 

Constructor Detail

CastorContactGroup

public CastorContactGroup()

CastorContactGroup

public CastorContactGroup(CastorContacts ctdb)

CastorContactGroup

public CastorContactGroup(CastorContacts ctdb,
                          java.lang.String name)
Method Detail

setContactsDB

public void setContactsDB(CastorContacts contacts)

getName

public java.lang.String getName()
Description copied from interface: JwmaContactGroup
Returns the name of this JwmaContactGroup.

Specified by:
getName in interface JwmaContactGroup
Returns:
the name of this group as String.

setName

public void setName(java.lang.String name)
Description copied from interface: JwmaContactGroupImpl
Sets the name of this JwmaContactGroupImpl.

Specified by:
setName in interface JwmaContactGroupImpl
Parameters:
name - the name of this group as String.

getComments

public java.lang.String getComments()
Description copied from interface: JwmaContactGroup
Returns the comments about this JwmaContactGroup.

Specified by:
getComments in interface JwmaContactGroup
Returns:
the comments about this group as String.

setComments

public void setComments(java.lang.String comments)
Description copied from interface: JwmaContactGroupImpl
Sets the comments about this JwmaContactGroupImpl.

Specified by:
setComments in interface JwmaContactGroupImpl
Parameters:
comments - the comments about this group as String.

getContactIDList

public java.lang.String getContactIDList()
Used by castor to get list for persistence.


setContactIDList

public void setContactIDList(java.lang.String list)
Used by castor to set list from persistent store.


addContactID

protected void addContactID(java.lang.String uid)

removeContactID

protected void removeContactID(java.lang.String uid)

listContactIDs

protected java.lang.String[] listContactIDs()

listContacts

public JwmaContact[] listContacts()
Description copied from interface: JwmaContactGroup
Returns an array of contacts containing all contacts in this contact group.

If this contact group does not contain any contacts, then this method returns an empty array. Otherwise it contains one JwmaContact for each entry in this contact group.

Specified by:
listContacts in interface JwmaContactGroup
Returns:
an array of JwmaContact's.

getContacts

public java.util.List getContacts()

addContact

public void addContact(JwmaContactImpl con)
Description copied from interface: JwmaContactGroupImpl
Adds a JwmaContactImpl instance to this contact database.

Specified by:
addContact in interface JwmaContactGroupImpl
Parameters:
con - the JwmaContactImpl to be added.

removeContact

public void removeContact(JwmaContactImpl con)
Description copied from interface: JwmaContactGroupImpl
Removes a JwmaContactImpl instance from this contact database.

Specified by:
removeContact in interface JwmaContactGroupImpl
Parameters:
con - the JwmaContactImpl to be removed.

containsContact

public boolean containsContact(java.lang.String uid)
Description copied from interface: JwmaContactGroupImpl
Tests if this JwmaContactGroupImpl contains a contact with the given unique identifier.

Specified by:
containsContact in interface JwmaContactGroupImpl
Parameters:
uid - a unique identifier of a contact.
Returns:
true if contained, false otherwise.

jdoGetTimeStamp

public long jdoGetTimeStamp()
Specified by:
jdoGetTimeStamp in interface org.exolab.castor.jdo.TimeStampable

jdoSetTimeStamp

public void jdoSetTimeStamp(long timeStamp)
Specified by:
jdoSetTimeStamp in interface org.exolab.castor.jdo.TimeStampable

Jwma

Copyright © 2000-2003 jwma team (All Rights Reserved.)