01: /***
02: * jwma Java WebMail
03: * Copyright (c) 2000-2003 jwma team
04: *
05: * jwma is free software; you can distribute and use this source
06: * under the terms of the BSD-style license received along with
07: * the distribution.
08: ***/package dtw.webmail.model;
09:
10: import java.util.Locale;
11:
12: /**
13: * Interface for <tt>JwmaMailIdentity</tt> implementations.
14: * This is the interface any specialized implementation
15: * has to expose internal to controllers and models.
16: *
17: * @author Dieter Wimberger
18: * @version 0.9.7 07/02/2003
19: */
20: public interface JwmaMailIdentityImpl extends JwmaMailIdentity {
21:
22: /**
23: * Sets the <tt>String</tt> representing the
24: * name of this <tt>JwmaMailIdentity</tt>.
25: *
26: * @param name the name of this <tt>JwmaMailIdentitya</tt>
27: * as <tt>String</tt>.
28: */
29: public void setName(String name);
30:
31: /**
32: * Sets the reply-to mail address of
33: * this <tt>JwmaMailIdentityImpl</tt>.
34: *
35: * @param addr the reply-to mail address as <tt>String</tt>.
36: */
37: public void setReplyTo(String addr);
38:
39: /**
40: * Sets the mail address of this <tt>JwmaMailIdentity</tt>.
41: *
42: * @param addr the mail address as <tt>String</tt>.
43: */
44: public void setFrom(String addr);
45:
46: /**
47: * Sets the signature of this <tt>MailIdentity</tt>.
48: *
49: * @param sig the signature as <tt>String</tt>.
50: */
51: public void setSignature(String sig);
52:
53: /**
54: * Sets the unique identifier of the contact related
55: * with this <tt>MailIdentity</tt>.
56: *
57: * @param uid the unique identifier of related contact as <tt>String</tt>.
58: */
59: public void setRelatedContact(String uid);
60:
61: /**
62: * Sets the flag that controls wheter the signature should
63: * be appended automatically or not.
64: *
65: * @param b true if signature should be appended, false otherwise.
66: */
67: public void setAutoSigning(boolean b);
68:
69: /**
70: * Sets the note of this <tt>JwmaMailIdentity</tt>.
71: *
72: * @param note the note describing or commenting this
73: * <tt>JwmaMailIdentity</tt> as <tt>String</tt>.
74: */
75: public void setNote(String note);
76:
77: /**
78: * Sets the random append type of this
79: * <tt>JwmaMailIdentity</tt>.
80: * <p>
81: * This method will check with the plugin, if the type
82: * is supported or not. If it is not supported, it will
83: * automatically set <tt>RandomAppendPlugin.TYPE_NONE</tt>.
84: * This mechanism is also active when setting the attribute from
85: * a persistent instance, preventing problems when changing
86: * plugin implementations (and supporting other types).
87: *
88: * @param type the type as <tt>String</tt>.
89: * @param loc a <tt>Locale</tt>.
90: */
91: public void setRandomAppendType(String type, Locale loc);
92:
93: }//interface JwmaMailIdentityImpl
|