1 package org.opencrx.kernel.uom1.cci; 14 15 public class UomImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefObject_1 17 implements Uom { 18 19 public UomImpl( 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.opencrx.kernel.base.cci.ImportResult importItem( 30 org.opencrx.kernel.base.cci.ImportParams params 31 ) throws javax.jmi.reflect.RefException { 32 java.util.List args = new java.util.ArrayList (); 33 args.add(params); 34 return (org.opencrx.kernel.base.cci.ImportResult)refInvokeOperation( 35 "org:opencrx:kernel:base:Importer:importItem", 36 args 37 ); 38 } 39 40 public org.opencrx.kernel.base.cci.ImportResult importItem( 41 byte[] item 42 , String itemMimeType 43 , String itemName 44 , short locale 45 ) throws javax.jmi.reflect.RefException { 46 return importItem( 47 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createImportParams( 48 item 49 , itemMimeType 50 , itemName 51 , locale 52 ) 53 ); 54 } 55 56 public short getAccessLevelBrowse( 60 ) { 61 return getAccessLevelBrowse(0); 62 } 63 64 protected short getAccessLevelBrowse( 65 int index 66 ) { 67 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:base:SecureObject:accessLevelBrowse", index)).shortValue(); 68 } 69 70 public void setAccessLevelBrowse( 74 short newValue 75 ) { 76 setAccessLevelBrowse(0, newValue); 77 } 78 79 protected void setAccessLevelBrowse( 80 int index, 81 short newValue 82 ) { 83 refSetValue("org:opencrx:kernel:base:SecureObject:accessLevelBrowse", index, new Short (newValue)); 84 } 85 public short getAccessLevelDelete( 89 ) { 90 return getAccessLevelDelete(0); 91 } 92 93 protected short getAccessLevelDelete( 94 int index 95 ) { 96 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:base:SecureObject:accessLevelDelete", index)).shortValue(); 97 } 98 99 public void setAccessLevelDelete( 103 short newValue 104 ) { 105 setAccessLevelDelete(0, newValue); 106 } 107 108 protected void setAccessLevelDelete( 109 int index, 110 short newValue 111 ) { 112 refSetValue("org:opencrx:kernel:base:SecureObject:accessLevelDelete", index, new Short (newValue)); 113 } 114 public short getAccessLevelUpdate( 118 ) { 119 return getAccessLevelUpdate(0); 120 } 121 122 protected short getAccessLevelUpdate( 123 int index 124 ) { 125 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:base:SecureObject:accessLevelUpdate", index)).shortValue(); 126 } 127 128 public void setAccessLevelUpdate( 132 short newValue 133 ) { 134 setAccessLevelUpdate(0, newValue); 135 } 136 137 protected void setAccessLevelUpdate( 138 int index, 139 short newValue 140 ) { 141 refSetValue("org:opencrx:kernel:base:SecureObject:accessLevelUpdate", index, new Short (newValue)); 142 } 143 public org.opencrx.kernel.base.cci.ModifySecureObjectResult addOwningGroup( 147 org.opencrx.kernel.base.cci.ModifyOwningGroupParams params 148 ) throws javax.jmi.reflect.RefException { 149 java.util.List args = new java.util.ArrayList (); 150 args.add(params); 151 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 152 "org:opencrx:kernel:base:SecureObject:addOwningGroup", 153 args 154 ); 155 } 156 157 public org.opencrx.kernel.base.cci.ModifySecureObjectResult addOwningGroup( 158 org.opencrx.security.realm1.cci.PrincipalGroup group 159 , short mode 160 ) throws javax.jmi.reflect.RefException { 161 return addOwningGroup( 162 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createModifyOwningGroupParams( 163 group 164 , mode 165 ) 166 ); 167 } 168 169 public java.util.List getOwner ( 173 ) { 174 return (java.util.List )this.refGetValue("owner"); 175 } 176 public String getOwner( 177 int index 178 ) { 179 return (String )this.refGetValue("org:opencrx:kernel:base:SecureObject:owner", index); 180 } 181 182 protected void setOwner( 186 java.util.List newValue 187 ) { 188 refSetValue("org:opencrx:kernel:base:SecureObject:owner", newValue); 189 } 190 191 protected void setOwner( 192 String [] newValue 193 ) { 194 refSetValue("org:opencrx:kernel:base:SecureObject:owner", newValue); 195 } 196 197 public void setOwningGroup( 201 java.util.List newValue 202 ) { 203 refSetValue("org:opencrx:kernel:base:SecureObject:owningGroup", newValue); 204 } 205 206 public void setOwningGroup( 207 org.opencrx.security.realm1.cci.PrincipalGroup[] newValue 208 ) { 209 refSetValue("org:opencrx:kernel:base:SecureObject:owningGroup", newValue); 210 } 211 212 public org.opencrx.security.realm1.cci.PrincipalGroup getOwningGroup( 216 int index 217 ) { 218 return (org.opencrx.security.realm1.cci.PrincipalGroup)refGetValue( 219 "org:opencrx:kernel:base:SecureObject:owningGroup", 220 new Integer (index) 221 ); 222 } 223 224 public java.util.Collection getOwningGroup( 228 ) { 229 return (java.util.Collection )refGetValue( 230 "org:opencrx:kernel:base:SecureObject:owningGroup" 231 ); 232 } 233 234 public void addOwningGroup ( 238 int index, 239 org.opencrx.security.realm1.cci.PrincipalGroup newValue 240 ) { 241 refAddValue( 242 "org:opencrx:kernel:base:SecureObject:owningGroup", 243 new Integer (index), 244 newValue 245 ); 246 } 247 248 public void addOwningGroup ( 252 org.opencrx.security.realm1.cci.PrincipalGroup newValue 253 ) { 254 refAddValue( 255 "org:opencrx:kernel:base:SecureObject:owningGroup", 256 newValue 257 ); 258 } 259 260 public void removeOwningGroup ( 264 int index 265 ) { 266 refRemoveValue( 267 "org:opencrx:kernel:base:SecureObject:owningGroup", 268 new Integer (index) 269 ); 270 } 271 272 public org.opencrx.security.realm1.cci.User getOwningUser( 276 ) { 277 return (org.opencrx.security.realm1.cci.User)refGetValue( 278 "org:opencrx:kernel:base:SecureObject:owningUser" 279 ); 280 } 281 282 public void setOwningUser( 286 org.opencrx.security.realm1.cci.User newValue 287 ) { 288 refSetValue( 289 "org:opencrx:kernel:base:SecureObject:owningUser", 290 newValue 291 ); 292 } 293 294 public void removeOwningUser ( 298 ) { 299 refRemoveValue( 300 "org:opencrx:kernel:base:SecureObject:owningUser" 301 ); 302 } 303 public org.opencrx.kernel.base.cci.ModifySecureObjectResult removeAllOwningGroup( 307 org.opencrx.kernel.base.cci.RemoveAllOwningGroupParams params 308 ) throws javax.jmi.reflect.RefException { 309 java.util.List args = new java.util.ArrayList (); 310 args.add(params); 311 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 312 "org:opencrx:kernel:base:SecureObject:removeAllOwningGroup", 313 args 314 ); 315 } 316 317 public org.opencrx.kernel.base.cci.ModifySecureObjectResult removeAllOwningGroup( 318 short mode 319 ) throws javax.jmi.reflect.RefException { 320 return removeAllOwningGroup( 321 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createRemoveAllOwningGroupParams( 322 mode 323 ) 324 ); 325 } 326 327 public org.opencrx.kernel.base.cci.ModifySecureObjectResult removeOwningGroup( 331 org.opencrx.kernel.base.cci.ModifyOwningGroupParams params 332 ) throws javax.jmi.reflect.RefException { 333 java.util.List args = new java.util.ArrayList (); 334 args.add(params); 335 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 336 "org:opencrx:kernel:base:SecureObject:removeOwningGroup", 337 args 338 ); 339 } 340 341 public org.opencrx.kernel.base.cci.ModifySecureObjectResult removeOwningGroup( 342 org.opencrx.security.realm1.cci.PrincipalGroup group 343 , short mode 344 ) throws javax.jmi.reflect.RefException { 345 return removeOwningGroup( 346 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createModifyOwningGroupParams( 347 group 348 , mode 349 ) 350 ); 351 } 352 353 public org.opencrx.kernel.base.cci.ModifySecureObjectResult setAccessLevel( 357 org.opencrx.kernel.base.cci.SetAccessLevelParams 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:setAccessLevel", 363 args 364 ); 365 } 366 367 public org.opencrx.kernel.base.cci.ModifySecureObjectResult setAccessLevel( 368 short accessLevelBrowse 369 , short accessLevelDelete 370 , short accessLevelUpdate 371 , short mode 372 ) throws javax.jmi.reflect.RefException { 373 return setAccessLevel( 374 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createSetAccessLevelParams( 375 accessLevelBrowse 376 , accessLevelDelete 377 , accessLevelUpdate 378 , mode 379 ) 380 ); 381 } 382 383 public org.opencrx.kernel.base.cci.ModifySecureObjectResult setOwningUser( 387 org.opencrx.kernel.base.cci.SetOwningUserParams params 388 ) throws javax.jmi.reflect.RefException { 389 java.util.List args = new java.util.ArrayList (); 390 args.add(params); 391 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 392 "org:opencrx:kernel:base:SecureObject:setOwningUser", 393 args 394 ); 395 } 396 397 public org.opencrx.kernel.base.cci.ModifySecureObjectResult setOwningUser( 398 short mode 399 , org.opencrx.security.realm1.cci.User user 400 ) throws javax.jmi.reflect.RefException { 401 return setOwningUser( 402 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createSetOwningUserParams( 403 mode 404 , user 405 ) 406 ); 407 } 408 409 public org.opencrx.kernel.base.cci.ExportResult exportXml( 413 org.opencrx.kernel.base.cci.XmlExportParams params 414 ) throws javax.jmi.reflect.RefException { 415 java.util.List args = new java.util.ArrayList (); 416 args.add(params); 417 return (org.opencrx.kernel.base.cci.ExportResult)refInvokeOperation( 418 "org:opencrx:kernel:base:XmlExporter:exportXml", 419 args 420 ); 421 } 422 423 public org.opencrx.kernel.base.cci.ExportResult exportXml( 424 String attributeFilter 425 , String referenceFilter 426 ) throws javax.jmi.reflect.RefException { 427 return exportXml( 428 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createXmlExportParams( 429 attributeFilter 430 , referenceFilter 431 ) 432 ); 433 } 434 435 public void setAdditionalDescription( 439 java.util.List newValue 440 ) { 441 refSetValue("org:opencrx:kernel:generic:DescriptionContainer:additionalDescription", newValue); 442 } 443 444 public void setAdditionalDescription( 445 org.opencrx.kernel.generic.cci.Description[] newValue 446 ) { 447 refSetValue("org:opencrx:kernel:generic:DescriptionContainer:additionalDescription", newValue); 448 } 449 450 public org.opencrx.kernel.generic.cci.Description getAdditionalDescription( 454 String id 455 ) { 456 return (org.opencrx.kernel.generic.cci.Description)refGetValue( 457 "org:opencrx:kernel:generic:DescriptionContainer:additionalDescription", 458 id 459 ); 460 } 461 462 public java.util.Collection getAdditionalDescription( 466 ) { 467 return (java.util.Collection )refGetValue( 468 "org:opencrx:kernel:generic:DescriptionContainer:additionalDescription" 469 ); 470 } 471 472 public java.util.List getAdditionalDescription( 473 org.opencrx.kernel.generic.cci.DescriptionFilter filter 474 ) { 475 return ((org.openmdx.compatibility.base.collection.Container)refGetValue( 476 "org:opencrx:kernel:generic:DescriptionContainer:additionalDescription" 477 )).toList(filter); 478 } 479 480 public void addAdditionalDescription ( 484 String id, 485 org.opencrx.kernel.generic.cci.Description newValue 486 ) { 487 refAddValue( 488 "org:opencrx:kernel:generic:DescriptionContainer:additionalDescription", 489 id, 490 newValue 491 ); 492 } 493 494 public void addAdditionalDescription ( 498 org.opencrx.kernel.generic.cci.Description newValue 499 ) { 500 refAddValue( 501 "org:opencrx:kernel:generic:DescriptionContainer:additionalDescription", 502 newValue 503 ); 504 } 505 506 public void removeAdditionalDescription ( 510 String id 511 ) { 512 refRemoveValue( 513 "org:opencrx:kernel:generic:DescriptionContainer:additionalDescription", 514 id 515 ); 516 } 517 518 public org.opencrx.kernel.uom1.cci.Uom getBaseUom( 522 ) { 523 return (org.opencrx.kernel.uom1.cci.Uom)refGetValue( 524 "org:opencrx:kernel:uom1:Uom:baseUom" 525 ); 526 } 527 528 public void setBaseUom( 532 org.opencrx.kernel.uom1.cci.Uom newValue 533 ) { 534 refSetValue( 535 "org:opencrx:kernel:uom1:Uom:baseUom", 536 newValue 537 ); 538 } 539 540 public void removeBaseUom ( 544 ) { 545 refRemoveValue( 546 "org:opencrx:kernel:uom1:Uom:baseUom" 547 ); 548 } 549 public String getDescription ( 553 ) { 554 return (String )this.refGetValue("description", 0); 555 } 556 public void setDescription( 560 String newValue 561 ) { 562 refSetValue("org:opencrx:kernel:uom1:Uom:description", 0, newValue); 563 } 564 565 public String getDetailedDescription ( 569 ) { 570 return (String )this.refGetValue("detailedDescription", 0); 571 } 572 public void setDetailedDescription( 576 String newValue 577 ) { 578 refSetValue("org:opencrx:kernel:uom1:Uom:detailedDescription", 0, newValue); 579 } 580 581 public boolean isScheduleBaseUom( 585 ) { 586 return isScheduleBaseUom(0); 587 } 588 589 protected boolean isScheduleBaseUom( 590 int index 591 ) { 592 return ((Boolean )this.refGetValue("org:opencrx:kernel:uom1:Uom:isScheduleBaseUom", index)).booleanValue(); 593 } 594 595 public void setScheduleBaseUom( 599 boolean newValue 600 ) { 601 setScheduleBaseUom(0, newValue); 602 } 603 604 protected void setScheduleBaseUom( 605 int index, 606 boolean newValue 607 ) { 608 refSetValue("org:opencrx:kernel:uom1:Uom:isScheduleBaseUom", index, new Boolean (newValue)); 609 } 610 public String getName( 614 ) { 615 return getName(0); 616 } 617 618 protected String getName( 619 int index 620 ) { 621 return (String )this.refGetValue("org:opencrx:kernel:uom1:Uom:name", index); 622 } 623 624 public void setName( 628 String newValue 629 ) { 630 setName(0, newValue); 631 } 632 633 protected void setName( 634 int index, 635 String newValue 636 ) { 637 refSetValue("org:opencrx:kernel:uom1:Uom:name", index, newValue); 638 } 639 public java.math.BigDecimal getQuantity( 643 ) { 644 return getQuantity(0); 645 } 646 647 protected java.math.BigDecimal getQuantity( 648 int index 649 ) { 650 return (java.math.BigDecimal )this.refGetValue("org:opencrx:kernel:uom1:Uom:quantity", index); 651 } 652 653 public void setQuantity( 657 java.math.BigDecimal newValue 658 ) { 659 setQuantity(0, newValue); 660 } 661 662 protected void setQuantity( 663 int index, 664 java.math.BigDecimal newValue 665 ) { 666 refSetValue("org:opencrx:kernel:uom1:Uom:quantity", index, newValue); 667 } 668 public org.opencrx.kernel.uom1.cci.UomSchedule getUomSchedule( 672 ) { 673 return (org.opencrx.kernel.uom1.cci.UomSchedule)refGetValue( 674 "org:opencrx:kernel:uom1:Uom:uomSchedule" 675 ); 676 } 677 678 public void setUomSchedule( 682 org.opencrx.kernel.uom1.cci.UomSchedule newValue 683 ) { 684 refSetValue( 685 "org:opencrx:kernel:uom1:Uom:uomSchedule", 686 newValue 687 ); 688 } 689 690 public java.util.Date getCreatedAt( 694 ) { 695 return getCreatedAt(0); 696 } 697 698 protected java.util.Date getCreatedAt( 699 int index 700 ) { 701 return (java.util.Date )this.refGetValue("org:openmdx:base:BasicObject:createdAt", index); 702 } 703 704 protected void setCreatedAt( 708 java.util.Date newValue 709 ) { 710 setCreatedAt(0, newValue); 711 } 712 713 protected void setCreatedAt( 714 int index, 715 java.util.Date newValue 716 ) { 717 refSetValue("org:openmdx:base:BasicObject:createdAt", index, newValue); 718 } 719 public java.util.Set getCreatedBy ( 723 ) { 724 return (java.util.Set )this.refGetValue("createdBy"); 725 } 726 protected void setCreatedBy( 730 java.util.Set newValue 731 ) { 732 refSetValue("org:openmdx:base:BasicObject:createdBy", newValue); 733 } 734 735 protected void setCreatedBy( 736 String [] newValue 737 ) { 738 refSetValue("org:openmdx:base:BasicObject:createdBy", newValue); 739 } 740 741 public java.util.Date getModifiedAt( 745 ) { 746 return getModifiedAt(0); 747 } 748 749 protected java.util.Date getModifiedAt( 750 int index 751 ) { 752 return (java.util.Date )this.refGetValue("org:openmdx:base:BasicObject:modifiedAt", index); 753 } 754 755 protected void setModifiedAt( 759 java.util.Date newValue 760 ) { 761 setModifiedAt(0, newValue); 762 } 763 764 protected void setModifiedAt( 765 int index, 766 java.util.Date newValue 767 ) { 768 refSetValue("org:openmdx:base:BasicObject:modifiedAt", index, newValue); 769 } 770 public java.util.Set getModifiedBy ( 774 ) { 775 return (java.util.Set )this.refGetValue("modifiedBy"); 776 } 777 protected void setModifiedBy( 781 java.util.Set newValue 782 ) { 783 refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue); 784 } 785 786 protected void setModifiedBy( 787 String [] newValue 788 ) { 789 refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue); 790 } 791 792 protected void setContext( 796 java.util.List newValue 797 ) { 798 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 799 } 800 801 protected void setContext( 802 org.openmdx.base.cci.Context[] newValue 803 ) { 804 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 805 } 806 807 public org.openmdx.base.cci.Context getContext( 811 String id 812 ) { 813 return (org.openmdx.base.cci.Context)refGetValue( 814 "org:openmdx:base:ContextCapable:context", 815 id 816 ); 817 } 818 819 public java.util.Collection getContext( 823 ) { 824 return (java.util.Collection )refGetValue( 825 "org:openmdx:base:ContextCapable:context" 826 ); 827 } 828 829 protected void addContext ( 833 String id, 834 org.openmdx.base.cci.Context newValue 835 ) { 836 refAddValue( 837 "org:openmdx:base:ContextCapable:context", 838 id, 839 newValue 840 ); 841 } 842 843 protected void addContext ( 847 org.openmdx.base.cci.Context newValue 848 ) { 849 refAddValue( 850 "org:openmdx:base:ContextCapable:context", 851 newValue 852 ); 853 } 854 855 protected void removeContext ( 859 String id 860 ) { 861 refRemoveValue( 862 "org:openmdx:base:ContextCapable:context", 863 id 864 ); 865 } 866 867 public String getIdentity( 871 ) { 872 return getIdentity(0); 873 } 874 875 protected String getIdentity( 876 int index 877 ) { 878 return (String )this.refGetValue("org:openmdx:base:ExtentCapable:identity", index); 879 } 880 881 protected void setIdentity( 885 String newValue 886 ) { 887 setIdentity(0, newValue); 888 } 889 890 protected void setIdentity( 891 int index, 892 String newValue 893 ) { 894 refSetValue("org:openmdx:base:ExtentCapable:identity", index, newValue); 895 } 896 protected void setView( 900 java.util.List newValue 901 ) { 902 refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue); 903 } 904 905 protected void setView( 906 org.openmdx.compatibility.view1.cci.View[] newValue 907 ) { 908 refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue); 909 } 910 911 public org.openmdx.compatibility.view1.cci.View getView( 915 String namespace 916 ) { 917 return (org.openmdx.compatibility.view1.cci.View)refGetValue( 918 "org:openmdx:compatibility:view1:ViewCapable:view", 919 namespace 920 ); 921 } 922 923 public java.util.Collection getView( 927 ) { 928 return (java.util.Collection )refGetValue( 929 "org:openmdx:compatibility:view1:ViewCapable:view" 930 ); 931 } 932 933 public java.util.List getView( 934 org.openmdx.compatibility.view1.cci.ViewFilter filter 935 ) { 936 return ((org.openmdx.compatibility.base.collection.Container)refGetValue( 937 "org:openmdx:compatibility:view1:ViewCapable:view" 938 )).toList(filter); 939 } 940 941 protected void addView ( 945 String namespace, 946 org.openmdx.compatibility.view1.cci.View newValue 947 ) { 948 refAddValue( 949 "org:openmdx:compatibility:view1:ViewCapable:view", 950 namespace, 951 newValue 952 ); 953 } 954 955 protected void addView ( 959 org.openmdx.compatibility.view1.cci.View newValue 960 ) { 961 refAddValue( 962 "org:openmdx:compatibility:view1:ViewCapable:view", 963 newValue 964 ); 965 } 966 967 protected void removeView ( 971 String namespace 972 ) { 973 refRemoveValue( 974 "org:openmdx:compatibility:view1:ViewCapable:view", 975 namespace 976 ); 977 } 978 979 } 983 | Popular Tags |