1 package org.openmdx.security.authentication1.cci; 14 15 public class CredentialImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefObject_1 17 implements Credential { 18 19 public CredentialImpl( 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 java.util.Date getCreatedAt( 30 ) { 31 return getCreatedAt(0); 32 } 33 34 protected java.util.Date getCreatedAt( 35 int index 36 ) { 37 return (java.util.Date )this.refGetValue("org:openmdx:base:BasicObject:createdAt", index); 38 } 39 40 protected void setCreatedAt( 44 java.util.Date newValue 45 ) { 46 setCreatedAt(0, newValue); 47 } 48 49 protected void setCreatedAt( 50 int index, 51 java.util.Date newValue 52 ) { 53 refSetValue("org:openmdx:base:BasicObject:createdAt", index, newValue); 54 } 55 public java.util.Set getCreatedBy ( 59 ) { 60 return (java.util.Set )this.refGetValue("createdBy"); 61 } 62 protected void setCreatedBy( 66 java.util.Set newValue 67 ) { 68 refSetValue("org:openmdx:base:BasicObject:createdBy", newValue); 69 } 70 71 protected void setCreatedBy( 72 String [] newValue 73 ) { 74 refSetValue("org:openmdx:base:BasicObject:createdBy", newValue); 75 } 76 77 public java.util.Date getModifiedAt( 81 ) { 82 return getModifiedAt(0); 83 } 84 85 protected java.util.Date getModifiedAt( 86 int index 87 ) { 88 return (java.util.Date )this.refGetValue("org:openmdx:base:BasicObject:modifiedAt", index); 89 } 90 91 protected void setModifiedAt( 95 java.util.Date newValue 96 ) { 97 setModifiedAt(0, newValue); 98 } 99 100 protected void setModifiedAt( 101 int index, 102 java.util.Date newValue 103 ) { 104 refSetValue("org:openmdx:base:BasicObject:modifiedAt", index, newValue); 105 } 106 public java.util.Set getModifiedBy ( 110 ) { 111 return (java.util.Set )this.refGetValue("modifiedBy"); 112 } 113 protected void setModifiedBy( 117 java.util.Set newValue 118 ) { 119 refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue); 120 } 121 122 protected void setModifiedBy( 123 String [] newValue 124 ) { 125 refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue); 126 } 127 128 protected void setContext( 132 java.util.List newValue 133 ) { 134 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 135 } 136 137 protected void setContext( 138 org.openmdx.base.cci.Context[] newValue 139 ) { 140 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 141 } 142 143 public org.openmdx.base.cci.Context getContext( 147 String id 148 ) { 149 return (org.openmdx.base.cci.Context)refGetValue( 150 "org:openmdx:base:ContextCapable:context", 151 id 152 ); 153 } 154 155 public java.util.Collection getContext( 159 ) { 160 return (java.util.Collection )refGetValue( 161 "org:openmdx:base:ContextCapable:context" 162 ); 163 } 164 165 protected void addContext ( 169 String id, 170 org.openmdx.base.cci.Context newValue 171 ) { 172 refAddValue( 173 "org:openmdx:base:ContextCapable:context", 174 id, 175 newValue 176 ); 177 } 178 179 protected void addContext ( 183 org.openmdx.base.cci.Context newValue 184 ) { 185 refAddValue( 186 "org:openmdx:base:ContextCapable:context", 187 newValue 188 ); 189 } 190 191 protected void removeContext ( 195 String id 196 ) { 197 refRemoveValue( 198 "org:openmdx:base:ContextCapable:context", 199 id 200 ); 201 } 202 203 public String getIdentity( 207 ) { 208 return getIdentity(0); 209 } 210 211 protected String getIdentity( 212 int index 213 ) { 214 return (String )this.refGetValue("org:openmdx:base:ExtentCapable:identity", index); 215 } 216 217 protected void setIdentity( 221 String newValue 222 ) { 223 setIdentity(0, newValue); 224 } 225 226 protected void setIdentity( 227 int index, 228 String newValue 229 ) { 230 refSetValue("org:openmdx:base:ExtentCapable:identity", index, newValue); 231 } 232 protected void setView( 236 java.util.List newValue 237 ) { 238 refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue); 239 } 240 241 protected void setView( 242 org.openmdx.compatibility.view1.cci.View[] newValue 243 ) { 244 refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue); 245 } 246 247 public org.openmdx.compatibility.view1.cci.View getView( 251 String namespace 252 ) { 253 return (org.openmdx.compatibility.view1.cci.View)refGetValue( 254 "org:openmdx:compatibility:view1:ViewCapable:view", 255 namespace 256 ); 257 } 258 259 public java.util.Collection getView( 263 ) { 264 return (java.util.Collection )refGetValue( 265 "org:openmdx:compatibility:view1:ViewCapable:view" 266 ); 267 } 268 269 public java.util.List getView( 270 org.openmdx.compatibility.view1.cci.ViewFilter filter 271 ) { 272 return ((org.openmdx.compatibility.base.collection.Container)refGetValue( 273 "org:openmdx:compatibility:view1:ViewCapable:view" 274 )).toList(filter); 275 } 276 277 protected void addView ( 281 String namespace, 282 org.openmdx.compatibility.view1.cci.View newValue 283 ) { 284 refAddValue( 285 "org:openmdx:compatibility:view1:ViewCapable:view", 286 namespace, 287 newValue 288 ); 289 } 290 291 protected void addView ( 295 org.openmdx.compatibility.view1.cci.View newValue 296 ) { 297 refAddValue( 298 "org:openmdx:compatibility:view1:ViewCapable:view", 299 newValue 300 ); 301 } 302 303 protected void removeView ( 307 String namespace 308 ) { 309 refRemoveValue( 310 "org:openmdx:compatibility:view1:ViewCapable:view", 311 namespace 312 ); 313 } 314 315 public String getId( 319 ) { 320 return getId(0); 321 } 322 323 protected String getId( 324 int index 325 ) { 326 return (String )this.refGetValue("org:openmdx:security:authentication1:Credential:id", index); 327 } 328 329 protected void setId( 333 String newValue 334 ) { 335 setId(0, newValue); 336 } 337 338 protected void setId( 339 int index, 340 String newValue 341 ) { 342 refSetValue("org:openmdx:security:authentication1:Credential:id", index, newValue); 343 } 344 public org.openmdx.base.cci.Void reset( 348 org.openmdx.security.authentication1.cci.CredentialResetParams params 349 ) throws javax.jmi.reflect.RefException { 350 java.util.List args = new java.util.ArrayList (); 351 args.add(params); 352 return (org.openmdx.base.cci.Void)refInvokeOperation( 353 "org:openmdx:security:authentication1:Credential:reset", 354 args 355 ); 356 } 357 358 public org.openmdx.base.cci.Void reset( 359 java.util.List resetValue 360 , byte[] value 361 ) throws javax.jmi.reflect.RefException { 362 return reset( 363 ((org.openmdx.security.authentication1.cci.authentication1Package)refOutermostPackage().refPackage("org:openmdx:security:authentication1")).createCredentialResetParams( 364 resetValue 365 , value 366 ) 367 ); 368 } 369 370 public void setResetCredential( 374 java.util.List newValue 375 ) { 376 refSetValue("org:openmdx:security:authentication1:Credential:resetCredential", newValue); 377 } 378 379 public void setResetCredential( 380 org.openmdx.security.authentication1.cci.Credential[] newValue 381 ) { 382 refSetValue("org:openmdx:security:authentication1:Credential:resetCredential", newValue); 383 } 384 385 public org.openmdx.security.authentication1.cci.Credential getResetCredential( 389 int index 390 ) { 391 return (org.openmdx.security.authentication1.cci.Credential)refGetValue( 392 "org:openmdx:security:authentication1:Credential:resetCredential", 393 new Integer (index) 394 ); 395 } 396 397 public java.util.Collection getResetCredential( 401 ) { 402 return (java.util.Collection )refGetValue( 403 "org:openmdx:security:authentication1:Credential:resetCredential" 404 ); 405 } 406 407 public void addResetCredential ( 411 int index, 412 org.openmdx.security.authentication1.cci.Credential newValue 413 ) { 414 refAddValue( 415 "org:openmdx:security:authentication1:Credential:resetCredential", 416 new Integer (index), 417 newValue 418 ); 419 } 420 421 public void addResetCredential ( 425 org.openmdx.security.authentication1.cci.Credential newValue 426 ) { 427 refAddValue( 428 "org:openmdx:security:authentication1:Credential:resetCredential", 429 newValue 430 ); 431 } 432 433 public void removeResetCredential ( 437 int index 438 ) { 439 refRemoveValue( 440 "org:openmdx:security:authentication1:Credential:resetCredential", 441 new Integer (index) 442 ); 443 } 444 445 public boolean isLocked( 449 ) { 450 return isLocked(0); 451 } 452 453 protected boolean isLocked( 454 int index 455 ) { 456 return ((Boolean )this.refGetValue("org:openmdx:security:realm1:Credential:locked", index)).booleanValue(); 457 } 458 459 public void setLocked( 463 boolean newValue 464 ) { 465 setLocked(0, newValue); 466 } 467 468 protected void setLocked( 469 int index, 470 boolean newValue 471 ) { 472 refSetValue("org:openmdx:security:realm1:Credential:locked", index, new Boolean (newValue)); 473 } 474 public org.openmdx.security.realm1.cci.ValidationResult request( 478 org.openmdx.base.cci.Void params 479 ) throws javax.jmi.reflect.RefException { 480 java.util.List args = new java.util.ArrayList (); 481 args.add(params); 482 return (org.openmdx.security.realm1.cci.ValidationResult)refInvokeOperation( 483 "org:openmdx:security:realm1:Credential:request", 484 args 485 ); 486 } 487 488 public org.openmdx.security.realm1.cci.ValidationResult request( 489 ) throws javax.jmi.reflect.RefException { 490 return request( 491 ((org.openmdx.base.cci.basePackage)refOutermostPackage().refPackage("org:openmdx:base")).createVoid( 492 ) 493 ); 494 } 495 496 public org.openmdx.security.realm1.cci.Subject getSubject( 500 ) { 501 return (org.openmdx.security.realm1.cci.Subject)refGetValue( 502 "org:openmdx:security:realm1:Credential:subject" 503 ); 504 } 505 506 public void setSubject( 510 org.openmdx.security.realm1.cci.Subject newValue 511 ) { 512 refSetValue( 513 "org:openmdx:security:realm1:Credential:subject", 514 newValue 515 ); 516 } 517 518 public org.openmdx.security.realm1.cci.ValidationResult validate( 522 org.openmdx.security.realm1.cci.CredentialValidateParams params 523 ) throws javax.jmi.reflect.RefException { 524 java.util.List args = new java.util.ArrayList (); 525 args.add(params); 526 return (org.openmdx.security.realm1.cci.ValidationResult)refInvokeOperation( 527 "org:openmdx:security:realm1:Credential:validate", 528 args 529 ); 530 } 531 532 public org.openmdx.security.realm1.cci.ValidationResult validate( 533 byte[] state 534 , byte[] value 535 ) throws javax.jmi.reflect.RefException { 536 return validate( 537 ((org.openmdx.security.realm1.cci.realm1Package)refOutermostPackage().refPackage("org:openmdx:security:realm1")).createCredentialValidateParams( 538 state 539 , value 540 ) 541 ); 542 } 543 544 } 548 | Popular Tags |