1 package org.opencrx.kernel.base.cci; 14 15 public class ReferenceReplacementImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefObject_1 17 implements ReferenceReplacement { 18 19 public ReferenceReplacementImpl( 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 org.openmdx.base.cci.BasicObject getNewReference( 30 ) { 31 return (org.openmdx.base.cci.BasicObject)refGetValue( 32 "org:opencrx:kernel:base:ReferenceReplacement:newReference" 33 ); 34 } 35 36 public void setNewReference( 40 org.openmdx.base.cci.BasicObject newValue 41 ) { 42 refSetValue( 43 "org:opencrx:kernel:base:ReferenceReplacement:newReference", 44 newValue 45 ); 46 } 47 48 public void removeNewReference ( 52 ) { 53 refRemoveValue( 54 "org:opencrx:kernel:base:ReferenceReplacement:newReference" 55 ); 56 } 57 public org.openmdx.base.cci.BasicObject getOldReference( 61 ) { 62 return (org.openmdx.base.cci.BasicObject)refGetValue( 63 "org:opencrx:kernel:base:ReferenceReplacement:oldReference" 64 ); 65 } 66 67 public void setOldReference( 71 org.openmdx.base.cci.BasicObject newValue 72 ) { 73 refSetValue( 74 "org:opencrx:kernel:base:ReferenceReplacement:oldReference", 75 newValue 76 ); 77 } 78 79 public void removeOldReference ( 83 ) { 84 refRemoveValue( 85 "org:opencrx:kernel:base:ReferenceReplacement:oldReference" 86 ); 87 } 88 public short getAccessLevelBrowse( 92 ) { 93 return getAccessLevelBrowse(0); 94 } 95 96 protected short getAccessLevelBrowse( 97 int index 98 ) { 99 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:base:SecureObject:accessLevelBrowse", index)).shortValue(); 100 } 101 102 public void setAccessLevelBrowse( 106 short newValue 107 ) { 108 setAccessLevelBrowse(0, newValue); 109 } 110 111 protected void setAccessLevelBrowse( 112 int index, 113 short newValue 114 ) { 115 refSetValue("org:opencrx:kernel:base:SecureObject:accessLevelBrowse", index, new Short (newValue)); 116 } 117 public short getAccessLevelDelete( 121 ) { 122 return getAccessLevelDelete(0); 123 } 124 125 protected short getAccessLevelDelete( 126 int index 127 ) { 128 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:base:SecureObject:accessLevelDelete", index)).shortValue(); 129 } 130 131 public void setAccessLevelDelete( 135 short newValue 136 ) { 137 setAccessLevelDelete(0, newValue); 138 } 139 140 protected void setAccessLevelDelete( 141 int index, 142 short newValue 143 ) { 144 refSetValue("org:opencrx:kernel:base:SecureObject:accessLevelDelete", index, new Short (newValue)); 145 } 146 public short getAccessLevelUpdate( 150 ) { 151 return getAccessLevelUpdate(0); 152 } 153 154 protected short getAccessLevelUpdate( 155 int index 156 ) { 157 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:base:SecureObject:accessLevelUpdate", index)).shortValue(); 158 } 159 160 public void setAccessLevelUpdate( 164 short newValue 165 ) { 166 setAccessLevelUpdate(0, newValue); 167 } 168 169 protected void setAccessLevelUpdate( 170 int index, 171 short newValue 172 ) { 173 refSetValue("org:opencrx:kernel:base:SecureObject:accessLevelUpdate", index, new Short (newValue)); 174 } 175 public org.opencrx.kernel.base.cci.ModifySecureObjectResult addOwningGroup( 179 org.opencrx.kernel.base.cci.ModifyOwningGroupParams params 180 ) throws javax.jmi.reflect.RefException { 181 java.util.List args = new java.util.ArrayList (); 182 args.add(params); 183 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 184 "org:opencrx:kernel:base:SecureObject:addOwningGroup", 185 args 186 ); 187 } 188 189 public org.opencrx.kernel.base.cci.ModifySecureObjectResult addOwningGroup( 190 org.opencrx.security.realm1.cci.PrincipalGroup group 191 , short mode 192 ) throws javax.jmi.reflect.RefException { 193 return addOwningGroup( 194 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createModifyOwningGroupParams( 195 group 196 , mode 197 ) 198 ); 199 } 200 201 public java.util.List getOwner ( 205 ) { 206 return (java.util.List )this.refGetValue("owner"); 207 } 208 public String getOwner( 209 int index 210 ) { 211 return (String )this.refGetValue("org:opencrx:kernel:base:SecureObject:owner", index); 212 } 213 214 protected void setOwner( 218 java.util.List newValue 219 ) { 220 refSetValue("org:opencrx:kernel:base:SecureObject:owner", newValue); 221 } 222 223 protected void setOwner( 224 String [] newValue 225 ) { 226 refSetValue("org:opencrx:kernel:base:SecureObject:owner", newValue); 227 } 228 229 public void setOwningGroup( 233 java.util.List newValue 234 ) { 235 refSetValue("org:opencrx:kernel:base:SecureObject:owningGroup", newValue); 236 } 237 238 public void setOwningGroup( 239 org.opencrx.security.realm1.cci.PrincipalGroup[] newValue 240 ) { 241 refSetValue("org:opencrx:kernel:base:SecureObject:owningGroup", newValue); 242 } 243 244 public org.opencrx.security.realm1.cci.PrincipalGroup getOwningGroup( 248 int index 249 ) { 250 return (org.opencrx.security.realm1.cci.PrincipalGroup)refGetValue( 251 "org:opencrx:kernel:base:SecureObject:owningGroup", 252 new Integer (index) 253 ); 254 } 255 256 public java.util.Collection getOwningGroup( 260 ) { 261 return (java.util.Collection )refGetValue( 262 "org:opencrx:kernel:base:SecureObject:owningGroup" 263 ); 264 } 265 266 public void addOwningGroup ( 270 int index, 271 org.opencrx.security.realm1.cci.PrincipalGroup newValue 272 ) { 273 refAddValue( 274 "org:opencrx:kernel:base:SecureObject:owningGroup", 275 new Integer (index), 276 newValue 277 ); 278 } 279 280 public void addOwningGroup ( 284 org.opencrx.security.realm1.cci.PrincipalGroup newValue 285 ) { 286 refAddValue( 287 "org:opencrx:kernel:base:SecureObject:owningGroup", 288 newValue 289 ); 290 } 291 292 public void removeOwningGroup ( 296 int index 297 ) { 298 refRemoveValue( 299 "org:opencrx:kernel:base:SecureObject:owningGroup", 300 new Integer (index) 301 ); 302 } 303 304 public org.opencrx.security.realm1.cci.User getOwningUser( 308 ) { 309 return (org.opencrx.security.realm1.cci.User)refGetValue( 310 "org:opencrx:kernel:base:SecureObject:owningUser" 311 ); 312 } 313 314 public void setOwningUser( 318 org.opencrx.security.realm1.cci.User newValue 319 ) { 320 refSetValue( 321 "org:opencrx:kernel:base:SecureObject:owningUser", 322 newValue 323 ); 324 } 325 326 public void removeOwningUser ( 330 ) { 331 refRemoveValue( 332 "org:opencrx:kernel:base:SecureObject:owningUser" 333 ); 334 } 335 public org.opencrx.kernel.base.cci.ModifySecureObjectResult removeAllOwningGroup( 339 org.opencrx.kernel.base.cci.RemoveAllOwningGroupParams params 340 ) throws javax.jmi.reflect.RefException { 341 java.util.List args = new java.util.ArrayList (); 342 args.add(params); 343 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 344 "org:opencrx:kernel:base:SecureObject:removeAllOwningGroup", 345 args 346 ); 347 } 348 349 public org.opencrx.kernel.base.cci.ModifySecureObjectResult removeAllOwningGroup( 350 short mode 351 ) throws javax.jmi.reflect.RefException { 352 return removeAllOwningGroup( 353 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createRemoveAllOwningGroupParams( 354 mode 355 ) 356 ); 357 } 358 359 public org.opencrx.kernel.base.cci.ModifySecureObjectResult removeOwningGroup( 363 org.opencrx.kernel.base.cci.ModifyOwningGroupParams params 364 ) throws javax.jmi.reflect.RefException { 365 java.util.List args = new java.util.ArrayList (); 366 args.add(params); 367 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 368 "org:opencrx:kernel:base:SecureObject:removeOwningGroup", 369 args 370 ); 371 } 372 373 public org.opencrx.kernel.base.cci.ModifySecureObjectResult removeOwningGroup( 374 org.opencrx.security.realm1.cci.PrincipalGroup group 375 , short mode 376 ) throws javax.jmi.reflect.RefException { 377 return removeOwningGroup( 378 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createModifyOwningGroupParams( 379 group 380 , mode 381 ) 382 ); 383 } 384 385 public org.opencrx.kernel.base.cci.ModifySecureObjectResult setAccessLevel( 389 org.opencrx.kernel.base.cci.SetAccessLevelParams params 390 ) throws javax.jmi.reflect.RefException { 391 java.util.List args = new java.util.ArrayList (); 392 args.add(params); 393 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 394 "org:opencrx:kernel:base:SecureObject:setAccessLevel", 395 args 396 ); 397 } 398 399 public org.opencrx.kernel.base.cci.ModifySecureObjectResult setAccessLevel( 400 short accessLevelBrowse 401 , short accessLevelDelete 402 , short accessLevelUpdate 403 , short mode 404 ) throws javax.jmi.reflect.RefException { 405 return setAccessLevel( 406 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createSetAccessLevelParams( 407 accessLevelBrowse 408 , accessLevelDelete 409 , accessLevelUpdate 410 , mode 411 ) 412 ); 413 } 414 415 public org.opencrx.kernel.base.cci.ModifySecureObjectResult setOwningUser( 419 org.opencrx.kernel.base.cci.SetOwningUserParams params 420 ) throws javax.jmi.reflect.RefException { 421 java.util.List args = new java.util.ArrayList (); 422 args.add(params); 423 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 424 "org:opencrx:kernel:base:SecureObject:setOwningUser", 425 args 426 ); 427 } 428 429 public org.opencrx.kernel.base.cci.ModifySecureObjectResult setOwningUser( 430 short mode 431 , org.opencrx.security.realm1.cci.User user 432 ) throws javax.jmi.reflect.RefException { 433 return setOwningUser( 434 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createSetOwningUserParams( 435 mode 436 , user 437 ) 438 ); 439 } 440 441 public String getDescription ( 445 ) { 446 return (String )this.refGetValue("description", 0); 447 } 448 public void setDescription( 452 String newValue 453 ) { 454 refSetValue("org:opencrx:kernel:base:TemplateReplacement:description", 0, newValue); 455 } 456 457 public java.util.List getName ( 461 ) { 462 return (java.util.List )this.refGetValue("name"); 463 } 464 public String getName( 465 int index 466 ) { 467 return (String )this.refGetValue("org:opencrx:kernel:base:TemplateReplacement:name", index); 468 } 469 470 public void setName( 474 java.util.List newValue 475 ) { 476 refSetValue("org:opencrx:kernel:base:TemplateReplacement:name", newValue); 477 } 478 479 public void setName( 480 String [] newValue 481 ) { 482 refSetValue("org:opencrx:kernel:base:TemplateReplacement:name", newValue); 483 } 484 485 public java.util.Date getCreatedAt( 489 ) { 490 return getCreatedAt(0); 491 } 492 493 protected java.util.Date getCreatedAt( 494 int index 495 ) { 496 return (java.util.Date )this.refGetValue("org:openmdx:base:BasicObject:createdAt", index); 497 } 498 499 protected void setCreatedAt( 503 java.util.Date newValue 504 ) { 505 setCreatedAt(0, newValue); 506 } 507 508 protected void setCreatedAt( 509 int index, 510 java.util.Date newValue 511 ) { 512 refSetValue("org:openmdx:base:BasicObject:createdAt", index, newValue); 513 } 514 public java.util.Set getCreatedBy ( 518 ) { 519 return (java.util.Set )this.refGetValue("createdBy"); 520 } 521 protected void setCreatedBy( 525 java.util.Set newValue 526 ) { 527 refSetValue("org:openmdx:base:BasicObject:createdBy", newValue); 528 } 529 530 protected void setCreatedBy( 531 String [] newValue 532 ) { 533 refSetValue("org:openmdx:base:BasicObject:createdBy", newValue); 534 } 535 536 public java.util.Date getModifiedAt( 540 ) { 541 return getModifiedAt(0); 542 } 543 544 protected java.util.Date getModifiedAt( 545 int index 546 ) { 547 return (java.util.Date )this.refGetValue("org:openmdx:base:BasicObject:modifiedAt", index); 548 } 549 550 protected void setModifiedAt( 554 java.util.Date newValue 555 ) { 556 setModifiedAt(0, newValue); 557 } 558 559 protected void setModifiedAt( 560 int index, 561 java.util.Date newValue 562 ) { 563 refSetValue("org:openmdx:base:BasicObject:modifiedAt", index, newValue); 564 } 565 public java.util.Set getModifiedBy ( 569 ) { 570 return (java.util.Set )this.refGetValue("modifiedBy"); 571 } 572 protected void setModifiedBy( 576 java.util.Set newValue 577 ) { 578 refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue); 579 } 580 581 protected void setModifiedBy( 582 String [] newValue 583 ) { 584 refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue); 585 } 586 587 protected void setContext( 591 java.util.List newValue 592 ) { 593 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 594 } 595 596 protected void setContext( 597 org.openmdx.base.cci.Context[] newValue 598 ) { 599 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 600 } 601 602 public org.openmdx.base.cci.Context getContext( 606 String id 607 ) { 608 return (org.openmdx.base.cci.Context)refGetValue( 609 "org:openmdx:base:ContextCapable:context", 610 id 611 ); 612 } 613 614 public java.util.Collection getContext( 618 ) { 619 return (java.util.Collection )refGetValue( 620 "org:openmdx:base:ContextCapable:context" 621 ); 622 } 623 624 protected void addContext ( 628 String id, 629 org.openmdx.base.cci.Context newValue 630 ) { 631 refAddValue( 632 "org:openmdx:base:ContextCapable:context", 633 id, 634 newValue 635 ); 636 } 637 638 protected void addContext ( 642 org.openmdx.base.cci.Context newValue 643 ) { 644 refAddValue( 645 "org:openmdx:base:ContextCapable:context", 646 newValue 647 ); 648 } 649 650 protected void removeContext ( 654 String id 655 ) { 656 refRemoveValue( 657 "org:openmdx:base:ContextCapable:context", 658 id 659 ); 660 } 661 662 public String getIdentity( 666 ) { 667 return getIdentity(0); 668 } 669 670 protected String getIdentity( 671 int index 672 ) { 673 return (String )this.refGetValue("org:openmdx:base:ExtentCapable:identity", index); 674 } 675 676 protected void setIdentity( 680 String newValue 681 ) { 682 setIdentity(0, newValue); 683 } 684 685 protected void setIdentity( 686 int index, 687 String newValue 688 ) { 689 refSetValue("org:openmdx:base:ExtentCapable:identity", index, newValue); 690 } 691 protected void setView( 695 java.util.List newValue 696 ) { 697 refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue); 698 } 699 700 protected void setView( 701 org.openmdx.compatibility.view1.cci.View[] newValue 702 ) { 703 refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue); 704 } 705 706 public org.openmdx.compatibility.view1.cci.View getView( 710 String namespace 711 ) { 712 return (org.openmdx.compatibility.view1.cci.View)refGetValue( 713 "org:openmdx:compatibility:view1:ViewCapable:view", 714 namespace 715 ); 716 } 717 718 public java.util.Collection getView( 722 ) { 723 return (java.util.Collection )refGetValue( 724 "org:openmdx:compatibility:view1:ViewCapable:view" 725 ); 726 } 727 728 public java.util.List getView( 729 org.openmdx.compatibility.view1.cci.ViewFilter filter 730 ) { 731 return ((org.openmdx.compatibility.base.collection.Container)refGetValue( 732 "org:openmdx:compatibility:view1:ViewCapable:view" 733 )).toList(filter); 734 } 735 736 protected void addView ( 740 String namespace, 741 org.openmdx.compatibility.view1.cci.View newValue 742 ) { 743 refAddValue( 744 "org:openmdx:compatibility:view1:ViewCapable:view", 745 namespace, 746 newValue 747 ); 748 } 749 750 protected void addView ( 754 org.openmdx.compatibility.view1.cci.View newValue 755 ) { 756 refAddValue( 757 "org:openmdx:compatibility:view1:ViewCapable:view", 758 newValue 759 ); 760 } 761 762 protected void removeView ( 766 String namespace 767 ) { 768 refRemoveValue( 769 "org:openmdx:compatibility:view1:ViewCapable:view", 770 namespace 771 ); 772 } 773 774 } 778 | Popular Tags |