View Javadoc

1   /*
2    *  DISCLAIMER
3    */
4   
5   package org.flowfuse.base.model;
6   
7   import org.apache.commons.logging.Log;
8   import org.apache.commons.logging.LogFactory;
9   
10  import java.io.File;
11  import java.io.Serializable;
12  
13  /***
14   * <p>A <code>Attachment</code> instance holds a file reference associated
15   * to a particular workflow.  Instances of this class are persisted using
16   * Hibernate.<p>
17   *
18   * <code>
19   * TODO add hibernate workitem
20   * TODO extend BaseObject
21   * </code>
22   *
23   * @author <a href="stefan@flowfuse.org">Stefan Kleineikenscheidt</a>,
24   *         Flowfuse.org
25   * @since 1.0
26   * @version $Id: Attachment.java,v 1.2 2005/11/28 21:48:37 skleinei Exp $
27   */
28  public class Attachment extends BaseObject {
29  
30    /* RCS ID */
31    public final static String rcsid = "$Id: Attachment.java,v 1.2 2005/11/28 21:48:37 skleinei Exp $";
32  
33    /* Logger */
34    protected final Log logger = LogFactory.getLog(this.getClass());
35  
36    /***
37     * The attached file.
38     */
39    File attachment = null;
40  
41    /***
42     * The user id of the user who attached the comment.
43     */
44    String attacher = null;
45  
46    /***
47     * Constructs a new attachment instance.
48     * @param attachment
49     * @param attacher
50     */
51    public Attachment(String attacher, File attachment) {
52      this.attachment = attachment;
53      this.attacher = attacher;
54    }
55  
56    public File getAttachment() {
57      return attachment;
58    }
59  
60    public String getAttacher() {
61      return attacher;
62    }
63  
64    public boolean equals(Object o) {
65      return false;
66    }
67  
68    public int hashCode() {
69      return 0;
70    }
71  
72    public String toString() {
73      return null;
74    }
75  }
76  
77  /* EOF */