1 package org.opencrx.security.realm1.cci; 14 15 public class PrincipalImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefObject_1 17 implements Principal { 18 19 public PrincipalImpl( 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 getLastLoginAt( 30 ) { 31 return getLastLoginAt(0); 32 } 33 34 protected java.util.Date getLastLoginAt( 35 int index 36 ) { 37 return (java.util.Date )this.refGetValue("org:opencrx:security:realm1:Principal:lastLoginAt", index); 38 } 39 40 public void setLastLoginAt( 44 java.util.Date newValue 45 ) { 46 setLastLoginAt(0, newValue); 47 } 48 49 protected void setLastLoginAt( 50 int index, 51 java.util.Date newValue 52 ) { 53 refSetValue("org:opencrx:security:realm1:Principal:lastLoginAt", index, newValue); 54 } 55 public java.util.Date getCreatedAt( 59 ) { 60 return getCreatedAt(0); 61 } 62 63 protected java.util.Date getCreatedAt( 64 int index 65 ) { 66 return (java.util.Date )this.refGetValue("org:openmdx:base:BasicObject:createdAt", index); 67 } 68 69 protected void setCreatedAt( 73 java.util.Date newValue 74 ) { 75 setCreatedAt(0, newValue); 76 } 77 78 protected void setCreatedAt( 79 int index, 80 java.util.Date newValue 81 ) { 82 refSetValue("org:openmdx:base:BasicObject:createdAt", index, newValue); 83 } 84 public java.util.Set getCreatedBy ( 88 ) { 89 return (java.util.Set )this.refGetValue("createdBy"); 90 } 91 protected void setCreatedBy( 95 java.util.Set newValue 96 ) { 97 refSetValue("org:openmdx:base:BasicObject:createdBy", newValue); 98 } 99 100 protected void setCreatedBy( 101 String [] newValue 102 ) { 103 refSetValue("org:openmdx:base:BasicObject:createdBy", newValue); 104 } 105 106 public java.util.Date getModifiedAt( 110 ) { 111 return getModifiedAt(0); 112 } 113 114 protected java.util.Date getModifiedAt( 115 int index 116 ) { 117 return (java.util.Date )this.refGetValue("org:openmdx:base:BasicObject:modifiedAt", index); 118 } 119 120 protected void setModifiedAt( 124 java.util.Date newValue 125 ) { 126 setModifiedAt(0, newValue); 127 } 128 129 protected void setModifiedAt( 130 int index, 131 java.util.Date newValue 132 ) { 133 refSetValue("org:openmdx:base:BasicObject:modifiedAt", index, newValue); 134 } 135 public java.util.Set getModifiedBy ( 139 ) { 140 return (java.util.Set )this.refGetValue("modifiedBy"); 141 } 142 protected void setModifiedBy( 146 java.util.Set newValue 147 ) { 148 refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue); 149 } 150 151 protected void setModifiedBy( 152 String [] newValue 153 ) { 154 refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue); 155 } 156 157 protected void setContext( 161 java.util.List newValue 162 ) { 163 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 164 } 165 166 protected void setContext( 167 org.openmdx.base.cci.Context[] newValue 168 ) { 169 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 170 } 171 172 public org.openmdx.base.cci.Context getContext( 176 String id 177 ) { 178 return (org.openmdx.base.cci.Context)refGetValue( 179 "org:openmdx:base:ContextCapable:context", 180 id 181 ); 182 } 183 184 public java.util.Collection getContext( 188 ) { 189 return (java.util.Collection )refGetValue( 190 "org:openmdx:base:ContextCapable:context" 191 ); 192 } 193 194 protected void addContext ( 198 String id, 199 org.openmdx.base.cci.Context newValue 200 ) { 201 refAddValue( 202 "org:openmdx:base:ContextCapable:context", 203 id, 204 newValue 205 ); 206 } 207 208 protected void addContext ( 212 org.openmdx.base.cci.Context newValue 213 ) { 214 refAddValue( 215 "org:openmdx:base:ContextCapable:context", 216 newValue 217 ); 218 } 219 220 protected void removeContext ( 224 String id 225 ) { 226 refRemoveValue( 227 "org:openmdx:base:ContextCapable:context", 228 id 229 ); 230 } 231 232 public String getIdentity( 236 ) { 237 return getIdentity(0); 238 } 239 240 protected String getIdentity( 241 int index 242 ) { 243 return (String )this.refGetValue("org:openmdx:base:ExtentCapable:identity", index); 244 } 245 246 protected void setIdentity( 250 String newValue 251 ) { 252 setIdentity(0, newValue); 253 } 254 255 protected void setIdentity( 256 int index, 257 String newValue 258 ) { 259 refSetValue("org:openmdx:base:ExtentCapable:identity", index, newValue); 260 } 261 protected void setView( 265 java.util.List newValue 266 ) { 267 refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue); 268 } 269 270 protected void setView( 271 org.openmdx.compatibility.view1.cci.View[] newValue 272 ) { 273 refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue); 274 } 275 276 public org.openmdx.compatibility.view1.cci.View getView( 280 String namespace 281 ) { 282 return (org.openmdx.compatibility.view1.cci.View)refGetValue( 283 "org:openmdx:compatibility:view1:ViewCapable:view", 284 namespace 285 ); 286 } 287 288 public java.util.Collection getView( 292 ) { 293 return (java.util.Collection )refGetValue( 294 "org:openmdx:compatibility:view1:ViewCapable:view" 295 ); 296 } 297 298 public java.util.List getView( 299 org.openmdx.compatibility.view1.cci.ViewFilter filter 300 ) { 301 return ((org.openmdx.compatibility.base.collection.Container)refGetValue( 302 "org:openmdx:compatibility:view1:ViewCapable:view" 303 )).toList(filter); 304 } 305 306 protected void addView ( 310 String namespace, 311 org.openmdx.compatibility.view1.cci.View newValue 312 ) { 313 refAddValue( 314 "org:openmdx:compatibility:view1:ViewCapable:view", 315 namespace, 316 newValue 317 ); 318 } 319 320 protected void addView ( 324 org.openmdx.compatibility.view1.cci.View newValue 325 ) { 326 refAddValue( 327 "org:openmdx:compatibility:view1:ViewCapable:view", 328 newValue 329 ); 330 } 331 332 protected void removeView ( 336 String namespace 337 ) { 338 refRemoveValue( 339 "org:openmdx:compatibility:view1:ViewCapable:view", 340 namespace 341 ); 342 } 343 344 public void setCredential( 348 java.util.List newValue 349 ) { 350 refSetValue("org:openmdx:security:realm1:Principal:credential", newValue); 351 } 352 353 public void setCredential( 354 org.openmdx.security.realm1.cci.Credential[] newValue 355 ) { 356 refSetValue("org:openmdx:security:realm1:Principal:credential", newValue); 357 } 358 359 public org.openmdx.security.realm1.cci.Credential getCredential( 363 int index 364 ) { 365 return (org.openmdx.security.realm1.cci.Credential)refGetValue( 366 "org:openmdx:security:realm1:Principal:credential", 367 new Integer (index) 368 ); 369 } 370 371 public java.util.Collection getCredential( 375 ) { 376 return (java.util.Collection )refGetValue( 377 "org:openmdx:security:realm1:Principal:credential" 378 ); 379 } 380 381 public void addCredential ( 385 int index, 386 org.openmdx.security.realm1.cci.Credential newValue 387 ) { 388 refAddValue( 389 "org:openmdx:security:realm1:Principal:credential", 390 new Integer (index), 391 newValue 392 ); 393 } 394 395 public void addCredential ( 399 org.openmdx.security.realm1.cci.Credential newValue 400 ) { 401 refAddValue( 402 "org:openmdx:security:realm1:Principal:credential", 403 newValue 404 ); 405 } 406 407 public void removeCredential ( 411 int index 412 ) { 413 refRemoveValue( 414 "org:openmdx:security:realm1:Principal:credential", 415 new Integer (index) 416 ); 417 } 418 419 public String getDescription ( 423 ) { 424 return (String )this.refGetValue("description", 0); 425 } 426 public void setDescription( 430 String newValue 431 ) { 432 refSetValue("org:openmdx:security:realm1:Principal:description", 0, newValue); 433 } 434 435 public boolean isDisabled( 439 ) { 440 return isDisabled(0); 441 } 442 443 protected boolean isDisabled( 444 int index 445 ) { 446 return ((Boolean )this.refGetValue("org:openmdx:security:realm1:Principal:disabled", index)).booleanValue(); 447 } 448 449 public void setDisabled( 453 boolean newValue 454 ) { 455 setDisabled(0, newValue); 456 } 457 458 protected void setDisabled( 459 int index, 460 boolean newValue 461 ) { 462 refSetValue("org:openmdx:security:realm1:Principal:disabled", index, new Boolean (newValue)); 463 } 464 public void setIsMemberOf( 468 java.util.List newValue 469 ) { 470 refSetValue("org:openmdx:security:realm1:Principal:isMemberOf", newValue); 471 } 472 473 public void setIsMemberOf( 474 org.openmdx.security.realm1.cci.Group[] newValue 475 ) { 476 refSetValue("org:openmdx:security:realm1:Principal:isMemberOf", newValue); 477 } 478 479 public org.openmdx.security.realm1.cci.Group getIsMemberOf( 483 int index 484 ) { 485 return (org.openmdx.security.realm1.cci.Group)refGetValue( 486 "org:openmdx:security:realm1:Principal:isMemberOf", 487 new Integer (index) 488 ); 489 } 490 491 public java.util.Collection getIsMemberOf( 495 ) { 496 return (java.util.Collection )refGetValue( 497 "org:openmdx:security:realm1:Principal:isMemberOf" 498 ); 499 } 500 501 public void addIsMemberOf ( 505 int index, 506 org.openmdx.security.realm1.cci.Group newValue 507 ) { 508 refAddValue( 509 "org:openmdx:security:realm1:Principal:isMemberOf", 510 new Integer (index), 511 newValue 512 ); 513 } 514 515 public void addIsMemberOf ( 519 org.openmdx.security.realm1.cci.Group newValue 520 ) { 521 refAddValue( 522 "org:openmdx:security:realm1:Principal:isMemberOf", 523 newValue 524 ); 525 } 526 527 public void removeIsMemberOf ( 531 int index 532 ) { 533 refRemoveValue( 534 "org:openmdx:security:realm1:Principal:isMemberOf", 535 new Integer (index) 536 ); 537 } 538 539 public String getName( 543 ) { 544 return getName(0); 545 } 546 547 protected String getName( 548 int index 549 ) { 550 return (String )this.refGetValue("org:openmdx:security:realm1:Principal:name", index); 551 } 552 553 protected void setName( 557 String newValue 558 ) { 559 setName(0, newValue); 560 } 561 562 protected void setName( 563 int index, 564 String newValue 565 ) { 566 refSetValue("org:openmdx:security:realm1:Principal:name", index, newValue); 567 } 568 public org.openmdx.security.realm1.cci.Realm getRealm( 572 ) { 573 return (org.openmdx.security.realm1.cci.Realm)refGetValue( 574 "org:openmdx:security:realm1:Principal:realm" 575 ); 576 } 577 578 protected void setRealm( 582 org.openmdx.security.realm1.cci.Realm newValue 583 ) { 584 refSetValue( 585 "org:openmdx:security:realm1:Principal:realm", 586 newValue 587 ); 588 } 589 590 public org.openmdx.security.realm1.cci.Subject getSubject( 594 ) { 595 return (org.openmdx.security.realm1.cci.Subject)refGetValue( 596 "org:openmdx:security:realm1:Principal:subject" 597 ); 598 } 599 600 public void setSubject( 604 org.openmdx.security.realm1.cci.Subject newValue 605 ) { 606 refSetValue( 607 "org:openmdx:security:realm1:Principal:subject", 608 newValue 609 ); 610 } 611 612 } 616 | Popular Tags |