1 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 18 public class AccountImpl implements Account { 19 private String id_ ; 20 private String accountName_ ; 21 private String owner_ ; 22 private String ownerName_ ; 23 private String replyToAddress_ ; 24 private String accessRole_ ; 25 private String signature_ ; 26 private String protocol_ ; 27 28 private ExoProperties properties_ ; 29 30 public AccountImpl() { 31 properties_ = new ExoProperties(3) ; 32 } 33 34 37 public String getId() { return id_ ; } 38 public void setId(String id) { id_ = id ; } 39 40 43 public String getAccountName() { return accountName_ ; } 44 public void setAccountName(String accountName) {accountName_ = accountName ; } 45 46 49 public String getOwner() { return owner_ ; } 50 public void setOwner(String userName) {owner_ = userName ; } 51 52 55 public String getOwnerName() { return ownerName_ ; } 56 public void setOwnerName(String userName) {ownerName_ = userName ; } 57 58 61 public String getReplyToAddress() { return replyToAddress_ ; } 62 public void setReplyToAddress(String address) { replyToAddress_ = address ; } 63 64 67 public String getSignature() { return signature_ ; } 68 public void setSignature(String signature) { signature_ = signature ; } 69 70 73 public String getAccessRole() { return accessRole_ ; } 74 public void setAccessRole(String role) { accessRole_ = role ; } 75 76 79 public String getProtocol() { return protocol_ ; } 80 public void setProtocol(String accountType) {protocol_ = accountType ; } 81 82 85 public String getPropertiesText() { return properties_.toText() ; } 86 public void setPropertiesText(String 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 getProperty(String key) { return properties_.getProperty(key) ; } 95 public void setProperty(String key, String value) { 96 properties_.setProperty(key, value) ; 97 } 98 } | Popular Tags |