1 package org.opencrx.kernel.document1.cci; 14 15 public class MediaReferenceImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefObject_1 17 implements MediaReference { 18 19 public MediaReferenceImpl( 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 protected void setAudit( 30 java.util.List newValue 31 ) { 32 refSetValue("org:opencrx:kernel:base:Auditee:audit", newValue); 33 } 34 35 protected void setAudit( 36 org.opencrx.kernel.base.cci.AuditEntry[] newValue 37 ) { 38 refSetValue("org:opencrx:kernel:base:Auditee:audit", newValue); 39 } 40 41 public org.opencrx.kernel.base.cci.AuditEntry getAudit( 45 String id 46 ) { 47 return (org.opencrx.kernel.base.cci.AuditEntry)refGetValue( 48 "org:opencrx:kernel:base:Auditee:audit", 49 id 50 ); 51 } 52 53 public java.util.Collection getAudit( 57 ) { 58 return (java.util.Collection )refGetValue( 59 "org:opencrx:kernel:base:Auditee:audit" 60 ); 61 } 62 63 public java.util.List getAudit( 64 org.opencrx.kernel.base.cci.AuditEntryFilter filter 65 ) { 66 return ((org.openmdx.compatibility.base.collection.Container)refGetValue( 67 "org:opencrx:kernel:base:Auditee:audit" 68 )).toList(filter); 69 } 70 71 protected void addAudit ( 75 String id, 76 org.opencrx.kernel.base.cci.AuditEntry newValue 77 ) { 78 refAddValue( 79 "org:opencrx:kernel:base:Auditee:audit", 80 id, 81 newValue 82 ); 83 } 84 85 protected void addAudit ( 89 org.opencrx.kernel.base.cci.AuditEntry newValue 90 ) { 91 refAddValue( 92 "org:opencrx:kernel:base:Auditee:audit", 93 newValue 94 ); 95 } 96 97 protected void removeAudit ( 101 String id 102 ) { 103 refRemoveValue( 104 "org:opencrx:kernel:base:Auditee:audit", 105 id 106 ); 107 } 108 109 public short getAccessLevelBrowse( 113 ) { 114 return getAccessLevelBrowse(0); 115 } 116 117 protected short getAccessLevelBrowse( 118 int index 119 ) { 120 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:base:SecureObject:accessLevelBrowse", index)).shortValue(); 121 } 122 123 public void setAccessLevelBrowse( 127 short newValue 128 ) { 129 setAccessLevelBrowse(0, newValue); 130 } 131 132 protected void setAccessLevelBrowse( 133 int index, 134 short newValue 135 ) { 136 refSetValue("org:opencrx:kernel:base:SecureObject:accessLevelBrowse", index, new Short (newValue)); 137 } 138 public short getAccessLevelDelete( 142 ) { 143 return getAccessLevelDelete(0); 144 } 145 146 protected short getAccessLevelDelete( 147 int index 148 ) { 149 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:base:SecureObject:accessLevelDelete", index)).shortValue(); 150 } 151 152 public void setAccessLevelDelete( 156 short newValue 157 ) { 158 setAccessLevelDelete(0, newValue); 159 } 160 161 protected void setAccessLevelDelete( 162 int index, 163 short newValue 164 ) { 165 refSetValue("org:opencrx:kernel:base:SecureObject:accessLevelDelete", index, new Short (newValue)); 166 } 167 public short getAccessLevelUpdate( 171 ) { 172 return getAccessLevelUpdate(0); 173 } 174 175 protected short getAccessLevelUpdate( 176 int index 177 ) { 178 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:base:SecureObject:accessLevelUpdate", index)).shortValue(); 179 } 180 181 public void setAccessLevelUpdate( 185 short newValue 186 ) { 187 setAccessLevelUpdate(0, newValue); 188 } 189 190 protected void setAccessLevelUpdate( 191 int index, 192 short newValue 193 ) { 194 refSetValue("org:opencrx:kernel:base:SecureObject:accessLevelUpdate", index, new Short (newValue)); 195 } 196 public org.opencrx.kernel.base.cci.ModifySecureObjectResult addOwningGroup( 200 org.opencrx.kernel.base.cci.ModifyOwningGroupParams params 201 ) throws javax.jmi.reflect.RefException { 202 java.util.List args = new java.util.ArrayList (); 203 args.add(params); 204 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 205 "org:opencrx:kernel:base:SecureObject:addOwningGroup", 206 args 207 ); 208 } 209 210 public org.opencrx.kernel.base.cci.ModifySecureObjectResult addOwningGroup( 211 org.opencrx.security.realm1.cci.PrincipalGroup group 212 , short mode 213 ) throws javax.jmi.reflect.RefException { 214 return addOwningGroup( 215 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createModifyOwningGroupParams( 216 group 217 , mode 218 ) 219 ); 220 } 221 222 public java.util.List getOwner ( 226 ) { 227 return (java.util.List )this.refGetValue("owner"); 228 } 229 public String getOwner( 230 int index 231 ) { 232 return (String )this.refGetValue("org:opencrx:kernel:base:SecureObject:owner", index); 233 } 234 235 protected void setOwner( 239 java.util.List newValue 240 ) { 241 refSetValue("org:opencrx:kernel:base:SecureObject:owner", newValue); 242 } 243 244 protected void setOwner( 245 String [] newValue 246 ) { 247 refSetValue("org:opencrx:kernel:base:SecureObject:owner", newValue); 248 } 249 250 public void setOwningGroup( 254 java.util.List newValue 255 ) { 256 refSetValue("org:opencrx:kernel:base:SecureObject:owningGroup", newValue); 257 } 258 259 public void setOwningGroup( 260 org.opencrx.security.realm1.cci.PrincipalGroup[] newValue 261 ) { 262 refSetValue("org:opencrx:kernel:base:SecureObject:owningGroup", newValue); 263 } 264 265 public org.opencrx.security.realm1.cci.PrincipalGroup getOwningGroup( 269 int index 270 ) { 271 return (org.opencrx.security.realm1.cci.PrincipalGroup)refGetValue( 272 "org:opencrx:kernel:base:SecureObject:owningGroup", 273 new Integer (index) 274 ); 275 } 276 277 public java.util.Collection getOwningGroup( 281 ) { 282 return (java.util.Collection )refGetValue( 283 "org:opencrx:kernel:base:SecureObject:owningGroup" 284 ); 285 } 286 287 public void addOwningGroup ( 291 int index, 292 org.opencrx.security.realm1.cci.PrincipalGroup newValue 293 ) { 294 refAddValue( 295 "org:opencrx:kernel:base:SecureObject:owningGroup", 296 new Integer (index), 297 newValue 298 ); 299 } 300 301 public void addOwningGroup ( 305 org.opencrx.security.realm1.cci.PrincipalGroup newValue 306 ) { 307 refAddValue( 308 "org:opencrx:kernel:base:SecureObject:owningGroup", 309 newValue 310 ); 311 } 312 313 public void removeOwningGroup ( 317 int index 318 ) { 319 refRemoveValue( 320 "org:opencrx:kernel:base:SecureObject:owningGroup", 321 new Integer (index) 322 ); 323 } 324 325 public org.opencrx.security.realm1.cci.User getOwningUser( 329 ) { 330 return (org.opencrx.security.realm1.cci.User)refGetValue( 331 "org:opencrx:kernel:base:SecureObject:owningUser" 332 ); 333 } 334 335 public void setOwningUser( 339 org.opencrx.security.realm1.cci.User newValue 340 ) { 341 refSetValue( 342 "org:opencrx:kernel:base:SecureObject:owningUser", 343 newValue 344 ); 345 } 346 347 public void removeOwningUser ( 351 ) { 352 refRemoveValue( 353 "org:opencrx:kernel:base:SecureObject:owningUser" 354 ); 355 } 356 public org.opencrx.kernel.base.cci.ModifySecureObjectResult removeAllOwningGroup( 360 org.opencrx.kernel.base.cci.RemoveAllOwningGroupParams params 361 ) throws javax.jmi.reflect.RefException { 362 java.util.List args = new java.util.ArrayList (); 363 args.add(params); 364 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 365 "org:opencrx:kernel:base:SecureObject:removeAllOwningGroup", 366 args 367 ); 368 } 369 370 public org.opencrx.kernel.base.cci.ModifySecureObjectResult removeAllOwningGroup( 371 short mode 372 ) throws javax.jmi.reflect.RefException { 373 return removeAllOwningGroup( 374 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createRemoveAllOwningGroupParams( 375 mode 376 ) 377 ); 378 } 379 380 public org.opencrx.kernel.base.cci.ModifySecureObjectResult removeOwningGroup( 384 org.opencrx.kernel.base.cci.ModifyOwningGroupParams params 385 ) throws javax.jmi.reflect.RefException { 386 java.util.List args = new java.util.ArrayList (); 387 args.add(params); 388 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 389 "org:opencrx:kernel:base:SecureObject:removeOwningGroup", 390 args 391 ); 392 } 393 394 public org.opencrx.kernel.base.cci.ModifySecureObjectResult removeOwningGroup( 395 org.opencrx.security.realm1.cci.PrincipalGroup group 396 , short mode 397 ) throws javax.jmi.reflect.RefException { 398 return removeOwningGroup( 399 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createModifyOwningGroupParams( 400 group 401 , mode 402 ) 403 ); 404 } 405 406 public org.opencrx.kernel.base.cci.ModifySecureObjectResult setAccessLevel( 410 org.opencrx.kernel.base.cci.SetAccessLevelParams params 411 ) throws javax.jmi.reflect.RefException { 412 java.util.List args = new java.util.ArrayList (); 413 args.add(params); 414 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 415 "org:opencrx:kernel:base:SecureObject:setAccessLevel", 416 args 417 ); 418 } 419 420 public org.opencrx.kernel.base.cci.ModifySecureObjectResult setAccessLevel( 421 short accessLevelBrowse 422 , short accessLevelDelete 423 , short accessLevelUpdate 424 , short mode 425 ) throws javax.jmi.reflect.RefException { 426 return setAccessLevel( 427 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createSetAccessLevelParams( 428 accessLevelBrowse 429 , accessLevelDelete 430 , accessLevelUpdate 431 , mode 432 ) 433 ); 434 } 435 436 public org.opencrx.kernel.base.cci.ModifySecureObjectResult setOwningUser( 440 org.opencrx.kernel.base.cci.SetOwningUserParams params 441 ) throws javax.jmi.reflect.RefException { 442 java.util.List args = new java.util.ArrayList (); 443 args.add(params); 444 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 445 "org:opencrx:kernel:base:SecureObject:setOwningUser", 446 args 447 ); 448 } 449 450 public org.opencrx.kernel.base.cci.ModifySecureObjectResult setOwningUser( 451 short mode 452 , org.opencrx.security.realm1.cci.User user 453 ) throws javax.jmi.reflect.RefException { 454 return setOwningUser( 455 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createSetOwningUserParams( 456 mode 457 , user 458 ) 459 ); 460 } 461 462 public org.opencrx.kernel.document1.cci.Media getMedia( 466 ) { 467 return (org.opencrx.kernel.document1.cci.Media)refGetValue( 468 "org:opencrx:kernel:document1:MediaReference:media" 469 ); 470 } 471 472 public void setMedia( 476 org.opencrx.kernel.document1.cci.Media newValue 477 ) { 478 refSetValue( 479 "org:opencrx:kernel:document1:MediaReference:media", 480 newValue 481 ); 482 } 483 484 public void removeMedia ( 488 ) { 489 refRemoveValue( 490 "org:opencrx:kernel:document1:MediaReference:media" 491 ); 492 } 493 public java.util.Date getCreatedAt( 497 ) { 498 return getCreatedAt(0); 499 } 500 501 protected java.util.Date getCreatedAt( 502 int index 503 ) { 504 return (java.util.Date )this.refGetValue("org:openmdx:base:BasicObject:createdAt", index); 505 } 506 507 protected void setCreatedAt( 511 java.util.Date newValue 512 ) { 513 setCreatedAt(0, newValue); 514 } 515 516 protected void setCreatedAt( 517 int index, 518 java.util.Date newValue 519 ) { 520 refSetValue("org:openmdx:base:BasicObject:createdAt", index, newValue); 521 } 522 public java.util.Set getCreatedBy ( 526 ) { 527 return (java.util.Set )this.refGetValue("createdBy"); 528 } 529 protected void setCreatedBy( 533 java.util.Set newValue 534 ) { 535 refSetValue("org:openmdx:base:BasicObject:createdBy", newValue); 536 } 537 538 protected void setCreatedBy( 539 String [] newValue 540 ) { 541 refSetValue("org:openmdx:base:BasicObject:createdBy", newValue); 542 } 543 544 public java.util.Date getModifiedAt( 548 ) { 549 return getModifiedAt(0); 550 } 551 552 protected java.util.Date getModifiedAt( 553 int index 554 ) { 555 return (java.util.Date )this.refGetValue("org:openmdx:base:BasicObject:modifiedAt", index); 556 } 557 558 protected void setModifiedAt( 562 java.util.Date newValue 563 ) { 564 setModifiedAt(0, newValue); 565 } 566 567 protected void setModifiedAt( 568 int index, 569 java.util.Date newValue 570 ) { 571 refSetValue("org:openmdx:base:BasicObject:modifiedAt", index, newValue); 572 } 573 public java.util.Set getModifiedBy ( 577 ) { 578 return (java.util.Set )this.refGetValue("modifiedBy"); 579 } 580 protected void setModifiedBy( 584 java.util.Set newValue 585 ) { 586 refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue); 587 } 588 589 protected void setModifiedBy( 590 String [] newValue 591 ) { 592 refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue); 593 } 594 595 protected void setContext( 599 java.util.List newValue 600 ) { 601 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 602 } 603 604 protected void setContext( 605 org.openmdx.base.cci.Context[] newValue 606 ) { 607 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 608 } 609 610 public org.openmdx.base.cci.Context getContext( 614 String id 615 ) { 616 return (org.openmdx.base.cci.Context)refGetValue( 617 "org:openmdx:base:ContextCapable:context", 618 id 619 ); 620 } 621 622 public java.util.Collection getContext( 626 ) { 627 return (java.util.Collection )refGetValue( 628 "org:openmdx:base:ContextCapable:context" 629 ); 630 } 631 632 protected void addContext ( 636 String id, 637 org.openmdx.base.cci.Context newValue 638 ) { 639 refAddValue( 640 "org:openmdx:base:ContextCapable:context", 641 id, 642 newValue 643 ); 644 } 645 646 protected void addContext ( 650 org.openmdx.base.cci.Context newValue 651 ) { 652 refAddValue( 653 "org:openmdx:base:ContextCapable:context", 654 newValue 655 ); 656 } 657 658 protected void removeContext ( 662 String id 663 ) { 664 refRemoveValue( 665 "org:openmdx:base:ContextCapable:context", 666 id 667 ); 668 } 669 670 public String getIdentity( 674 ) { 675 return getIdentity(0); 676 } 677 678 protected String getIdentity( 679 int index 680 ) { 681 return (String )this.refGetValue("org:openmdx:base:ExtentCapable:identity", index); 682 } 683 684 protected void setIdentity( 688 String newValue 689 ) { 690 setIdentity(0, newValue); 691 } 692 693 protected void setIdentity( 694 int index, 695 String newValue 696 ) { 697 refSetValue("org:openmdx:base:ExtentCapable:identity", index, newValue); 698 } 699 protected void setView( 703 java.util.List newValue 704 ) { 705 refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue); 706 } 707 708 protected void setView( 709 org.openmdx.compatibility.view1.cci.View[] newValue 710 ) { 711 refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue); 712 } 713 714 public org.openmdx.compatibility.view1.cci.View getView( 718 String namespace 719 ) { 720 return (org.openmdx.compatibility.view1.cci.View)refGetValue( 721 "org:openmdx:compatibility:view1:ViewCapable:view", 722 namespace 723 ); 724 } 725 726 public java.util.Collection getView( 730 ) { 731 return (java.util.Collection )refGetValue( 732 "org:openmdx:compatibility:view1:ViewCapable:view" 733 ); 734 } 735 736 public java.util.List getView( 737 org.openmdx.compatibility.view1.cci.ViewFilter filter 738 ) { 739 return ((org.openmdx.compatibility.base.collection.Container)refGetValue( 740 "org:openmdx:compatibility:view1:ViewCapable:view" 741 )).toList(filter); 742 } 743 744 protected void addView ( 748 String namespace, 749 org.openmdx.compatibility.view1.cci.View newValue 750 ) { 751 refAddValue( 752 "org:openmdx:compatibility:view1:ViewCapable:view", 753 namespace, 754 newValue 755 ); 756 } 757 758 protected void addView ( 762 org.openmdx.compatibility.view1.cci.View newValue 763 ) { 764 refAddValue( 765 "org:openmdx:compatibility:view1:ViewCapable:view", 766 newValue 767 ); 768 } 769 770 protected void removeView ( 774 String namespace 775 ) { 776 refRemoveValue( 777 "org:openmdx:compatibility:view1:ViewCapable:view", 778 namespace 779 ); 780 } 781 782 } 786 | Popular Tags |