KickJava   Java API By Example, From Geeks To Geeks.

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


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 org.exoplatform.commons.utils.ExoProperties;
8 import org.exoplatform.services.communication.message.Account;
9 /**
10  * Created by The eXo Platform SARL .
11  * Author : Tuan Nguyen
12  * tuan08@users.sourceforge.net
13  * Date: Jun 14, 2003
14  * Time: 1:12:22 PM
15  * @hibernate.class table="EXO_MESSAGE_ACCOUNT"
16  * @hibernate.cache usage="read-write"
17  */

18 public class AccountImpl implements Account {
19   private String JavaDoc id_ ;
20   private String JavaDoc accountName_ ;
21   private String JavaDoc owner_ ;
22   private String JavaDoc ownerName_ ;
23   private String JavaDoc replyToAddress_ ;
24   private String JavaDoc accessRole_ ;
25   private String JavaDoc signature_ ;
26   private String JavaDoc protocol_ ;
27   
28   private ExoProperties properties_ ;
29
30   public AccountImpl() {
31     properties_ = new ExoProperties(3) ;
32   }
33   
34   /**
35    * @hibernate.id generator-class="assigned"
36    **/

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

43   public String JavaDoc getAccountName() { return accountName_ ; }
44   public void setAccountName(String JavaDoc accountName) {accountName_ = accountName ; }
45   
46   /**
47    * @hibernate.property
48    **/

49   public String JavaDoc getOwner() { return owner_ ; }
50   public void setOwner(String JavaDoc userName) {owner_ = userName ; }
51
52   /**
53    * @hibernate.property
54    **/

55   public String JavaDoc getOwnerName() { return ownerName_ ; }
56   public void setOwnerName(String JavaDoc userName) {ownerName_ = userName ; }
57   
58   /**
59    * @hibernate.property
60    **/

61   public String JavaDoc getReplyToAddress() { return replyToAddress_ ; }
62   public void setReplyToAddress(String JavaDoc address) { replyToAddress_ = address ; }
63   
64   /**
65    * @hibernate.property
66    **/

67   public String JavaDoc getSignature() { return signature_ ; }
68   public void setSignature(String JavaDoc signature) { signature_ = signature ; }
69
70   /**
71    * @hibernate.property
72    **/

73   public String JavaDoc getAccessRole() { return accessRole_ ; }
74   public void setAccessRole(String JavaDoc role) { accessRole_ = role ; }
75   
76   /**
77    * @hibernate.property
78    **/

79   public String JavaDoc getProtocol() { return protocol_ ; }
80   public void setProtocol(String JavaDoc accountType) {protocol_ = accountType ; }
81   
82   /**
83    * @hibernate.property
84    **/

85   public String JavaDoc getPropertiesText() { return properties_.toText() ; }
86   public void setPropertiesText(String JavaDoc text) {
87     properties_.clear() ;
88     properties_.addPropertiesFromText(text) ;
89   }
90   
91   public ExoProperties getProperties() { return properties_ ; }
92   public void setProperties(ExoProperties props) { properties_ = props ; }
93   
94   public String JavaDoc getProperty(String JavaDoc key) { return properties_.getProperty(key) ; }
95   public void setProperty(String JavaDoc key, String JavaDoc value) {
96     properties_.setProperty(key, value) ;
97   }
98 }
Popular Tags