1 23 24 package org.infoglue.cms.entities.management.impl.simple; 25 26 import java.util.ArrayList ; 27 import java.util.Collection ; 28 29 import org.infoglue.cms.entities.kernel.BaseEntityVO; 30 import org.infoglue.cms.entities.management.AccessRight; 31 import org.infoglue.cms.entities.management.AccessRightVO; 32 import org.infoglue.cms.entities.management.InterceptionPoint; 33 34 public class AccessRightImpl implements AccessRight 35 { 36 private AccessRightVO valueObject = new AccessRightVO(); 37 private InterceptionPoint interceptionPoint = null; 38 private Collection roles = new ArrayList (); 39 private Collection groups = new ArrayList (); 40 private Collection users = new ArrayList (); 41 42 public java.lang.Integer getAccessRightId() 43 { 44 return this.valueObject.getAccessRightId(); 45 } 46 47 public Object getIdAsObject() 48 { 49 return getId(); 50 } 51 52 public void setAccessRightId(java.lang.Integer accessRightId) 53 { 54 this.valueObject.setAccessRightId(accessRightId); 55 } 56 57 public java.lang.String getName() 58 { 59 return this.valueObject.getName(); 60 } 61 62 public void setName(java.lang.String name) 63 { 64 this.valueObject.setName(name); 65 } 66 67 public String getParameters() 68 { 69 return this.valueObject.getParameters(); 70 } 71 72 public void setParameters(String parameters) 73 { 74 this.valueObject.setParameters(parameters); 75 } 76 87 public InterceptionPoint getInterceptionPoint() 88 { 89 return this.interceptionPoint; 90 } 91 92 public void setInterceptionPoint(InterceptionPoint interceptionPoint) 93 { 94 this.valueObject.setInterceptionPointId(interceptionPoint.getId()); 95 this.valueObject.setInterceptionPointName(interceptionPoint.getName()); 96 this.interceptionPoint = interceptionPoint; 97 } 98 99 public Integer getId() 100 { 101 return this.getAccessRightId(); 102 } 103 104 public AccessRightVO getValueObject() 105 { 106 return this.valueObject; 107 } 108 109 public void setValueObject(AccessRightVO valueObject) 110 { 111 this.valueObject = valueObject; 112 } 113 114 public BaseEntityVO getVO() 115 { 116 return (BaseEntityVO) getValueObject(); 117 } 118 119 public void setVO(BaseEntityVO valueObject) 120 { 121 setValueObject((AccessRightVO) valueObject); 122 } 123 124 public Collection getGroups() 125 { 126 return groups; 127 } 128 129 public void setGroups(Collection groups) 130 { 131 this.groups = groups; 132 } 133 134 public Collection getRoles() 135 { 136 return roles; 137 } 138 139 public void setRoles(Collection roles) 140 { 141 this.roles = roles; 142 } 143 144 public Collection getUsers() 145 { 146 return users; 147 } 148 149 public void setUsers(Collection users) 150 { 151 this.users = users; 152 } 153 } 154 | Popular Tags |