1 16 17 package org.apache.jetspeed.om.security; 18 19 25 public class BaseJetspeedPermission implements Permission 26 { 27 protected String name; 28 protected String id = null; 29 protected boolean isNew = true; 30 31 public BaseJetspeedPermission(String id) 32 { 33 this.id = id; 34 isNew = true; 35 } 36 37 public BaseJetspeedPermission() 38 { 39 isNew = true; 40 } 41 42 47 public String getName() 48 { 49 return name; 50 } 51 52 57 public void setName(String permissionName) 58 { 59 name = permissionName; 60 } 61 62 67 public String getId() 68 { 69 return id; 70 } 71 72 77 public void setId(String id) 78 { 79 if (this.id == null) 80 { 81 this.id = id; 82 } 83 } 84 85 public boolean isNew() 86 { 87 return isNew; 88 } 89 90 void setNew(boolean isNew) 91 { 92 this.isNew = isNew; 93 } 94 95 } 96 97 98 99 100 | Popular Tags |