Jwma

dtw.webmail.plugin.std
Class CastorMailIdentity

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

public class CastorMailIdentity
extends AssociatedAbstractIdentifiable
implements JwmaMailIdentityImpl, org.exolab.castor.jdo.TimeStampable

Class implementing a specialized JwmaMailIdentityImpl 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
CastorMailIdentity()
          Constructs a CastorMailIdentity instance.
 
Method Summary
 java.lang.String getFrom()
          Returns a String representing the mail address of this JwmaMailIdentity.
 java.lang.String getName()
          Returns a String representing the name of this JwmaMailIdentity.
 java.lang.String getNote()
          Returns a String representing the note of this JwmaMailIdentity.
 java.lang.String getRandomAppendType()
          Returns a String representing the random append type of this JwmaMailIdentity.
 java.lang.String getRelatedContact()
          Returns the unique identifier of the contact related with this MailIdentity.
 java.lang.String getReplyTo()
          Returns a String representing the reply-to mail address of this JwmaMailIdentity.
 java.lang.String getSignature()
          Returns a String representing the signature of this JwmaMailIdentity.
 boolean isAutoSigning()
          Tests if the signature should be appended automatically for this JwmaMailIdentity.
 boolean isRandomAppendAllowed()
          Tests if this JwmaMailIdentity want's a random string to be appended to a message.
 long jdoGetTimeStamp()
           
 void jdoSetTimeStamp(long timeStamp)
           
 void setAutoSigning(boolean b)
          Sets the flag that controls wheter the signature should be appended automatically or not.
 void setFrom(java.lang.String addr)
          Sets the mail address of this JwmaMailIdentity.
 void setName(java.lang.String name)
          Sets the String representing the name of this JwmaMailIdentity.
 void setNote(java.lang.String note)
          Sets the note of this JwmaMailIdentity.
 void setRandomAppendType(java.lang.String type)
           
 void setRandomAppendType(java.lang.String type, java.util.Locale loc)
          Sets the random append type of this JwmaMailIdentity.
 void setRelatedContact(java.lang.String uid)
          Sets the unique identifier of the contact related with this MailIdentity.
 void setReplyTo(java.lang.String addr)
          Sets the reply-to mail address of this JwmaMailIdentityImpl.
 void setSignature(java.lang.String sig)
          Sets the signature of this MailIdentity.
 
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.JwmaMailIdentity
getUID
 

Constructor Detail

CastorMailIdentity

public CastorMailIdentity()
Constructs a CastorMailIdentity instance.

Method Detail

getName

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

Specified by:
getName in interface JwmaMailIdentity
Returns:
the name of this JwmaMailIdentitya as String.

setName

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

Specified by:
setName in interface JwmaMailIdentityImpl
Parameters:
name - the name of this JwmaMailIdentitya as String.

getReplyTo

public java.lang.String getReplyTo()
Description copied from interface: JwmaMailIdentity
Returns a String representing the reply-to mail address of this JwmaMailIdentity.

Specified by:
getReplyTo in interface JwmaMailIdentity
Returns:
the reply-to mail address as String.

setReplyTo

public void setReplyTo(java.lang.String addr)
Description copied from interface: JwmaMailIdentityImpl
Sets the reply-to mail address of this JwmaMailIdentityImpl.

Specified by:
setReplyTo in interface JwmaMailIdentityImpl
Parameters:
addr - the reply-to mail address as String.

getFrom

public java.lang.String getFrom()
Description copied from interface: JwmaMailIdentity
Returns a String representing the mail address of this JwmaMailIdentity.

Specified by:
getFrom in interface JwmaMailIdentity
Returns:
the mail address as String.

setFrom

public void setFrom(java.lang.String addr)
Description copied from interface: JwmaMailIdentityImpl
Sets the mail address of this JwmaMailIdentity.

Specified by:
setFrom in interface JwmaMailIdentityImpl
Parameters:
addr - the mail address as String.

getSignature

public java.lang.String getSignature()
Description copied from interface: JwmaMailIdentity
Returns a String representing the signature of this JwmaMailIdentity.

Specified by:
getSignature in interface JwmaMailIdentity
Returns:
the standard signature as String.

setSignature

public void setSignature(java.lang.String sig)
Description copied from interface: JwmaMailIdentityImpl
Sets the signature of this MailIdentity.

Specified by:
setSignature in interface JwmaMailIdentityImpl
Parameters:
sig - the signature as String.

getRelatedContact

public java.lang.String getRelatedContact()
Description copied from interface: JwmaMailIdentity
Returns the unique identifier of the contact related with this MailIdentity.

Specified by:
getRelatedContact in interface JwmaMailIdentity
Returns:
the UID of the related contact as String.

setRelatedContact

public void setRelatedContact(java.lang.String uid)
Description copied from interface: JwmaMailIdentityImpl
Sets the unique identifier of the contact related with this MailIdentity.

Specified by:
setRelatedContact in interface JwmaMailIdentityImpl
Parameters:
uid - the unique identifier of related contact as String.

isAutoSigning

public boolean isAutoSigning()
Description copied from interface: JwmaMailIdentity
Tests if the signature should be appended automatically for this JwmaMailIdentity.

Specified by:
isAutoSigning in interface JwmaMailIdentity
Returns:
true if the signature should be appended automatically, false otherwise.

setAutoSigning

public void setAutoSigning(boolean b)
Description copied from interface: JwmaMailIdentityImpl
Sets the flag that controls wheter the signature should be appended automatically or not.

Specified by:
setAutoSigning in interface JwmaMailIdentityImpl
Parameters:
b - true if signature should be appended, false otherwise.

getNote

public java.lang.String getNote()
Description copied from interface: JwmaMailIdentity
Returns a String representing the note of this JwmaMailIdentity.

Specified by:
getNote in interface JwmaMailIdentity
Returns:
the note as String.

setNote

public void setNote(java.lang.String note)
Description copied from interface: JwmaMailIdentityImpl
Sets the note of this JwmaMailIdentity.

Specified by:
setNote in interface JwmaMailIdentityImpl
Parameters:
note - the note describing or commenting this JwmaMailIdentity as String.

getRandomAppendType

public java.lang.String getRandomAppendType()
Description copied from interface: JwmaMailIdentity
Returns a String representing the random append type of this JwmaMailIdentity.

Specified by:
getRandomAppendType in interface JwmaMailIdentity
Returns:
the standard signature as String.

setRandomAppendType

public void setRandomAppendType(java.lang.String type)

setRandomAppendType

public void setRandomAppendType(java.lang.String type,
                                java.util.Locale loc)
Description copied from interface: JwmaMailIdentityImpl
Sets the random append type of this JwmaMailIdentity.

This method will check with the plugin, if the type is supported or not. If it is not supported, it will automatically set RandomAppendPlugin.TYPE_NONE. This mechanism is also active when setting the attribute from a persistent instance, preventing problems when changing plugin implementations (and supporting other types).

Specified by:
setRandomAppendType in interface JwmaMailIdentityImpl
Parameters:
type - the type as String.
loc - a Locale.

isRandomAppendAllowed

public boolean isRandomAppendAllowed()
Description copied from interface: JwmaMailIdentity
Tests if this JwmaMailIdentity want's a random string to be appended to a message.

Specified by:
isRandomAppendAllowed in interface JwmaMailIdentity
Returns:
true if a random string should be appended, 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.)