1 package de.webman.acl; 2 3 import com.teamkonzept.lib.TKException; 4 import com.teamkonzept.lib.TKVector; 5 import de.webman.acl.db.ContextDBData; 6 7 14 public class Context 15 extends WMObject 16 { 17 18 20 22 25 private String name = null; 26 27 30 private String shortcut = null; 31 32 33 35 40 protected Context (ContextDBData data) 41 { 42 super(data); 43 44 this.name = data.getName(); 45 this.shortcut = data.getShortcut(); 46 } 47 48 49 51 57 public final ObjectFactory getFactory () 58 throws TKException 59 { 60 return ContextFactory.getInstance(); 61 } 62 63 68 public final String getName () 69 { 70 return name; 71 } 72 73 78 public final void setName (String name) 79 { 80 super.modifyAttribute(this.name, name); 81 this.name = name; 82 } 83 84 89 public final String getShortcut () 90 { 91 return shortcut; 92 } 93 94 99 public final void setShortcut (String shortcut) 100 { 101 super.modifyAttribute(this.shortcut, shortcut); 102 this.shortcut = shortcut; 103 } 104 105 111 public final TKVector getTasks () 112 throws TKException 113 { 114 return TaskFactory.getInstance().getTasks(this); 115 } 116 117 } 118 | Popular Tags |