KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > communication > message > impl > FolderImpl


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.services.communication.message.impl;
6
7 import java.util.Date JavaDoc;
8 import org.exoplatform.services.communication.message.Folder;
9 /**
10  * Created by The eXo Platform SARL .
11  * Author : Tuan Nguyen
12  * tuan08@users.sourceforge.net
13  * Author : Benjamin Mestrallet
14  * benjamin.mestrallet@exoplatform.com
15  * Date: Jun 14, 2003
16  * Time: 1:12:22 PM
17  * @hibernate.class table="EXO_MESSAGE_FOLDER"
18  * @hibernate.cache usage="read-write"
19  */

20 public class FolderImpl implements Folder {
21   private String JavaDoc id_ ;
22   private String JavaDoc accountId_ ;
23   private String JavaDoc name_ ;
24   private String JavaDoc label_ ;
25   private Date JavaDoc createdDate_ ;
26   private boolean removeable_ = true ;
27   
28   public FolderImpl() {}
29   
30   public FolderImpl(String JavaDoc name , String JavaDoc label, String JavaDoc accountId) {
31     name_ = name ;
32     label_ = label ;
33     accountId_ = accountId ;
34   }
35   
36   /**
37    * @hibernate.id generator-class="assigned"
38    **/

39   public String JavaDoc getId() { return id_ ; }
40   public void setId(String JavaDoc value) { id_ = value; }
41
42   /**
43    * @hibernate.property
44    **/

45   public String JavaDoc getAccountId() { return accountId_ ; }
46   public void setAccountId(String JavaDoc value) { accountId_ = value ; }
47   
48   /**
49    * @hibernate.property
50    **/

51   public String JavaDoc getName() {return name_;}
52   public void setName(String JavaDoc name) { name_ = name;}
53   
54   /**
55    * @hibernate.property
56    **/

57   public String JavaDoc getLabel() { return label_ ; }
58   public void setLabel(String JavaDoc label) { label_ = label ;}
59   
60   /**
61    * @hibernate.property
62    **/

63   public Date JavaDoc getCreatedDate() { return createdDate_ ; }
64   public void setCreatedDate(Date JavaDoc date) { createdDate_ = date ;}
65   
66   /**
67    * @hibernate.property
68    **/

69   public boolean getRemoveable() { return removeable_ ; }
70   public void setRemoveable(boolean b) { removeable_ = b ;}
71 }
Popular Tags