1 package org.opencrx.kernel.activity1.cci; 14 15 public class ResourceAssignmentImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefObject_1 17 implements ResourceAssignment { 18 19 public ResourceAssignmentImpl( 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.activity1.cci.Calendar getCalendar( 30 ) { 31 return (org.opencrx.kernel.activity1.cci.Calendar)refGetValue( 32 "org:opencrx:kernel:activity1:ResourceAssignment:calendar" 33 ); 34 } 35 36 public void setCalendar( 40 org.opencrx.kernel.activity1.cci.Calendar newValue 41 ) { 42 refSetValue( 43 "org:opencrx:kernel:activity1:ResourceAssignment:calendar", 44 newValue 45 ); 46 } 47 48 public void removeCalendar ( 52 ) { 53 refRemoveValue( 54 "org:opencrx:kernel:activity1:ResourceAssignment:calendar" 55 ); 56 } 57 public String getDescription ( 61 ) { 62 return (String )this.refGetValue("description", 0); 63 } 64 public void setDescription( 68 String newValue 69 ) { 70 refSetValue("org:opencrx:kernel:activity1:ResourceAssignment:description", 0, newValue); 71 } 72 73 public String getName( 77 ) { 78 return getName(0); 79 } 80 81 protected String getName( 82 int index 83 ) { 84 return (String )this.refGetValue("org:opencrx:kernel:activity1:ResourceAssignment:name", index); 85 } 86 87 public void setName( 91 String newValue 92 ) { 93 setName(0, newValue); 94 } 95 96 protected void setName( 97 int index, 98 String newValue 99 ) { 100 refSetValue("org:opencrx:kernel:activity1:ResourceAssignment:name", index, newValue); 101 } 102 public org.opencrx.kernel.activity1.cci.Resource getResource( 106 ) { 107 return (org.opencrx.kernel.activity1.cci.Resource)refGetValue( 108 "org:opencrx:kernel:activity1:ResourceAssignment:resource" 109 ); 110 } 111 112 public void setResource( 116 org.opencrx.kernel.activity1.cci.Resource newValue 117 ) { 118 refSetValue( 119 "org:opencrx:kernel:activity1:ResourceAssignment:resource", 120 newValue 121 ); 122 } 123 124 public void removeResource ( 128 ) { 129 refRemoveValue( 130 "org:opencrx:kernel:activity1:ResourceAssignment:resource" 131 ); 132 } 133 public Short getResourceOrder ( 137 ) { 138 return (Short )this.refGetValue("resourceOrder", 0); 139 } 140 public void setResourceOrder( 144 Short newValue 145 ) { 146 refSetValue("org:opencrx:kernel:activity1:ResourceAssignment:resourceOrder", 0, newValue); 147 } 148 149 public short getResourceRole( 153 ) { 154 return getResourceRole(0); 155 } 156 157 protected short getResourceRole( 158 int index 159 ) { 160 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:activity1:ResourceAssignment:resourceRole", index)).shortValue(); 161 } 162 163 public void setResourceRole( 167 short newValue 168 ) { 169 setResourceRole(0, newValue); 170 } 171 172 protected void setResourceRole( 173 int index, 174 short newValue 175 ) { 176 refSetValue("org:opencrx:kernel:activity1:ResourceAssignment:resourceRole", index, new Short (newValue)); 177 } 178 public Short getWorkDurationPercentage ( 182 ) { 183 return (Short )this.refGetValue("workDurationPercentage", 0); 184 } 185 public void setWorkDurationPercentage( 189 Short newValue 190 ) { 191 refSetValue("org:opencrx:kernel:activity1:ResourceAssignment:workDurationPercentage", 0, newValue); 192 } 193 194 public void setWorkRecord( 198 java.util.List newValue 199 ) { 200 refSetValue("org:opencrx:kernel:activity1:ResourceAssignment:workRecord", newValue); 201 } 202 203 public void setWorkRecord( 204 org.opencrx.kernel.activity1.cci.ActivityWorkRecord[] newValue 205 ) { 206 refSetValue("org:opencrx:kernel:activity1:ResourceAssignment:workRecord", newValue); 207 } 208 209 public org.opencrx.kernel.activity1.cci.ActivityWorkRecord getWorkRecord( 213 String id 214 ) { 215 return (org.opencrx.kernel.activity1.cci.ActivityWorkRecord)refGetValue( 216 "org:opencrx:kernel:activity1:ResourceAssignment:workRecord", 217 id 218 ); 219 } 220 221 public java.util.Collection getWorkRecord( 225 ) { 226 return (java.util.Collection )refGetValue( 227 "org:opencrx:kernel:activity1:ResourceAssignment:workRecord" 228 ); 229 } 230 231 public java.util.List getWorkRecord( 232 org.opencrx.kernel.activity1.cci.ActivityWorkRecordFilter filter 233 ) { 234 return ((org.openmdx.compatibility.base.collection.Container)refGetValue( 235 "org:opencrx:kernel:activity1:ResourceAssignment:workRecord" 236 )).toList(filter); 237 } 238 239 public void addWorkRecord ( 243 String id, 244 org.opencrx.kernel.activity1.cci.ActivityWorkRecord newValue 245 ) { 246 refAddValue( 247 "org:opencrx:kernel:activity1:ResourceAssignment:workRecord", 248 id, 249 newValue 250 ); 251 } 252 253 public void addWorkRecord ( 257 org.opencrx.kernel.activity1.cci.ActivityWorkRecord newValue 258 ) { 259 refAddValue( 260 "org:opencrx:kernel:activity1:ResourceAssignment:workRecord", 261 newValue 262 ); 263 } 264 265 public void removeWorkRecord ( 269 String id 270 ) { 271 refRemoveValue( 272 "org:opencrx:kernel:activity1:ResourceAssignment:workRecord", 273 id 274 ); 275 } 276 277 public short getAccessLevelBrowse( 281 ) { 282 return getAccessLevelBrowse(0); 283 } 284 285 protected short getAccessLevelBrowse( 286 int index 287 ) { 288 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:base:SecureObject:accessLevelBrowse", index)).shortValue(); 289 } 290 291 public void setAccessLevelBrowse( 295 short newValue 296 ) { 297 setAccessLevelBrowse(0, newValue); 298 } 299 300 protected void setAccessLevelBrowse( 301 int index, 302 short newValue 303 ) { 304 refSetValue("org:opencrx:kernel:base:SecureObject:accessLevelBrowse", index, new Short (newValue)); 305 } 306 public short getAccessLevelDelete( 310 ) { 311 return getAccessLevelDelete(0); 312 } 313 314 protected short getAccessLevelDelete( 315 int index 316 ) { 317 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:base:SecureObject:accessLevelDelete", index)).shortValue(); 318 } 319 320 public void setAccessLevelDelete( 324 short newValue 325 ) { 326 setAccessLevelDelete(0, newValue); 327 } 328 329 protected void setAccessLevelDelete( 330 int index, 331 short newValue 332 ) { 333 refSetValue("org:opencrx:kernel:base:SecureObject:accessLevelDelete", index, new Short (newValue)); 334 } 335 public short getAccessLevelUpdate( 339 ) { 340 return getAccessLevelUpdate(0); 341 } 342 343 protected short getAccessLevelUpdate( 344 int index 345 ) { 346 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:base:SecureObject:accessLevelUpdate", index)).shortValue(); 347 } 348 349 public void setAccessLevelUpdate( 353 short newValue 354 ) { 355 setAccessLevelUpdate(0, newValue); 356 } 357 358 protected void setAccessLevelUpdate( 359 int index, 360 short newValue 361 ) { 362 refSetValue("org:opencrx:kernel:base:SecureObject:accessLevelUpdate", index, new Short (newValue)); 363 } 364 public org.opencrx.kernel.base.cci.ModifySecureObjectResult addOwningGroup( 368 org.opencrx.kernel.base.cci.ModifyOwningGroupParams params 369 ) throws javax.jmi.reflect.RefException { 370 java.util.List args = new java.util.ArrayList (); 371 args.add(params); 372 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 373 "org:opencrx:kernel:base:SecureObject:addOwningGroup", 374 args 375 ); 376 } 377 378 public org.opencrx.kernel.base.cci.ModifySecureObjectResult addOwningGroup( 379 org.opencrx.security.realm1.cci.PrincipalGroup group 380 , short mode 381 ) throws javax.jmi.reflect.RefException { 382 return addOwningGroup( 383 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createModifyOwningGroupParams( 384 group 385 , mode 386 ) 387 ); 388 } 389 390 public java.util.List getOwner ( 394 ) { 395 return (java.util.List )this.refGetValue("owner"); 396 } 397 public String getOwner( 398 int index 399 ) { 400 return (String )this.refGetValue("org:opencrx:kernel:base:SecureObject:owner", index); 401 } 402 403 protected void setOwner( 407 java.util.List newValue 408 ) { 409 refSetValue("org:opencrx:kernel:base:SecureObject:owner", newValue); 410 } 411 412 protected void setOwner( 413 String [] newValue 414 ) { 415 refSetValue("org:opencrx:kernel:base:SecureObject:owner", newValue); 416 } 417 418 public void setOwningGroup( 422 java.util.List newValue 423 ) { 424 refSetValue("org:opencrx:kernel:base:SecureObject:owningGroup", newValue); 425 } 426 427 public void setOwningGroup( 428 org.opencrx.security.realm1.cci.PrincipalGroup[] newValue 429 ) { 430 refSetValue("org:opencrx:kernel:base:SecureObject:owningGroup", newValue); 431 } 432 433 public org.opencrx.security.realm1.cci.PrincipalGroup getOwningGroup( 437 int index 438 ) { 439 return (org.opencrx.security.realm1.cci.PrincipalGroup)refGetValue( 440 "org:opencrx:kernel:base:SecureObject:owningGroup", 441 new Integer (index) 442 ); 443 } 444 445 public java.util.Collection getOwningGroup( 449 ) { 450 return (java.util.Collection )refGetValue( 451 "org:opencrx:kernel:base:SecureObject:owningGroup" 452 ); 453 } 454 455 public void addOwningGroup ( 459 int index, 460 org.opencrx.security.realm1.cci.PrincipalGroup newValue 461 ) { 462 refAddValue( 463 "org:opencrx:kernel:base:SecureObject:owningGroup", 464 new Integer (index), 465 newValue 466 ); 467 } 468 469 public void addOwningGroup ( 473 org.opencrx.security.realm1.cci.PrincipalGroup newValue 474 ) { 475 refAddValue( 476 "org:opencrx:kernel:base:SecureObject:owningGroup", 477 newValue 478 ); 479 } 480 481 public void removeOwningGroup ( 485 int index 486 ) { 487 refRemoveValue( 488 "org:opencrx:kernel:base:SecureObject:owningGroup", 489 new Integer (index) 490 ); 491 } 492 493 public org.opencrx.security.realm1.cci.User getOwningUser( 497 ) { 498 return (org.opencrx.security.realm1.cci.User)refGetValue( 499 "org:opencrx:kernel:base:SecureObject:owningUser" 500 ); 501 } 502 503 public void setOwningUser( 507 org.opencrx.security.realm1.cci.User newValue 508 ) { 509 refSetValue( 510 "org:opencrx:kernel:base:SecureObject:owningUser", 511 newValue 512 ); 513 } 514 515 public void removeOwningUser ( 519 ) { 520 refRemoveValue( 521 "org:opencrx:kernel:base:SecureObject:owningUser" 522 ); 523 } 524 public org.opencrx.kernel.base.cci.ModifySecureObjectResult removeAllOwningGroup( 528 org.opencrx.kernel.base.cci.RemoveAllOwningGroupParams params 529 ) throws javax.jmi.reflect.RefException { 530 java.util.List args = new java.util.ArrayList (); 531 args.add(params); 532 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 533 "org:opencrx:kernel:base:SecureObject:removeAllOwningGroup", 534 args 535 ); 536 } 537 538 public org.opencrx.kernel.base.cci.ModifySecureObjectResult removeAllOwningGroup( 539 short mode 540 ) throws javax.jmi.reflect.RefException { 541 return removeAllOwningGroup( 542 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createRemoveAllOwningGroupParams( 543 mode 544 ) 545 ); 546 } 547 548 public org.opencrx.kernel.base.cci.ModifySecureObjectResult removeOwningGroup( 552 org.opencrx.kernel.base.cci.ModifyOwningGroupParams params 553 ) throws javax.jmi.reflect.RefException { 554 java.util.List args = new java.util.ArrayList (); 555 args.add(params); 556 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 557 "org:opencrx:kernel:base:SecureObject:removeOwningGroup", 558 args 559 ); 560 } 561 562 public org.opencrx.kernel.base.cci.ModifySecureObjectResult removeOwningGroup( 563 org.opencrx.security.realm1.cci.PrincipalGroup group 564 , short mode 565 ) throws javax.jmi.reflect.RefException { 566 return removeOwningGroup( 567 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createModifyOwningGroupParams( 568 group 569 , mode 570 ) 571 ); 572 } 573 574 public org.opencrx.kernel.base.cci.ModifySecureObjectResult setAccessLevel( 578 org.opencrx.kernel.base.cci.SetAccessLevelParams params 579 ) throws javax.jmi.reflect.RefException { 580 java.util.List args = new java.util.ArrayList (); 581 args.add(params); 582 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 583 "org:opencrx:kernel:base:SecureObject:setAccessLevel", 584 args 585 ); 586 } 587 588 public org.opencrx.kernel.base.cci.ModifySecureObjectResult setAccessLevel( 589 short accessLevelBrowse 590 , short accessLevelDelete 591 , short accessLevelUpdate 592 , short mode 593 ) throws javax.jmi.reflect.RefException { 594 return setAccessLevel( 595 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createSetAccessLevelParams( 596 accessLevelBrowse 597 , accessLevelDelete 598 , accessLevelUpdate 599 , mode 600 ) 601 ); 602 } 603 604 public org.opencrx.kernel.base.cci.ModifySecureObjectResult setOwningUser( 608 org.opencrx.kernel.base.cci.SetOwningUserParams params 609 ) throws javax.jmi.reflect.RefException { 610 java.util.List args = new java.util.ArrayList (); 611 args.add(params); 612 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 613 "org:opencrx:kernel:base:SecureObject:setOwningUser", 614 args 615 ); 616 } 617 618 public org.opencrx.kernel.base.cci.ModifySecureObjectResult setOwningUser( 619 short mode 620 , org.opencrx.security.realm1.cci.User user 621 ) throws javax.jmi.reflect.RefException { 622 return setOwningUser( 623 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createSetOwningUserParams( 624 mode 625 , user 626 ) 627 ); 628 } 629 630 public java.util.Date getCreatedAt( 634 ) { 635 return getCreatedAt(0); 636 } 637 638 protected java.util.Date getCreatedAt( 639 int index 640 ) { 641 return (java.util.Date )this.refGetValue("org:openmdx:base:BasicObject:createdAt", index); 642 } 643 644 protected void setCreatedAt( 648 java.util.Date newValue 649 ) { 650 setCreatedAt(0, newValue); 651 } 652 653 protected void setCreatedAt( 654 int index, 655 java.util.Date newValue 656 ) { 657 refSetValue("org:openmdx:base:BasicObject:createdAt", index, newValue); 658 } 659 public java.util.Set getCreatedBy ( 663 ) { 664 return (java.util.Set )this.refGetValue("createdBy"); 665 } 666 protected void setCreatedBy( 670 java.util.Set newValue 671 ) { 672 refSetValue("org:openmdx:base:BasicObject:createdBy", newValue); 673 } 674 675 protected void setCreatedBy( 676 String [] newValue 677 ) { 678 refSetValue("org:openmdx:base:BasicObject:createdBy", newValue); 679 } 680 681 public java.util.Date getModifiedAt( 685 ) { 686 return getModifiedAt(0); 687 } 688 689 protected java.util.Date getModifiedAt( 690 int index 691 ) { 692 return (java.util.Date )this.refGetValue("org:openmdx:base:BasicObject:modifiedAt", index); 693 } 694 695 protected void setModifiedAt( 699 java.util.Date newValue 700 ) { 701 setModifiedAt(0, newValue); 702 } 703 704 protected void setModifiedAt( 705 int index, 706 java.util.Date newValue 707 ) { 708 refSetValue("org:openmdx:base:BasicObject:modifiedAt", index, newValue); 709 } 710 public java.util.Set getModifiedBy ( 714 ) { 715 return (java.util.Set )this.refGetValue("modifiedBy"); 716 } 717 protected void setModifiedBy( 721 java.util.Set newValue 722 ) { 723 refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue); 724 } 725 726 protected void setModifiedBy( 727 String [] newValue 728 ) { 729 refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue); 730 } 731 732 protected void setContext( 736 java.util.List newValue 737 ) { 738 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 739 } 740 741 protected void setContext( 742 org.openmdx.base.cci.Context[] newValue 743 ) { 744 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 745 } 746 747 public org.openmdx.base.cci.Context getContext( 751 String id 752 ) { 753 return (org.openmdx.base.cci.Context)refGetValue( 754 "org:openmdx:base:ContextCapable:context", 755 id 756 ); 757 } 758 759 public java.util.Collection getContext( 763 ) { 764 return (java.util.Collection )refGetValue( 765 "org:openmdx:base:ContextCapable:context" 766 ); 767 } 768 769 protected void addContext ( 773 String id, 774 org.openmdx.base.cci.Context newValue 775 ) { 776 refAddValue( 777 "org:openmdx:base:ContextCapable:context", 778 id, 779 newValue 780 ); 781 } 782 783 protected void addContext ( 787 org.openmdx.base.cci.Context newValue 788 ) { 789 refAddValue( 790 "org:openmdx:base:ContextCapable:context", 791 newValue 792 ); 793 } 794 795 protected void removeContext ( 799 String id 800 ) { 801 refRemoveValue( 802 "org:openmdx:base:ContextCapable:context", 803 id 804 ); 805 } 806 807 public String getIdentity( 811 ) { 812 return getIdentity(0); 813 } 814 815 protected String getIdentity( 816 int index 817 ) { 818 return (String )this.refGetValue("org:openmdx:base:ExtentCapable:identity", index); 819 } 820 821 protected void setIdentity( 825 String newValue 826 ) { 827 setIdentity(0, newValue); 828 } 829 830 protected void setIdentity( 831 int index, 832 String newValue 833 ) { 834 refSetValue("org:openmdx:base:ExtentCapable:identity", index, newValue); 835 } 836 protected void setView( 840 java.util.List newValue 841 ) { 842 refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue); 843 } 844 845 protected void setView( 846 org.openmdx.compatibility.view1.cci.View[] newValue 847 ) { 848 refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue); 849 } 850 851 public org.openmdx.compatibility.view1.cci.View getView( 855 String namespace 856 ) { 857 return (org.openmdx.compatibility.view1.cci.View)refGetValue( 858 "org:openmdx:compatibility:view1:ViewCapable:view", 859 namespace 860 ); 861 } 862 863 public java.util.Collection getView( 867 ) { 868 return (java.util.Collection )refGetValue( 869 "org:openmdx:compatibility:view1:ViewCapable:view" 870 ); 871 } 872 873 public java.util.List getView( 874 org.openmdx.compatibility.view1.cci.ViewFilter filter 875 ) { 876 return ((org.openmdx.compatibility.base.collection.Container)refGetValue( 877 "org:openmdx:compatibility:view1:ViewCapable:view" 878 )).toList(filter); 879 } 880 881 protected void addView ( 885 String namespace, 886 org.openmdx.compatibility.view1.cci.View newValue 887 ) { 888 refAddValue( 889 "org:openmdx:compatibility:view1:ViewCapable:view", 890 namespace, 891 newValue 892 ); 893 } 894 895 protected void addView ( 899 org.openmdx.compatibility.view1.cci.View newValue 900 ) { 901 refAddValue( 902 "org:openmdx:compatibility:view1:ViewCapable:view", 903 newValue 904 ); 905 } 906 907 protected void removeView ( 911 String namespace 912 ) { 913 refRemoveValue( 914 "org:openmdx:compatibility:view1:ViewCapable:view", 915 namespace 916 ); 917 } 918 919 } 923 | Popular Tags |