1 package org.jahia.services.usermanager; 2 3 import java.io.Serializable ; 4 5 public class UserProperty implements Serializable { 6 private String name; 7 private String value; 8 private boolean readOnly; 9 public UserProperty () { 10 } 11 12 public UserProperty(String name, String value, boolean readOnly) { 13 this.name = name; 14 this.value = value; 15 this.readOnly = readOnly; 16 } 17 18 protected UserProperty(UserProperty copy) { 19 this.name = copy.name; 20 this.value = copy.value; 21 this.readOnly = copy.readOnly; 22 } 23 24 public Object clone() { 25 return new UserProperty(this); 26 } 27 28 public void setValue (String value) { 29 this.value = value; 30 } 31 32 public String getName () { 33 return name; 34 } 35 36 public String getValue () { 37 return value; 38 } 39 40 public boolean isReadOnly () { 41 return readOnly; 42 } 43 44 } 45 | Popular Tags |