1 package org.opencrx.kernel.activity1.cci; 14 15 public class ProductReferenceImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefObject_1 17 implements ProductReference { 18 19 public ProductReferenceImpl( 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.ProductConfigurationTypeSet getConfigType( 383 ) { 384 return (org.opencrx.kernel.product1.cci.ProductConfigurationTypeSet)refGetValue( 385 "org:opencrx:kernel:product1:ProductConfigurationSet:configType" 386 ); 387 } 388 389 protected void setConfigType( 393 org.opencrx.kernel.product1.cci.ProductConfigurationTypeSet newValue 394 ) { 395 refSetValue( 396 "org:opencrx:kernel:product1:ProductConfigurationSet:configType", 397 newValue 398 ); 399 } 400 401 protected void removeConfigType ( 405 ) { 406 refRemoveValue( 407 "org:opencrx:kernel:product1:ProductConfigurationSet:configType" 408 ); 409 } 410 public void setConfiguration( 414 java.util.List newValue 415 ) { 416 refSetValue("org:opencrx:kernel:product1:ProductConfigurationSet:configuration", newValue); 417 } 418 419 public void setConfiguration( 420 org.opencrx.kernel.product1.cci.ProductConfiguration[] newValue 421 ) { 422 refSetValue("org:opencrx:kernel:product1:ProductConfigurationSet:configuration", newValue); 423 } 424 425 public org.opencrx.kernel.product1.cci.ProductConfiguration getConfiguration( 429 String id 430 ) { 431 return (org.opencrx.kernel.product1.cci.ProductConfiguration)refGetValue( 432 "org:opencrx:kernel:product1:ProductConfigurationSet:configuration", 433 id 434 ); 435 } 436 437 public java.util.Collection getConfiguration( 441 ) { 442 return (java.util.Collection )refGetValue( 443 "org:opencrx:kernel:product1:ProductConfigurationSet:configuration" 444 ); 445 } 446 447 public java.util.List getConfiguration( 448 org.opencrx.kernel.product1.cci.ProductConfigurationFilter filter 449 ) { 450 return ((org.openmdx.compatibility.base.collection.Container)refGetValue( 451 "org:opencrx:kernel:product1:ProductConfigurationSet:configuration" 452 )).toList(filter); 453 } 454 455 public void addConfiguration ( 459 String id, 460 org.opencrx.kernel.product1.cci.ProductConfiguration newValue 461 ) { 462 refAddValue( 463 "org:opencrx:kernel:product1:ProductConfigurationSet:configuration", 464 id, 465 newValue 466 ); 467 } 468 469 public void addConfiguration ( 473 org.opencrx.kernel.product1.cci.ProductConfiguration newValue 474 ) { 475 refAddValue( 476 "org:opencrx:kernel:product1:ProductConfigurationSet:configuration", 477 newValue 478 ); 479 } 480 481 public void removeConfiguration ( 485 String id 486 ) { 487 refRemoveValue( 488 "org:opencrx:kernel:product1:ProductConfigurationSet:configuration", 489 id 490 ); 491 } 492 493 public org.openmdx.base.cci.Void unsetConfigurationType( 497 org.openmdx.base.cci.Void params 498 ) throws javax.jmi.reflect.RefException { 499 java.util.List args = new java.util.ArrayList (); 500 args.add(params); 501 return (org.openmdx.base.cci.Void)refInvokeOperation( 502 "org:opencrx:kernel:product1:ProductConfigurationSet:unsetConfigurationType", 503 args 504 ); 505 } 506 507 public org.openmdx.base.cci.Void unsetConfigurationType( 508 ) throws javax.jmi.reflect.RefException { 509 return unsetConfigurationType( 510 ((org.openmdx.base.cci.basePackage)refOutermostPackage().refPackage("org:openmdx:base")).createVoid( 511 ) 512 ); 513 } 514 515 public org.opencrx.kernel.product1.cci.Product getProduct( 519 ) { 520 return (org.opencrx.kernel.product1.cci.Product)refGetValue( 521 "org:opencrx:kernel:product1:ProductDescriptor:product" 522 ); 523 } 524 525 protected void setProduct( 529 org.opencrx.kernel.product1.cci.Product newValue 530 ) { 531 refSetValue( 532 "org:opencrx:kernel:product1:ProductDescriptor:product", 533 newValue 534 ); 535 } 536 537 protected void removeProduct ( 541 ) { 542 refRemoveValue( 543 "org:opencrx:kernel:product1:ProductDescriptor:product" 544 ); 545 } 546 public org.opencrx.kernel.product1.cci.ProductConfiguration getCurrentConfig( 550 ) { 551 return (org.opencrx.kernel.product1.cci.ProductConfiguration)refGetValue( 552 "org:opencrx:kernel:product1:ProductInUseDescriptor:currentConfig" 553 ); 554 } 555 556 public void setCurrentConfig( 560 org.opencrx.kernel.product1.cci.ProductConfiguration newValue 561 ) { 562 refSetValue( 563 "org:opencrx:kernel:product1:ProductInUseDescriptor:currentConfig", 564 newValue 565 ); 566 } 567 568 public void removeCurrentConfig ( 572 ) { 573 refRemoveValue( 574 "org:opencrx:kernel:product1:ProductInUseDescriptor:currentConfig" 575 ); 576 } 577 public java.util.Set getProductSerialNumber ( 581 ) { 582 return (java.util.Set )this.refGetValue("productSerialNumber"); 583 } 584 public void setProductSerialNumber( 588 java.util.Set newValue 589 ) { 590 refSetValue("org:opencrx:kernel:product1:ProductInUseDescriptor:productSerialNumber", newValue); 591 } 592 593 public void setProductSerialNumber( 594 String [] newValue 595 ) { 596 refSetValue("org:opencrx:kernel:product1:ProductInUseDescriptor:productSerialNumber", newValue); 597 } 598 599 public java.util.Date getCreatedAt( 603 ) { 604 return getCreatedAt(0); 605 } 606 607 protected java.util.Date getCreatedAt( 608 int index 609 ) { 610 return (java.util.Date )this.refGetValue("org:openmdx:base:BasicObject:createdAt", index); 611 } 612 613 protected void setCreatedAt( 617 java.util.Date newValue 618 ) { 619 setCreatedAt(0, newValue); 620 } 621 622 protected void setCreatedAt( 623 int index, 624 java.util.Date newValue 625 ) { 626 refSetValue("org:openmdx:base:BasicObject:createdAt", index, newValue); 627 } 628 public java.util.Set getCreatedBy ( 632 ) { 633 return (java.util.Set )this.refGetValue("createdBy"); 634 } 635 protected void setCreatedBy( 639 java.util.Set newValue 640 ) { 641 refSetValue("org:openmdx:base:BasicObject:createdBy", newValue); 642 } 643 644 protected void setCreatedBy( 645 String [] newValue 646 ) { 647 refSetValue("org:openmdx:base:BasicObject:createdBy", newValue); 648 } 649 650 public java.util.Date getModifiedAt( 654 ) { 655 return getModifiedAt(0); 656 } 657 658 protected java.util.Date getModifiedAt( 659 int index 660 ) { 661 return (java.util.Date )this.refGetValue("org:openmdx:base:BasicObject:modifiedAt", index); 662 } 663 664 protected void setModifiedAt( 668 java.util.Date newValue 669 ) { 670 setModifiedAt(0, newValue); 671 } 672 673 protected void setModifiedAt( 674 int index, 675 java.util.Date newValue 676 ) { 677 refSetValue("org:openmdx:base:BasicObject:modifiedAt", index, newValue); 678 } 679 public java.util.Set getModifiedBy ( 683 ) { 684 return (java.util.Set )this.refGetValue("modifiedBy"); 685 } 686 protected void setModifiedBy( 690 java.util.Set newValue 691 ) { 692 refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue); 693 } 694 695 protected void setModifiedBy( 696 String [] newValue 697 ) { 698 refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue); 699 } 700 701 protected void setContext( 705 java.util.List newValue 706 ) { 707 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 708 } 709 710 protected void setContext( 711 org.openmdx.base.cci.Context[] newValue 712 ) { 713 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 714 } 715 716 public org.openmdx.base.cci.Context getContext( 720 String id 721 ) { 722 return (org.openmdx.base.cci.Context)refGetValue( 723 "org:openmdx:base:ContextCapable:context", 724 id 725 ); 726 } 727 728 public java.util.Collection getContext( 732 ) { 733 return (java.util.Collection )refGetValue( 734 "org:openmdx:base:ContextCapable:context" 735 ); 736 } 737 738 protected void addContext ( 742 String id, 743 org.openmdx.base.cci.Context newValue 744 ) { 745 refAddValue( 746 "org:openmdx:base:ContextCapable:context", 747 id, 748 newValue 749 ); 750 } 751 752 protected void addContext ( 756 org.openmdx.base.cci.Context newValue 757 ) { 758 refAddValue( 759 "org:openmdx:base:ContextCapable:context", 760 newValue 761 ); 762 } 763 764 protected void removeContext ( 768 String id 769 ) { 770 refRemoveValue( 771 "org:openmdx:base:ContextCapable:context", 772 id 773 ); 774 } 775 776 public String getIdentity( 780 ) { 781 return getIdentity(0); 782 } 783 784 protected String getIdentity( 785 int index 786 ) { 787 return (String )this.refGetValue("org:openmdx:base:ExtentCapable:identity", index); 788 } 789 790 protected void setIdentity( 794 String newValue 795 ) { 796 setIdentity(0, newValue); 797 } 798 799 protected void setIdentity( 800 int index, 801 String newValue 802 ) { 803 refSetValue("org:openmdx:base:ExtentCapable:identity", index, newValue); 804 } 805 protected void setView( 809 java.util.List newValue 810 ) { 811 refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue); 812 } 813 814 protected void setView( 815 org.openmdx.compatibility.view1.cci.View[] newValue 816 ) { 817 refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue); 818 } 819 820 public org.openmdx.compatibility.view1.cci.View getView( 824 String namespace 825 ) { 826 return (org.openmdx.compatibility.view1.cci.View)refGetValue( 827 "org:openmdx:compatibility:view1:ViewCapable:view", 828 namespace 829 ); 830 } 831 832 public java.util.Collection getView( 836 ) { 837 return (java.util.Collection )refGetValue( 838 "org:openmdx:compatibility:view1:ViewCapable:view" 839 ); 840 } 841 842 public java.util.List getView( 843 org.openmdx.compatibility.view1.cci.ViewFilter filter 844 ) { 845 return ((org.openmdx.compatibility.base.collection.Container)refGetValue( 846 "org:openmdx:compatibility:view1:ViewCapable:view" 847 )).toList(filter); 848 } 849 850 protected void addView ( 854 String namespace, 855 org.openmdx.compatibility.view1.cci.View newValue 856 ) { 857 refAddValue( 858 "org:openmdx:compatibility:view1:ViewCapable:view", 859 namespace, 860 newValue 861 ); 862 } 863 864 protected void addView ( 868 org.openmdx.compatibility.view1.cci.View newValue 869 ) { 870 refAddValue( 871 "org:openmdx:compatibility:view1:ViewCapable:view", 872 newValue 873 ); 874 } 875 876 protected void removeView ( 880 String namespace 881 ) { 882 refRemoveValue( 883 "org:openmdx:compatibility:view1:ViewCapable:view", 884 namespace 885 ); 886 } 887 888 } 892 | Popular Tags |