1 package org.opencrx.kernel.home1.cci; 14 15 public class SegmentImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefObject_1 17 implements Segment { 18 19 public SegmentImpl( 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.home1.cci.CreateUserResult createUser( 383 org.opencrx.kernel.home1.cci.CreateUserParams params 384 ) throws javax.jmi.reflect.RefException { 385 java.util.List args = new java.util.ArrayList (); 386 args.add(params); 387 return (org.opencrx.kernel.home1.cci.CreateUserResult)refInvokeOperation( 388 "org:opencrx:kernel:home1:Segment:createUser", 389 args 390 ); 391 } 392 393 public org.opencrx.kernel.home1.cci.CreateUserResult createUser( 394 org.opencrx.kernel.account1.cci.Contact contact 395 , String initialPassword 396 , String initialPasswordVerification 397 , org.opencrx.security.realm1.cci.PrincipalGroup primaryUserGroup 398 , String principalName 399 ) throws javax.jmi.reflect.RefException { 400 return createUser( 401 ((org.opencrx.kernel.home1.cci.home1Package)refOutermostPackage().refPackage("org:opencrx:kernel:home1")).createCreateUserParams( 402 contact 403 , initialPassword 404 , initialPasswordVerification 405 , primaryUserGroup 406 , principalName 407 ) 408 ); 409 } 410 411 public org.opencrx.kernel.home1.cci.ImportUsersResult importUsers( 415 org.opencrx.kernel.home1.cci.ImportUsersParams params 416 ) throws javax.jmi.reflect.RefException { 417 java.util.List args = new java.util.ArrayList (); 418 args.add(params); 419 return (org.opencrx.kernel.home1.cci.ImportUsersResult)refInvokeOperation( 420 "org:opencrx:kernel:home1:Segment:importUsers", 421 args 422 ); 423 } 424 425 public org.opencrx.kernel.home1.cci.ImportUsersResult importUsers( 426 byte[] item 427 , String itemMimeType 428 , String itemName 429 ) throws javax.jmi.reflect.RefException { 430 return importUsers( 431 ((org.opencrx.kernel.home1.cci.home1Package)refOutermostPackage().refPackage("org:opencrx:kernel:home1")).createImportUsersParams( 432 item 433 , itemMimeType 434 , itemName 435 ) 436 ); 437 } 438 439 public void setUserHome( 443 java.util.List newValue 444 ) { 445 refSetValue("org:opencrx:kernel:home1:Segment:userHome", newValue); 446 } 447 448 public void setUserHome( 449 org.opencrx.kernel.home1.cci.UserHome[] newValue 450 ) { 451 refSetValue("org:opencrx:kernel:home1:Segment:userHome", newValue); 452 } 453 454 public org.opencrx.kernel.home1.cci.UserHome getUserHome( 458 String principalId 459 ) { 460 return (org.opencrx.kernel.home1.cci.UserHome)refGetValue( 461 "org:opencrx:kernel:home1:Segment:userHome", 462 principalId 463 ); 464 } 465 466 public java.util.Collection getUserHome( 470 ) { 471 return (java.util.Collection )refGetValue( 472 "org:opencrx:kernel:home1:Segment:userHome" 473 ); 474 } 475 476 public java.util.List getUserHome( 477 org.opencrx.kernel.home1.cci.UserHomeFilter filter 478 ) { 479 return ((org.openmdx.compatibility.base.collection.Container)refGetValue( 480 "org:opencrx:kernel:home1:Segment:userHome" 481 )).toList(filter); 482 } 483 484 public void addUserHome ( 488 String principalId, 489 org.opencrx.kernel.home1.cci.UserHome newValue 490 ) { 491 refAddValue( 492 "org:opencrx:kernel:home1:Segment:userHome", 493 principalId, 494 newValue 495 ); 496 } 497 498 public void addUserHome ( 502 org.opencrx.kernel.home1.cci.UserHome newValue 503 ) { 504 refAddValue( 505 "org:opencrx:kernel:home1:Segment:userHome", 506 newValue 507 ); 508 } 509 510 public void removeUserHome ( 514 String principalId 515 ) { 516 refRemoveValue( 517 "org:opencrx:kernel:home1:Segment:userHome", 518 principalId 519 ); 520 } 521 522 protected void setContext( 526 java.util.List newValue 527 ) { 528 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 529 } 530 531 protected void setContext( 532 org.openmdx.base.cci.Context[] newValue 533 ) { 534 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 535 } 536 537 public org.openmdx.base.cci.Context getContext( 541 String id 542 ) { 543 return (org.openmdx.base.cci.Context)refGetValue( 544 "org:openmdx:base:ContextCapable:context", 545 id 546 ); 547 } 548 549 public java.util.Collection getContext( 553 ) { 554 return (java.util.Collection )refGetValue( 555 "org:openmdx:base:ContextCapable:context" 556 ); 557 } 558 559 protected void addContext ( 563 String id, 564 org.openmdx.base.cci.Context newValue 565 ) { 566 refAddValue( 567 "org:openmdx:base:ContextCapable:context", 568 id, 569 newValue 570 ); 571 } 572 573 protected void addContext ( 577 org.openmdx.base.cci.Context newValue 578 ) { 579 refAddValue( 580 "org:openmdx:base:ContextCapable:context", 581 newValue 582 ); 583 } 584 585 protected void removeContext ( 589 String id 590 ) { 591 refRemoveValue( 592 "org:openmdx:base:ContextCapable:context", 593 id 594 ); 595 } 596 597 public String getDescription ( 601 ) { 602 return (String )this.refGetValue("description", 0); 603 } 604 public void setDescription( 608 String newValue 609 ) { 610 refSetValue("org:openmdx:base:Segment:description", 0, newValue); 611 } 612 613 protected void setExtent( 617 java.util.List newValue 618 ) { 619 refSetValue("org:openmdx:base:Segment:extent", newValue); 620 } 621 622 protected void setExtent( 623 org.openmdx.base.cci.ExtentCapable[] newValue 624 ) { 625 refSetValue("org:openmdx:base:Segment:extent", newValue); 626 } 627 628 public org.openmdx.base.cci.ExtentCapable getExtent( 632 String identity 633 ) { 634 return (org.openmdx.base.cci.ExtentCapable)refGetValue( 635 "org:openmdx:base:Segment:extent", 636 identity 637 ); 638 } 639 640 public java.util.Collection getExtent( 644 ) { 645 return (java.util.Collection )refGetValue( 646 "org:openmdx:base:Segment:extent" 647 ); 648 } 649 650 public java.util.List getExtent( 651 org.openmdx.base.cci.ExtentCapableFilter filter 652 ) { 653 return ((org.openmdx.compatibility.base.collection.Container)refGetValue( 654 "org:openmdx:base:Segment:extent" 655 )).toList(filter); 656 } 657 658 protected void addExtent ( 662 String identity, 663 org.openmdx.base.cci.ExtentCapable newValue 664 ) { 665 refAddValue( 666 "org:openmdx:base:Segment:extent", 667 identity, 668 newValue 669 ); 670 } 671 672 protected void addExtent ( 676 org.openmdx.base.cci.ExtentCapable newValue 677 ) { 678 refAddValue( 679 "org:openmdx:base:Segment:extent", 680 newValue 681 ); 682 } 683 684 protected void removeExtent ( 688 String identity 689 ) { 690 refRemoveValue( 691 "org:openmdx:base:Segment:extent", 692 identity 693 ); 694 } 695 696 public org.openmdx.base.cci.Provider getProvider( 700 ) { 701 return (org.openmdx.base.cci.Provider)refGetValue( 702 "org:openmdx:base:Segment:provider" 703 ); 704 } 705 706 protected void setProvider( 710 org.openmdx.base.cci.Provider newValue 711 ) { 712 refSetValue( 713 "org:openmdx:base:Segment:provider", 714 newValue 715 ); 716 } 717 718 protected void setView( 722 java.util.List newValue 723 ) { 724 refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue); 725 } 726 727 protected void setView( 728 org.openmdx.compatibility.view1.cci.View[] newValue 729 ) { 730 refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue); 731 } 732 733 public org.openmdx.compatibility.view1.cci.View getView( 737 String namespace 738 ) { 739 return (org.openmdx.compatibility.view1.cci.View)refGetValue( 740 "org:openmdx:compatibility:view1:ViewCapable:view", 741 namespace 742 ); 743 } 744 745 public java.util.Collection getView( 749 ) { 750 return (java.util.Collection )refGetValue( 751 "org:openmdx:compatibility:view1:ViewCapable:view" 752 ); 753 } 754 755 public java.util.List getView( 756 org.openmdx.compatibility.view1.cci.ViewFilter filter 757 ) { 758 return ((org.openmdx.compatibility.base.collection.Container)refGetValue( 759 "org:openmdx:compatibility:view1:ViewCapable:view" 760 )).toList(filter); 761 } 762 763 protected void addView ( 767 String namespace, 768 org.openmdx.compatibility.view1.cci.View newValue 769 ) { 770 refAddValue( 771 "org:openmdx:compatibility:view1:ViewCapable:view", 772 namespace, 773 newValue 774 ); 775 } 776 777 protected void addView ( 781 org.openmdx.compatibility.view1.cci.View newValue 782 ) { 783 refAddValue( 784 "org:openmdx:compatibility:view1:ViewCapable:view", 785 newValue 786 ); 787 } 788 789 protected void removeView ( 793 String namespace 794 ) { 795 refRemoveValue( 796 "org:openmdx:compatibility:view1:ViewCapable:view", 797 namespace 798 ); 799 } 800 801 } 805 | Popular Tags |