1 package org.opencrx.kernel.product1.cci; 14 15 public class SelectableBundledProductImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefObject_1 17 implements SelectableBundledProduct { 18 19 public SelectableBundledProductImpl( 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 org.opencrx.kernel.product1.cci.BundledProduct getBasedOn( 383 ) { 384 return (org.opencrx.kernel.product1.cci.BundledProduct)refGetValue( 385 "org:opencrx:kernel:product1:SelectableBundledProduct:basedOn" 386 ); 387 } 388 389 protected void setBasedOn( 393 org.opencrx.kernel.product1.cci.BundledProduct newValue 394 ) { 395 refSetValue( 396 "org:opencrx:kernel:product1:SelectableBundledProduct:basedOn", 397 newValue 398 ); 399 } 400 401 protected void removeBasedOn ( 405 ) { 406 refRemoveValue( 407 "org:opencrx:kernel:product1:SelectableBundledProduct:basedOn" 408 ); 409 } 410 public String getDescription ( 414 ) { 415 return (String )this.refGetValue("description", 0); 416 } 417 protected void setDescription( 421 String newValue 422 ) { 423 refSetValue("org:opencrx:kernel:product1:SelectableItem:description", 0, newValue); 424 } 425 426 public int getItemNumber( 430 ) { 431 return getItemNumber(0); 432 } 433 434 protected int getItemNumber( 435 int index 436 ) { 437 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:product1:SelectableItem:itemNumber", index)).intValue(); 438 } 439 440 protected void setItemNumber( 444 int newValue 445 ) { 446 setItemNumber(0, newValue); 447 } 448 449 protected void setItemNumber( 450 int index, 451 int newValue 452 ) { 453 refSetValue("org:opencrx:kernel:product1:SelectableItem:itemNumber", index, new Integer (newValue)); 454 } 455 public String getName( 459 ) { 460 return getName(0); 461 } 462 463 protected String getName( 464 int index 465 ) { 466 return (String )this.refGetValue("org:opencrx:kernel:product1:SelectableItem:name", index); 467 } 468 469 protected void setName( 473 String newValue 474 ) { 475 setName(0, newValue); 476 } 477 478 protected void setName( 479 int index, 480 String newValue 481 ) { 482 refSetValue("org:opencrx:kernel:product1:SelectableItem:name", index, newValue); 483 } 484 public Boolean isSelector ( 488 ) { 489 return (Boolean )this.refGetValue("selector", 0); 490 } 491 public void setSelector( 495 Boolean newValue 496 ) { 497 refSetValue("org:opencrx:kernel:product1:SelectableItem:selector", 0, newValue); 498 } 499 500 public java.math.BigDecimal getDefaultQuantity( 504 ) { 505 return getDefaultQuantity(0); 506 } 507 508 protected java.math.BigDecimal getDefaultQuantity( 509 int index 510 ) { 511 return (java.math.BigDecimal )this.refGetValue("org:opencrx:kernel:product1:SelectableItemWithQuantity:defaultQuantity", index); 512 } 513 514 protected void setDefaultQuantity( 518 java.math.BigDecimal newValue 519 ) { 520 setDefaultQuantity(0, newValue); 521 } 522 523 protected void setDefaultQuantity( 524 int index, 525 java.math.BigDecimal newValue 526 ) { 527 refSetValue("org:opencrx:kernel:product1:SelectableItemWithQuantity:defaultQuantity", index, newValue); 528 } 529 public java.math.BigDecimal getMaxQuantity( 533 ) { 534 return getMaxQuantity(0); 535 } 536 537 protected java.math.BigDecimal getMaxQuantity( 538 int index 539 ) { 540 return (java.math.BigDecimal )this.refGetValue("org:opencrx:kernel:product1:SelectableItemWithQuantity:maxQuantity", index); 541 } 542 543 protected void setMaxQuantity( 547 java.math.BigDecimal newValue 548 ) { 549 setMaxQuantity(0, newValue); 550 } 551 552 protected void setMaxQuantity( 553 int index, 554 java.math.BigDecimal newValue 555 ) { 556 refSetValue("org:opencrx:kernel:product1:SelectableItemWithQuantity:maxQuantity", index, newValue); 557 } 558 public java.math.BigDecimal getMinQuantity( 562 ) { 563 return getMinQuantity(0); 564 } 565 566 protected java.math.BigDecimal getMinQuantity( 567 int index 568 ) { 569 return (java.math.BigDecimal )this.refGetValue("org:opencrx:kernel:product1:SelectableItemWithQuantity:minQuantity", index); 570 } 571 572 protected void setMinQuantity( 576 java.math.BigDecimal newValue 577 ) { 578 setMinQuantity(0, newValue); 579 } 580 581 protected void setMinQuantity( 582 int index, 583 java.math.BigDecimal newValue 584 ) { 585 refSetValue("org:opencrx:kernel:product1:SelectableItemWithQuantity:minQuantity", index, newValue); 586 } 587 public java.math.BigDecimal getQuantity ( 591 ) { 592 return (java.math.BigDecimal )this.refGetValue("quantity", 0); 593 } 594 public void setQuantity( 598 java.math.BigDecimal newValue 599 ) { 600 refSetValue("org:opencrx:kernel:product1:SelectableItemWithQuantity:quantity", 0, newValue); 601 } 602 603 public java.util.Date getCreatedAt( 607 ) { 608 return getCreatedAt(0); 609 } 610 611 protected java.util.Date getCreatedAt( 612 int index 613 ) { 614 return (java.util.Date )this.refGetValue("org:openmdx:base:BasicObject:createdAt", index); 615 } 616 617 protected void setCreatedAt( 621 java.util.Date newValue 622 ) { 623 setCreatedAt(0, newValue); 624 } 625 626 protected void setCreatedAt( 627 int index, 628 java.util.Date newValue 629 ) { 630 refSetValue("org:openmdx:base:BasicObject:createdAt", index, newValue); 631 } 632 public java.util.Set getCreatedBy ( 636 ) { 637 return (java.util.Set )this.refGetValue("createdBy"); 638 } 639 protected void setCreatedBy( 643 java.util.Set newValue 644 ) { 645 refSetValue("org:openmdx:base:BasicObject:createdBy", newValue); 646 } 647 648 protected void setCreatedBy( 649 String [] newValue 650 ) { 651 refSetValue("org:openmdx:base:BasicObject:createdBy", newValue); 652 } 653 654 public java.util.Date getModifiedAt( 658 ) { 659 return getModifiedAt(0); 660 } 661 662 protected java.util.Date getModifiedAt( 663 int index 664 ) { 665 return (java.util.Date )this.refGetValue("org:openmdx:base:BasicObject:modifiedAt", index); 666 } 667 668 protected void setModifiedAt( 672 java.util.Date newValue 673 ) { 674 setModifiedAt(0, newValue); 675 } 676 677 protected void setModifiedAt( 678 int index, 679 java.util.Date newValue 680 ) { 681 refSetValue("org:openmdx:base:BasicObject:modifiedAt", index, newValue); 682 } 683 public java.util.Set getModifiedBy ( 687 ) { 688 return (java.util.Set )this.refGetValue("modifiedBy"); 689 } 690 protected void setModifiedBy( 694 java.util.Set newValue 695 ) { 696 refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue); 697 } 698 699 protected void setModifiedBy( 700 String [] newValue 701 ) { 702 refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue); 703 } 704 705 protected void setContext( 709 java.util.List newValue 710 ) { 711 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 712 } 713 714 protected void setContext( 715 org.openmdx.base.cci.Context[] newValue 716 ) { 717 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 718 } 719 720 public org.openmdx.base.cci.Context getContext( 724 String id 725 ) { 726 return (org.openmdx.base.cci.Context)refGetValue( 727 "org:openmdx:base:ContextCapable:context", 728 id 729 ); 730 } 731 732 public java.util.Collection getContext( 736 ) { 737 return (java.util.Collection )refGetValue( 738 "org:openmdx:base:ContextCapable:context" 739 ); 740 } 741 742 protected void addContext ( 746 String id, 747 org.openmdx.base.cci.Context newValue 748 ) { 749 refAddValue( 750 "org:openmdx:base:ContextCapable:context", 751 id, 752 newValue 753 ); 754 } 755 756 protected void addContext ( 760 org.openmdx.base.cci.Context newValue 761 ) { 762 refAddValue( 763 "org:openmdx:base:ContextCapable:context", 764 newValue 765 ); 766 } 767 768 protected void removeContext ( 772 String id 773 ) { 774 refRemoveValue( 775 "org:openmdx:base:ContextCapable:context", 776 id 777 ); 778 } 779 780 public String getIdentity( 784 ) { 785 return getIdentity(0); 786 } 787 788 protected String getIdentity( 789 int index 790 ) { 791 return (String )this.refGetValue("org:openmdx:base:ExtentCapable:identity", index); 792 } 793 794 protected void setIdentity( 798 String newValue 799 ) { 800 setIdentity(0, newValue); 801 } 802 803 protected void setIdentity( 804 int index, 805 String newValue 806 ) { 807 refSetValue("org:openmdx:base:ExtentCapable:identity", index, newValue); 808 } 809 protected void setView( 813 java.util.List newValue 814 ) { 815 refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue); 816 } 817 818 protected void setView( 819 org.openmdx.compatibility.view1.cci.View[] newValue 820 ) { 821 refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue); 822 } 823 824 public org.openmdx.compatibility.view1.cci.View getView( 828 String namespace 829 ) { 830 return (org.openmdx.compatibility.view1.cci.View)refGetValue( 831 "org:openmdx:compatibility:view1:ViewCapable:view", 832 namespace 833 ); 834 } 835 836 public java.util.Collection getView( 840 ) { 841 return (java.util.Collection )refGetValue( 842 "org:openmdx:compatibility:view1:ViewCapable:view" 843 ); 844 } 845 846 public java.util.List getView( 847 org.openmdx.compatibility.view1.cci.ViewFilter filter 848 ) { 849 return ((org.openmdx.compatibility.base.collection.Container)refGetValue( 850 "org:openmdx:compatibility:view1:ViewCapable:view" 851 )).toList(filter); 852 } 853 854 protected void addView ( 858 String namespace, 859 org.openmdx.compatibility.view1.cci.View newValue 860 ) { 861 refAddValue( 862 "org:openmdx:compatibility:view1:ViewCapable:view", 863 namespace, 864 newValue 865 ); 866 } 867 868 protected void addView ( 872 org.openmdx.compatibility.view1.cci.View newValue 873 ) { 874 refAddValue( 875 "org:openmdx:compatibility:view1:ViewCapable:view", 876 newValue 877 ); 878 } 879 880 protected void removeView ( 884 String namespace 885 ) { 886 refRemoveValue( 887 "org:openmdx:compatibility:view1:ViewCapable:view", 888 namespace 889 ); 890 } 891 892 } 896 | Popular Tags |