1 package org.opencrx.kernel.generic.cci; 14 15 public class MediaImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefObject_1 17 implements Media { 18 19 public MediaImpl( 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 383 public java.io.InputStream getContent( 384 ) { 385 return (java.io.InputStream )this.refGetValue("org:opencrx:kernel:document1:Media:content"); 386 } 387 388 public long getContent( 389 java.io.OutputStream stream, 390 long position 391 ) { 392 return this.refGetValue("org:opencrx:kernel:document1:Media:content", stream, position); 393 } 394 395 399 public void setContent( 400 java.io.InputStream newValue 401 ) { 402 this.refSetValue("org:opencrx:kernel:document1:Media:content", newValue); 403 } 404 405 public void setContent( 406 java.io.InputStream newValue, 407 long length 408 ) { 409 this.refSetValue("org:opencrx:kernel:document1:Media:content", newValue, length); 410 } 411 412 public Long getContentLength ( 416 ) { 417 return (Long )this.refGetValue("contentLength", 0); 418 } 419 protected void setContentLength( 423 Long newValue 424 ) { 425 refSetValue("org:opencrx:kernel:document1:Media:contentLength", 0, newValue); 426 } 427 428 public String getContentMimeType ( 432 ) { 433 return (String )this.refGetValue("contentMimeType", 0); 434 } 435 public void setContentMimeType( 439 String newValue 440 ) { 441 refSetValue("org:opencrx:kernel:document1:Media:contentMimeType", 0, newValue); 442 } 443 444 public String getContentName ( 448 ) { 449 return (String )this.refGetValue("contentName", 0); 450 } 451 public void setContentName( 455 String newValue 456 ) { 457 refSetValue("org:opencrx:kernel:document1:Media:contentName", 0, newValue); 458 } 459 460 public String getDescription ( 464 ) { 465 return (String )this.refGetValue("description", 0); 466 } 467 public void setDescription( 471 String newValue 472 ) { 473 refSetValue("org:opencrx:kernel:document1:Media:description", 0, newValue); 474 } 475 476 public java.util.Date getCreatedAt( 480 ) { 481 return getCreatedAt(0); 482 } 483 484 protected java.util.Date getCreatedAt( 485 int index 486 ) { 487 return (java.util.Date )this.refGetValue("org:openmdx:base:BasicObject:createdAt", index); 488 } 489 490 protected void setCreatedAt( 494 java.util.Date newValue 495 ) { 496 setCreatedAt(0, newValue); 497 } 498 499 protected void setCreatedAt( 500 int index, 501 java.util.Date newValue 502 ) { 503 refSetValue("org:openmdx:base:BasicObject:createdAt", index, newValue); 504 } 505 public java.util.Set getCreatedBy ( 509 ) { 510 return (java.util.Set )this.refGetValue("createdBy"); 511 } 512 protected void setCreatedBy( 516 java.util.Set newValue 517 ) { 518 refSetValue("org:openmdx:base:BasicObject:createdBy", newValue); 519 } 520 521 protected void setCreatedBy( 522 String [] newValue 523 ) { 524 refSetValue("org:openmdx:base:BasicObject:createdBy", newValue); 525 } 526 527 public java.util.Date getModifiedAt( 531 ) { 532 return getModifiedAt(0); 533 } 534 535 protected java.util.Date getModifiedAt( 536 int index 537 ) { 538 return (java.util.Date )this.refGetValue("org:openmdx:base:BasicObject:modifiedAt", index); 539 } 540 541 protected void setModifiedAt( 545 java.util.Date newValue 546 ) { 547 setModifiedAt(0, newValue); 548 } 549 550 protected void setModifiedAt( 551 int index, 552 java.util.Date newValue 553 ) { 554 refSetValue("org:openmdx:base:BasicObject:modifiedAt", index, newValue); 555 } 556 public java.util.Set getModifiedBy ( 560 ) { 561 return (java.util.Set )this.refGetValue("modifiedBy"); 562 } 563 protected void setModifiedBy( 567 java.util.Set newValue 568 ) { 569 refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue); 570 } 571 572 protected void setModifiedBy( 573 String [] newValue 574 ) { 575 refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue); 576 } 577 578 protected void setContext( 582 java.util.List newValue 583 ) { 584 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 585 } 586 587 protected void setContext( 588 org.openmdx.base.cci.Context[] newValue 589 ) { 590 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 591 } 592 593 public org.openmdx.base.cci.Context getContext( 597 String id 598 ) { 599 return (org.openmdx.base.cci.Context)refGetValue( 600 "org:openmdx:base:ContextCapable:context", 601 id 602 ); 603 } 604 605 public java.util.Collection getContext( 609 ) { 610 return (java.util.Collection )refGetValue( 611 "org:openmdx:base:ContextCapable:context" 612 ); 613 } 614 615 protected void addContext ( 619 String id, 620 org.openmdx.base.cci.Context newValue 621 ) { 622 refAddValue( 623 "org:openmdx:base:ContextCapable:context", 624 id, 625 newValue 626 ); 627 } 628 629 protected void addContext ( 633 org.openmdx.base.cci.Context newValue 634 ) { 635 refAddValue( 636 "org:openmdx:base:ContextCapable:context", 637 newValue 638 ); 639 } 640 641 protected void removeContext ( 645 String id 646 ) { 647 refRemoveValue( 648 "org:openmdx:base:ContextCapable:context", 649 id 650 ); 651 } 652 653 public String getIdentity( 657 ) { 658 return getIdentity(0); 659 } 660 661 protected String getIdentity( 662 int index 663 ) { 664 return (String )this.refGetValue("org:openmdx:base:ExtentCapable:identity", index); 665 } 666 667 protected void setIdentity( 671 String newValue 672 ) { 673 setIdentity(0, newValue); 674 } 675 676 protected void setIdentity( 677 int index, 678 String newValue 679 ) { 680 refSetValue("org:openmdx:base:ExtentCapable:identity", index, newValue); 681 } 682 protected void setView( 686 java.util.List newValue 687 ) { 688 refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue); 689 } 690 691 protected void setView( 692 org.openmdx.compatibility.view1.cci.View[] newValue 693 ) { 694 refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue); 695 } 696 697 public org.openmdx.compatibility.view1.cci.View getView( 701 String namespace 702 ) { 703 return (org.openmdx.compatibility.view1.cci.View)refGetValue( 704 "org:openmdx:compatibility:view1:ViewCapable:view", 705 namespace 706 ); 707 } 708 709 public java.util.Collection getView( 713 ) { 714 return (java.util.Collection )refGetValue( 715 "org:openmdx:compatibility:view1:ViewCapable:view" 716 ); 717 } 718 719 public java.util.List getView( 720 org.openmdx.compatibility.view1.cci.ViewFilter filter 721 ) { 722 return ((org.openmdx.compatibility.base.collection.Container)refGetValue( 723 "org:openmdx:compatibility:view1:ViewCapable:view" 724 )).toList(filter); 725 } 726 727 protected void addView ( 731 String namespace, 732 org.openmdx.compatibility.view1.cci.View newValue 733 ) { 734 refAddValue( 735 "org:openmdx:compatibility:view1:ViewCapable:view", 736 namespace, 737 newValue 738 ); 739 } 740 741 protected void addView ( 745 org.openmdx.compatibility.view1.cci.View newValue 746 ) { 747 refAddValue( 748 "org:openmdx:compatibility:view1:ViewCapable:view", 749 newValue 750 ); 751 } 752 753 protected void removeView ( 757 String namespace 758 ) { 759 refRemoveValue( 760 "org:openmdx:compatibility:view1:ViewCapable:view", 761 namespace 762 ); 763 } 764 765 } 769 | Popular Tags |