1 package org.openmdx.security.realm1.cci; 14 15 public class PolicyImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefObject_1 17 implements Policy { 18 19 public PolicyImpl( 20 org.openmdx.base.accessor.generic.cci.Object_1_0 object, 21 javax.jmi.reflect.RefClass refClass 22 ) { 23 super(object, refClass); 24 } 25 26 public String getDescription ( 30 ) { 31 return (String )this.refGetValue("description", 0); 32 } 33 public void setDescription( 37 String newValue 38 ) { 39 refSetValue("org:openmdx:security:realm1:Policy:description", 0, newValue); 40 } 41 42 public String getName( 46 ) { 47 return getName(0); 48 } 49 50 protected String getName( 51 int index 52 ) { 53 return (String )this.refGetValue("org:openmdx:security:realm1:Policy:name", index); 54 } 55 56 protected void setName( 60 String newValue 61 ) { 62 setName(0, newValue); 63 } 64 65 protected void setName( 66 int index, 67 String newValue 68 ) { 69 refSetValue("org:openmdx:security:realm1:Policy:name", index, newValue); 70 } 71 public void setPrivilege( 75 java.util.List newValue 76 ) { 77 refSetValue("org:openmdx:security:realm1:Policy:privilege", newValue); 78 } 79 80 public void setPrivilege( 81 org.openmdx.security.realm1.cci.Privilege[] newValue 82 ) { 83 refSetValue("org:openmdx:security:realm1:Policy:privilege", newValue); 84 } 85 86 public org.openmdx.security.realm1.cci.Privilege getPrivilege( 90 String id 91 ) { 92 return (org.openmdx.security.realm1.cci.Privilege)refGetValue( 93 "org:openmdx:security:realm1:Policy:privilege", 94 id 95 ); 96 } 97 98 public java.util.Collection getPrivilege( 102 ) { 103 return (java.util.Collection )refGetValue( 104 "org:openmdx:security:realm1:Policy:privilege" 105 ); 106 } 107 108 public java.util.List getPrivilege( 109 org.openmdx.security.realm1.cci.PrivilegeFilter filter 110 ) { 111 return ((org.openmdx.compatibility.base.collection.Container)refGetValue( 112 "org:openmdx:security:realm1:Policy:privilege" 113 )).toList(filter); 114 } 115 116 public void addPrivilege ( 120 String id, 121 org.openmdx.security.realm1.cci.Privilege newValue 122 ) { 123 refAddValue( 124 "org:openmdx:security:realm1:Policy:privilege", 125 id, 126 newValue 127 ); 128 } 129 130 public void addPrivilege ( 134 org.openmdx.security.realm1.cci.Privilege newValue 135 ) { 136 refAddValue( 137 "org:openmdx:security:realm1:Policy:privilege", 138 newValue 139 ); 140 } 141 142 public void removePrivilege ( 146 String id 147 ) { 148 refRemoveValue( 149 "org:openmdx:security:realm1:Policy:privilege", 150 id 151 ); 152 } 153 154 public void setRole( 158 java.util.List newValue 159 ) { 160 refSetValue("org:openmdx:security:realm1:Policy:role", newValue); 161 } 162 163 public void setRole( 164 org.openmdx.security.realm1.cci.Role[] newValue 165 ) { 166 refSetValue("org:openmdx:security:realm1:Policy:role", newValue); 167 } 168 169 public org.openmdx.security.realm1.cci.Role getRole( 173 String name 174 ) { 175 return (org.openmdx.security.realm1.cci.Role)refGetValue( 176 "org:openmdx:security:realm1:Policy:role", 177 name 178 ); 179 } 180 181 public java.util.Collection getRole( 185 ) { 186 return (java.util.Collection )refGetValue( 187 "org:openmdx:security:realm1:Policy:role" 188 ); 189 } 190 191 public java.util.List getRole( 192 org.openmdx.security.realm1.cci.RoleFilter filter 193 ) { 194 return ((org.openmdx.compatibility.base.collection.Container)refGetValue( 195 "org:openmdx:security:realm1:Policy:role" 196 )).toList(filter); 197 } 198 199 public void addRole ( 203 String name, 204 org.openmdx.security.realm1.cci.Role newValue 205 ) { 206 refAddValue( 207 "org:openmdx:security:realm1:Policy:role", 208 name, 209 newValue 210 ); 211 } 212 213 public void addRole ( 217 org.openmdx.security.realm1.cci.Role newValue 218 ) { 219 refAddValue( 220 "org:openmdx:security:realm1:Policy:role", 221 newValue 222 ); 223 } 224 225 public void removeRole ( 229 String name 230 ) { 231 refRemoveValue( 232 "org:openmdx:security:realm1:Policy:role", 233 name 234 ); 235 } 236 237 } 241 | Popular Tags |