1 package org.opencrx.kernel.model1.cci; 14 15 public class EditableAttributeImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefObject_1 17 implements EditableAttribute { 18 19 public EditableAttributeImpl( 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 short getAccessLevelBrowse( 30 ) { 31 return getAccessLevelBrowse(0); 32 } 33 34 protected short getAccessLevelBrowse( 35 int index 36 ) { 37 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:base:SecureObject:accessLevelBrowse", index)).shortValue(); 38 } 39 40 public void setAccessLevelBrowse( 44 short newValue 45 ) { 46 setAccessLevelBrowse(0, newValue); 47 } 48 49 protected void setAccessLevelBrowse( 50 int index, 51 short newValue 52 ) { 53 refSetValue("org:opencrx:kernel:base:SecureObject:accessLevelBrowse", index, new Short (newValue)); 54 } 55 public short getAccessLevelDelete( 59 ) { 60 return getAccessLevelDelete(0); 61 } 62 63 protected short getAccessLevelDelete( 64 int index 65 ) { 66 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:base:SecureObject:accessLevelDelete", index)).shortValue(); 67 } 68 69 public void setAccessLevelDelete( 73 short newValue 74 ) { 75 setAccessLevelDelete(0, newValue); 76 } 77 78 protected void setAccessLevelDelete( 79 int index, 80 short newValue 81 ) { 82 refSetValue("org:opencrx:kernel:base:SecureObject:accessLevelDelete", index, new Short (newValue)); 83 } 84 public short getAccessLevelUpdate( 88 ) { 89 return getAccessLevelUpdate(0); 90 } 91 92 protected short getAccessLevelUpdate( 93 int index 94 ) { 95 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:base:SecureObject:accessLevelUpdate", index)).shortValue(); 96 } 97 98 public void setAccessLevelUpdate( 102 short newValue 103 ) { 104 setAccessLevelUpdate(0, newValue); 105 } 106 107 protected void setAccessLevelUpdate( 108 int index, 109 short newValue 110 ) { 111 refSetValue("org:opencrx:kernel:base:SecureObject:accessLevelUpdate", index, new Short (newValue)); 112 } 113 public org.opencrx.kernel.base.cci.ModifySecureObjectResult addOwningGroup( 117 org.opencrx.kernel.base.cci.ModifyOwningGroupParams params 118 ) throws javax.jmi.reflect.RefException { 119 java.util.List args = new java.util.ArrayList (); 120 args.add(params); 121 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 122 "org:opencrx:kernel:base:SecureObject:addOwningGroup", 123 args 124 ); 125 } 126 127 public org.opencrx.kernel.base.cci.ModifySecureObjectResult addOwningGroup( 128 org.opencrx.security.realm1.cci.PrincipalGroup group 129 , short mode 130 ) throws javax.jmi.reflect.RefException { 131 return addOwningGroup( 132 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createModifyOwningGroupParams( 133 group 134 , mode 135 ) 136 ); 137 } 138 139 public java.util.List getOwner ( 143 ) { 144 return (java.util.List )this.refGetValue("owner"); 145 } 146 public String getOwner( 147 int index 148 ) { 149 return (String )this.refGetValue("org:opencrx:kernel:base:SecureObject:owner", index); 150 } 151 152 protected void setOwner( 156 java.util.List newValue 157 ) { 158 refSetValue("org:opencrx:kernel:base:SecureObject:owner", newValue); 159 } 160 161 protected void setOwner( 162 String [] newValue 163 ) { 164 refSetValue("org:opencrx:kernel:base:SecureObject:owner", newValue); 165 } 166 167 public void setOwningGroup( 171 java.util.List newValue 172 ) { 173 refSetValue("org:opencrx:kernel:base:SecureObject:owningGroup", newValue); 174 } 175 176 public void setOwningGroup( 177 org.opencrx.security.realm1.cci.PrincipalGroup[] newValue 178 ) { 179 refSetValue("org:opencrx:kernel:base:SecureObject:owningGroup", newValue); 180 } 181 182 public org.opencrx.security.realm1.cci.PrincipalGroup getOwningGroup( 186 int index 187 ) { 188 return (org.opencrx.security.realm1.cci.PrincipalGroup)refGetValue( 189 "org:opencrx:kernel:base:SecureObject:owningGroup", 190 new Integer (index) 191 ); 192 } 193 194 public java.util.Collection getOwningGroup( 198 ) { 199 return (java.util.Collection )refGetValue( 200 "org:opencrx:kernel:base:SecureObject:owningGroup" 201 ); 202 } 203 204 public void addOwningGroup ( 208 int index, 209 org.opencrx.security.realm1.cci.PrincipalGroup newValue 210 ) { 211 refAddValue( 212 "org:opencrx:kernel:base:SecureObject:owningGroup", 213 new Integer (index), 214 newValue 215 ); 216 } 217 218 public void addOwningGroup ( 222 org.opencrx.security.realm1.cci.PrincipalGroup newValue 223 ) { 224 refAddValue( 225 "org:opencrx:kernel:base:SecureObject:owningGroup", 226 newValue 227 ); 228 } 229 230 public void removeOwningGroup ( 234 int index 235 ) { 236 refRemoveValue( 237 "org:opencrx:kernel:base:SecureObject:owningGroup", 238 new Integer (index) 239 ); 240 } 241 242 public org.opencrx.security.realm1.cci.User getOwningUser( 246 ) { 247 return (org.opencrx.security.realm1.cci.User)refGetValue( 248 "org:opencrx:kernel:base:SecureObject:owningUser" 249 ); 250 } 251 252 public void setOwningUser( 256 org.opencrx.security.realm1.cci.User newValue 257 ) { 258 refSetValue( 259 "org:opencrx:kernel:base:SecureObject:owningUser", 260 newValue 261 ); 262 } 263 264 public void removeOwningUser ( 268 ) { 269 refRemoveValue( 270 "org:opencrx:kernel:base:SecureObject:owningUser" 271 ); 272 } 273 public org.opencrx.kernel.base.cci.ModifySecureObjectResult removeAllOwningGroup( 277 org.opencrx.kernel.base.cci.RemoveAllOwningGroupParams params 278 ) throws javax.jmi.reflect.RefException { 279 java.util.List args = new java.util.ArrayList (); 280 args.add(params); 281 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 282 "org:opencrx:kernel:base:SecureObject:removeAllOwningGroup", 283 args 284 ); 285 } 286 287 public org.opencrx.kernel.base.cci.ModifySecureObjectResult removeAllOwningGroup( 288 short mode 289 ) throws javax.jmi.reflect.RefException { 290 return removeAllOwningGroup( 291 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createRemoveAllOwningGroupParams( 292 mode 293 ) 294 ); 295 } 296 297 public org.opencrx.kernel.base.cci.ModifySecureObjectResult removeOwningGroup( 301 org.opencrx.kernel.base.cci.ModifyOwningGroupParams params 302 ) throws javax.jmi.reflect.RefException { 303 java.util.List args = new java.util.ArrayList (); 304 args.add(params); 305 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 306 "org:opencrx:kernel:base:SecureObject:removeOwningGroup", 307 args 308 ); 309 } 310 311 public org.opencrx.kernel.base.cci.ModifySecureObjectResult removeOwningGroup( 312 org.opencrx.security.realm1.cci.PrincipalGroup group 313 , short mode 314 ) throws javax.jmi.reflect.RefException { 315 return removeOwningGroup( 316 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createModifyOwningGroupParams( 317 group 318 , mode 319 ) 320 ); 321 } 322 323 public org.opencrx.kernel.base.cci.ModifySecureObjectResult setAccessLevel( 327 org.opencrx.kernel.base.cci.SetAccessLevelParams params 328 ) throws javax.jmi.reflect.RefException { 329 java.util.List args = new java.util.ArrayList (); 330 args.add(params); 331 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 332 "org:opencrx:kernel:base:SecureObject:setAccessLevel", 333 args 334 ); 335 } 336 337 public org.opencrx.kernel.base.cci.ModifySecureObjectResult setAccessLevel( 338 short accessLevelBrowse 339 , short accessLevelDelete 340 , short accessLevelUpdate 341 , short mode 342 ) throws javax.jmi.reflect.RefException { 343 return setAccessLevel( 344 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createSetAccessLevelParams( 345 accessLevelBrowse 346 , accessLevelDelete 347 , accessLevelUpdate 348 , mode 349 ) 350 ); 351 } 352 353 public org.opencrx.kernel.base.cci.ModifySecureObjectResult setOwningUser( 357 org.opencrx.kernel.base.cci.SetOwningUserParams params 358 ) throws javax.jmi.reflect.RefException { 359 java.util.List args = new java.util.ArrayList (); 360 args.add(params); 361 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 362 "org:opencrx:kernel:base:SecureObject:setOwningUser", 363 args 364 ); 365 } 366 367 public org.opencrx.kernel.base.cci.ModifySecureObjectResult setOwningUser( 368 short mode 369 , org.opencrx.security.realm1.cci.User user 370 ) throws javax.jmi.reflect.RefException { 371 return setOwningUser( 372 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createSetOwningUserParams( 373 mode 374 , user 375 ) 376 ); 377 } 378 379 public Integer getMaxLength ( 383 ) { 384 return (Integer )this.refGetValue("maxLength", 0); 385 } 386 public void setMaxLength( 390 Integer newValue 391 ) { 392 refSetValue("org:opencrx:kernel:model1:EditableAttribute:maxLength", 0, newValue); 393 } 394 395 public short getMultiplicity( 399 ) { 400 return getMultiplicity(0); 401 } 402 403 protected short getMultiplicity( 404 int index 405 ) { 406 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:model1:EditableAttribute:multiplicity", index)).shortValue(); 407 } 408 409 public void setMultiplicity( 413 short newValue 414 ) { 415 setMultiplicity(0, newValue); 416 } 417 418 protected void setMultiplicity( 419 int index, 420 short newValue 421 ) { 422 refSetValue("org:opencrx:kernel:model1:EditableAttribute:multiplicity", index, new Short (newValue)); 423 } 424 public String getUpperBound ( 428 ) { 429 return (String )this.refGetValue("upperBound", 0); 430 } 431 public void setUpperBound( 435 String newValue 436 ) { 437 refSetValue("org:opencrx:kernel:model1:EditableAttribute:upperBound", 0, newValue); 438 } 439 440 public String getAnnotation ( 444 ) { 445 return (String )this.refGetValue("annotation", 0); 446 } 447 public void setAnnotation( 451 String newValue 452 ) { 453 refSetValue("org:opencrx:kernel:model1:EditableElement:annotation", 0, newValue); 454 } 455 456 public org.opencrx.kernel.model1.cci.Element getBasedOn( 460 ) { 461 return (org.opencrx.kernel.model1.cci.Element)refGetValue( 462 "org:opencrx:kernel:model1:EditableElement:basedOn" 463 ); 464 } 465 466 protected void setBasedOn( 470 org.opencrx.kernel.model1.cci.Element newValue 471 ) { 472 refSetValue( 473 "org:opencrx:kernel:model1:EditableElement:basedOn", 474 newValue 475 ); 476 } 477 478 protected void removeBasedOn ( 482 ) { 483 refRemoveValue( 484 "org:opencrx:kernel:model1:EditableElement:basedOn" 485 ); 486 } 487 public Integer getElementOrder ( 491 ) { 492 return (Integer )this.refGetValue("elementOrder", 0); 493 } 494 public void setElementOrder( 498 Integer newValue 499 ) { 500 refSetValue("org:opencrx:kernel:model1:EditableElement:elementOrder", 0, newValue); 501 } 502 503 public String getName( 507 ) { 508 return getName(0); 509 } 510 511 protected String getName( 512 int index 513 ) { 514 return (String )this.refGetValue("org:opencrx:kernel:model1:EditableElement:name", index); 515 } 516 517 public void setName( 521 String newValue 522 ) { 523 setName(0, newValue); 524 } 525 526 protected void setName( 527 int index, 528 String newValue 529 ) { 530 refSetValue("org:opencrx:kernel:model1:EditableElement:name", index, newValue); 531 } 532 public org.opencrx.kernel.model1.cci.Classifier getType( 536 ) { 537 return (org.opencrx.kernel.model1.cci.Classifier)refGetValue( 538 "org:opencrx:kernel:model1:EditableTypedElement:type" 539 ); 540 } 541 542 public void setType( 546 org.opencrx.kernel.model1.cci.Classifier newValue 547 ) { 548 refSetValue( 549 "org:opencrx:kernel:model1:EditableTypedElement:type", 550 newValue 551 ); 552 } 553 554 public void removeType ( 558 ) { 559 refRemoveValue( 560 "org:opencrx:kernel:model1:EditableTypedElement:type" 561 ); 562 } 563 public String getTypeName ( 567 ) { 568 return (String )this.refGetValue("typeName", 0); 569 } 570 public void setTypeName( 574 String newValue 575 ) { 576 refSetValue("org:opencrx:kernel:model1:EditableTypedElement:typeName", 0, newValue); 577 } 578 579 public java.util.Date getCreatedAt( 583 ) { 584 return getCreatedAt(0); 585 } 586 587 protected java.util.Date getCreatedAt( 588 int index 589 ) { 590 return (java.util.Date )this.refGetValue("org:openmdx:base:BasicObject:createdAt", index); 591 } 592 593 protected void setCreatedAt( 597 java.util.Date newValue 598 ) { 599 setCreatedAt(0, newValue); 600 } 601 602 protected void setCreatedAt( 603 int index, 604 java.util.Date newValue 605 ) { 606 refSetValue("org:openmdx:base:BasicObject:createdAt", index, newValue); 607 } 608 public java.util.Set getCreatedBy ( 612 ) { 613 return (java.util.Set )this.refGetValue("createdBy"); 614 } 615 protected void setCreatedBy( 619 java.util.Set newValue 620 ) { 621 refSetValue("org:openmdx:base:BasicObject:createdBy", newValue); 622 } 623 624 protected void setCreatedBy( 625 String [] newValue 626 ) { 627 refSetValue("org:openmdx:base:BasicObject:createdBy", newValue); 628 } 629 630 public java.util.Date getModifiedAt( 634 ) { 635 return getModifiedAt(0); 636 } 637 638 protected java.util.Date getModifiedAt( 639 int index 640 ) { 641 return (java.util.Date )this.refGetValue("org:openmdx:base:BasicObject:modifiedAt", index); 642 } 643 644 protected void setModifiedAt( 648 java.util.Date newValue 649 ) { 650 setModifiedAt(0, newValue); 651 } 652 653 protected void setModifiedAt( 654 int index, 655 java.util.Date newValue 656 ) { 657 refSetValue("org:openmdx:base:BasicObject:modifiedAt", index, newValue); 658 } 659 public java.util.Set getModifiedBy ( 663 ) { 664 return (java.util.Set )this.refGetValue("modifiedBy"); 665 } 666 protected void setModifiedBy( 670 java.util.Set newValue 671 ) { 672 refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue); 673 } 674 675 protected void setModifiedBy( 676 String [] newValue 677 ) { 678 refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue); 679 } 680 681 protected void setContext( 685 java.util.List newValue 686 ) { 687 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 688 } 689 690 protected void setContext( 691 org.openmdx.base.cci.Context[] newValue 692 ) { 693 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 694 } 695 696 public org.openmdx.base.cci.Context getContext( 700 String id 701 ) { 702 return (org.openmdx.base.cci.Context)refGetValue( 703 "org:openmdx:base:ContextCapable:context", 704 id 705 ); 706 } 707 708 public java.util.Collection getContext( 712 ) { 713 return (java.util.Collection )refGetValue( 714 "org:openmdx:base:ContextCapable:context" 715 ); 716 } 717 718 protected void addContext ( 722 String id, 723 org.openmdx.base.cci.Context newValue 724 ) { 725 refAddValue( 726 "org:openmdx:base:ContextCapable:context", 727 id, 728 newValue 729 ); 730 } 731 732 protected void addContext ( 736 org.openmdx.base.cci.Context newValue 737 ) { 738 refAddValue( 739 "org:openmdx:base:ContextCapable:context", 740 newValue 741 ); 742 } 743 744 protected void removeContext ( 748 String id 749 ) { 750 refRemoveValue( 751 "org:openmdx:base:ContextCapable:context", 752 id 753 ); 754 } 755 756 public String getIdentity( 760 ) { 761 return getIdentity(0); 762 } 763 764 protected String getIdentity( 765 int index 766 ) { 767 return (String )this.refGetValue("org:openmdx:base:ExtentCapable:identity", index); 768 } 769 770 protected void setIdentity( 774 String newValue 775 ) { 776 setIdentity(0, newValue); 777 } 778 779 protected void setIdentity( 780 int index, 781 String newValue 782 ) { 783 refSetValue("org:openmdx:base:ExtentCapable:identity", index, newValue); 784 } 785 protected void setView( 789 java.util.List newValue 790 ) { 791 refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue); 792 } 793 794 protected void setView( 795 org.openmdx.compatibility.view1.cci.View[] newValue 796 ) { 797 refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue); 798 } 799 800 public org.openmdx.compatibility.view1.cci.View getView( 804 String namespace 805 ) { 806 return (org.openmdx.compatibility.view1.cci.View)refGetValue( 807 "org:openmdx:compatibility:view1:ViewCapable:view", 808 namespace 809 ); 810 } 811 812 public java.util.Collection getView( 816 ) { 817 return (java.util.Collection )refGetValue( 818 "org:openmdx:compatibility:view1:ViewCapable:view" 819 ); 820 } 821 822 public java.util.List getView( 823 org.openmdx.compatibility.view1.cci.ViewFilter filter 824 ) { 825 return ((org.openmdx.compatibility.base.collection.Container)refGetValue( 826 "org:openmdx:compatibility:view1:ViewCapable:view" 827 )).toList(filter); 828 } 829 830 protected void addView ( 834 String namespace, 835 org.openmdx.compatibility.view1.cci.View newValue 836 ) { 837 refAddValue( 838 "org:openmdx:compatibility:view1:ViewCapable:view", 839 namespace, 840 newValue 841 ); 842 } 843 844 protected void addView ( 848 org.openmdx.compatibility.view1.cci.View newValue 849 ) { 850 refAddValue( 851 "org:openmdx:compatibility:view1:ViewCapable:view", 852 newValue 853 ); 854 } 855 856 protected void removeView ( 860 String namespace 861 ) { 862 refRemoveValue( 863 "org:openmdx:compatibility:view1:ViewCapable:view", 864 namespace 865 ); 866 } 867 868 } 872 | Popular Tags |