1 package de.webman.acl; 2 3 import com.teamkonzept.lib.TKException; 4 import com.teamkonzept.lib.TKVector; 5 import de.webman.acl.db.PropertyDBData; 6 7 14 public class Property 15 extends WMObject 16 { 17 18 20 22 25 private Integer login = null; 26 27 30 private String name = null; 31 32 35 private String value = null; 36 37 38 40 45 protected Property (PropertyDBData data) 46 { 47 super(data); 48 49 this.login = data.getLogin(); 50 this.name = data.getName(); 51 this.value = data.getValue(); 52 } 53 54 55 57 63 public final ObjectFactory getFactory () 64 throws TKException 65 { 66 return PropertyFactory.getInstance(); 67 } 68 69 74 public final String getName () 75 { 76 return name; 77 } 78 79 84 public final void setName (String name) 85 { 86 super.modifyAttribute(this.name, name); 87 this.name = name; 88 } 89 90 95 public final String getValue () 96 { 97 return value; 98 } 99 100 105 public final void setValue (String value) 106 { 107 super.modifyAttribute(this.value, value); 108 this.value = value; 109 } 110 111 116 public final Integer getLoginID () 117 { 118 return login; 119 } 120 121 127 public final Login getLogin () 128 throws TKException 129 { 130 return login != null 131 ? (Login) LoginFactory.getInstance().getObject(login) 132 : null; 133 } 134 135 } 136 | Popular Tags |