1 package org.opencrx.kernel.product1.cci; 14 15 public class AccountAssignmentImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefObject_1 17 implements AccountAssignment { 18 19 public AccountAssignmentImpl( 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.account1.cci.Account getAccount( 30 ) { 31 return (org.opencrx.kernel.account1.cci.Account)refGetValue( 32 "org:opencrx:kernel:account1:AccountAssignment:account" 33 ); 34 } 35 36 public void setAccount( 40 org.opencrx.kernel.account1.cci.Account newValue 41 ) { 42 refSetValue( 43 "org:opencrx:kernel:account1:AccountAssignment:account", 44 newValue 45 ); 46 } 47 48 public void removeAccount ( 52 ) { 53 refRemoveValue( 54 "org:opencrx:kernel:account1:AccountAssignment:account" 55 ); 56 } 57 public short getAccessLevelBrowse( 61 ) { 62 return getAccessLevelBrowse(0); 63 } 64 65 protected short getAccessLevelBrowse( 66 int index 67 ) { 68 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:base:SecureObject:accessLevelBrowse", index)).shortValue(); 69 } 70 71 public void setAccessLevelBrowse( 75 short newValue 76 ) { 77 setAccessLevelBrowse(0, newValue); 78 } 79 80 protected void setAccessLevelBrowse( 81 int index, 82 short newValue 83 ) { 84 refSetValue("org:opencrx:kernel:base:SecureObject:accessLevelBrowse", index, new Short (newValue)); 85 } 86 public short getAccessLevelDelete( 90 ) { 91 return getAccessLevelDelete(0); 92 } 93 94 protected short getAccessLevelDelete( 95 int index 96 ) { 97 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:base:SecureObject:accessLevelDelete", index)).shortValue(); 98 } 99 100 public void setAccessLevelDelete( 104 short newValue 105 ) { 106 setAccessLevelDelete(0, newValue); 107 } 108 109 protected void setAccessLevelDelete( 110 int index, 111 short newValue 112 ) { 113 refSetValue("org:opencrx:kernel:base:SecureObject:accessLevelDelete", index, new Short (newValue)); 114 } 115 public short getAccessLevelUpdate( 119 ) { 120 return getAccessLevelUpdate(0); 121 } 122 123 protected short getAccessLevelUpdate( 124 int index 125 ) { 126 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:base:SecureObject:accessLevelUpdate", index)).shortValue(); 127 } 128 129 public void setAccessLevelUpdate( 133 short newValue 134 ) { 135 setAccessLevelUpdate(0, newValue); 136 } 137 138 protected void setAccessLevelUpdate( 139 int index, 140 short newValue 141 ) { 142 refSetValue("org:opencrx:kernel:base:SecureObject:accessLevelUpdate", index, new Short (newValue)); 143 } 144 public org.opencrx.kernel.base.cci.ModifySecureObjectResult addOwningGroup( 148 org.opencrx.kernel.base.cci.ModifyOwningGroupParams params 149 ) throws javax.jmi.reflect.RefException { 150 java.util.List args = new java.util.ArrayList (); 151 args.add(params); 152 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 153 "org:opencrx:kernel:base:SecureObject:addOwningGroup", 154 args 155 ); 156 } 157 158 public org.opencrx.kernel.base.cci.ModifySecureObjectResult addOwningGroup( 159 org.opencrx.security.realm1.cci.PrincipalGroup group 160 , short mode 161 ) throws javax.jmi.reflect.RefException { 162 return addOwningGroup( 163 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createModifyOwningGroupParams( 164 group 165 , mode 166 ) 167 ); 168 } 169 170 public java.util.List getOwner ( 174 ) { 175 return (java.util.List )this.refGetValue("owner"); 176 } 177 public String getOwner( 178 int index 179 ) { 180 return (String )this.refGetValue("org:opencrx:kernel:base:SecureObject:owner", index); 181 } 182 183 protected void setOwner( 187 java.util.List newValue 188 ) { 189 refSetValue("org:opencrx:kernel:base:SecureObject:owner", newValue); 190 } 191 192 protected void setOwner( 193 String [] newValue 194 ) { 195 refSetValue("org:opencrx:kernel:base:SecureObject:owner", newValue); 196 } 197 198 public void setOwningGroup( 202 java.util.List newValue 203 ) { 204 refSetValue("org:opencrx:kernel:base:SecureObject:owningGroup", newValue); 205 } 206 207 public void setOwningGroup( 208 org.opencrx.security.realm1.cci.PrincipalGroup[] newValue 209 ) { 210 refSetValue("org:opencrx:kernel:base:SecureObject:owningGroup", newValue); 211 } 212 213 public org.opencrx.security.realm1.cci.PrincipalGroup getOwningGroup( 217 int index 218 ) { 219 return (org.opencrx.security.realm1.cci.PrincipalGroup)refGetValue( 220 "org:opencrx:kernel:base:SecureObject:owningGroup", 221 new Integer (index) 222 ); 223 } 224 225 public java.util.Collection getOwningGroup( 229 ) { 230 return (java.util.Collection )refGetValue( 231 "org:opencrx:kernel:base:SecureObject:owningGroup" 232 ); 233 } 234 235 public void addOwningGroup ( 239 int index, 240 org.opencrx.security.realm1.cci.PrincipalGroup newValue 241 ) { 242 refAddValue( 243 "org:opencrx:kernel:base:SecureObject:owningGroup", 244 new Integer (index), 245 newValue 246 ); 247 } 248 249 public void addOwningGroup ( 253 org.opencrx.security.realm1.cci.PrincipalGroup newValue 254 ) { 255 refAddValue( 256 "org:opencrx:kernel:base:SecureObject:owningGroup", 257 newValue 258 ); 259 } 260 261 public void removeOwningGroup ( 265 int index 266 ) { 267 refRemoveValue( 268 "org:opencrx:kernel:base:SecureObject:owningGroup", 269 new Integer (index) 270 ); 271 } 272 273 public org.opencrx.security.realm1.cci.User getOwningUser( 277 ) { 278 return (org.opencrx.security.realm1.cci.User)refGetValue( 279 "org:opencrx:kernel:base:SecureObject:owningUser" 280 ); 281 } 282 283 public void setOwningUser( 287 org.opencrx.security.realm1.cci.User newValue 288 ) { 289 refSetValue( 290 "org:opencrx:kernel:base:SecureObject:owningUser", 291 newValue 292 ); 293 } 294 295 public void removeOwningUser ( 299 ) { 300 refRemoveValue( 301 "org:opencrx:kernel:base:SecureObject:owningUser" 302 ); 303 } 304 public org.opencrx.kernel.base.cci.ModifySecureObjectResult removeAllOwningGroup( 308 org.opencrx.kernel.base.cci.RemoveAllOwningGroupParams params 309 ) throws javax.jmi.reflect.RefException { 310 java.util.List args = new java.util.ArrayList (); 311 args.add(params); 312 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 313 "org:opencrx:kernel:base:SecureObject:removeAllOwningGroup", 314 args 315 ); 316 } 317 318 public org.opencrx.kernel.base.cci.ModifySecureObjectResult removeAllOwningGroup( 319 short mode 320 ) throws javax.jmi.reflect.RefException { 321 return removeAllOwningGroup( 322 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createRemoveAllOwningGroupParams( 323 mode 324 ) 325 ); 326 } 327 328 public org.opencrx.kernel.base.cci.ModifySecureObjectResult removeOwningGroup( 332 org.opencrx.kernel.base.cci.ModifyOwningGroupParams params 333 ) throws javax.jmi.reflect.RefException { 334 java.util.List args = new java.util.ArrayList (); 335 args.add(params); 336 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 337 "org:opencrx:kernel:base:SecureObject:removeOwningGroup", 338 args 339 ); 340 } 341 342 public org.opencrx.kernel.base.cci.ModifySecureObjectResult removeOwningGroup( 343 org.opencrx.security.realm1.cci.PrincipalGroup group 344 , short mode 345 ) throws javax.jmi.reflect.RefException { 346 return removeOwningGroup( 347 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createModifyOwningGroupParams( 348 group 349 , mode 350 ) 351 ); 352 } 353 354 public org.opencrx.kernel.base.cci.ModifySecureObjectResult setAccessLevel( 358 org.opencrx.kernel.base.cci.SetAccessLevelParams params 359 ) throws javax.jmi.reflect.RefException { 360 java.util.List args = new java.util.ArrayList (); 361 args.add(params); 362 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 363 "org:opencrx:kernel:base:SecureObject:setAccessLevel", 364 args 365 ); 366 } 367 368 public org.opencrx.kernel.base.cci.ModifySecureObjectResult setAccessLevel( 369 short accessLevelBrowse 370 , short accessLevelDelete 371 , short accessLevelUpdate 372 , short mode 373 ) throws javax.jmi.reflect.RefException { 374 return setAccessLevel( 375 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createSetAccessLevelParams( 376 accessLevelBrowse 377 , accessLevelDelete 378 , accessLevelUpdate 379 , mode 380 ) 381 ); 382 } 383 384 public org.opencrx.kernel.base.cci.ModifySecureObjectResult setOwningUser( 388 org.opencrx.kernel.base.cci.SetOwningUserParams params 389 ) throws javax.jmi.reflect.RefException { 390 java.util.List args = new java.util.ArrayList (); 391 args.add(params); 392 return (org.opencrx.kernel.base.cci.ModifySecureObjectResult)refInvokeOperation( 393 "org:opencrx:kernel:base:SecureObject:setOwningUser", 394 args 395 ); 396 } 397 398 public org.opencrx.kernel.base.cci.ModifySecureObjectResult setOwningUser( 399 short mode 400 , org.opencrx.security.realm1.cci.User user 401 ) throws javax.jmi.reflect.RefException { 402 return setOwningUser( 403 ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createSetOwningUserParams( 404 mode 405 , user 406 ) 407 ); 408 } 409 410 public java.math.BigDecimal getDiscount ( 414 ) { 415 return (java.math.BigDecimal )this.refGetValue("discount", 0); 416 } 417 public void setDiscount( 421 java.math.BigDecimal newValue 422 ) { 423 refSetValue("org:opencrx:kernel:product1:AccountAssignment:discount", 0, newValue); 424 } 425 426 public Boolean isDiscountIsPercentage ( 430 ) { 431 return (Boolean )this.refGetValue("discountIsPercentage", 0); 432 } 433 public void setDiscountIsPercentage( 437 Boolean newValue 438 ) { 439 refSetValue("org:opencrx:kernel:product1:AccountAssignment:discountIsPercentage", 0, newValue); 440 } 441 442 public java.util.Date getCreatedAt( 446 ) { 447 return getCreatedAt(0); 448 } 449 450 protected java.util.Date getCreatedAt( 451 int index 452 ) { 453 return (java.util.Date )this.refGetValue("org:openmdx:base:BasicObject:createdAt", index); 454 } 455 456 protected void setCreatedAt( 460 java.util.Date newValue 461 ) { 462 setCreatedAt(0, newValue); 463 } 464 465 protected void setCreatedAt( 466 int index, 467 java.util.Date newValue 468 ) { 469 refSetValue("org:openmdx:base:BasicObject:createdAt", index, newValue); 470 } 471 public java.util.Set getCreatedBy ( 475 ) { 476 return (java.util.Set )this.refGetValue("createdBy"); 477 } 478 protected void setCreatedBy( 482 java.util.Set newValue 483 ) { 484 refSetValue("org:openmdx:base:BasicObject:createdBy", newValue); 485 } 486 487 protected void setCreatedBy( 488 String [] newValue 489 ) { 490 refSetValue("org:openmdx:base:BasicObject:createdBy", newValue); 491 } 492 493 public java.util.Date getModifiedAt( 497 ) { 498 return getModifiedAt(0); 499 } 500 501 protected java.util.Date getModifiedAt( 502 int index 503 ) { 504 return (java.util.Date )this.refGetValue("org:openmdx:base:BasicObject:modifiedAt", index); 505 } 506 507 protected void setModifiedAt( 511 java.util.Date newValue 512 ) { 513 setModifiedAt(0, newValue); 514 } 515 516 protected void setModifiedAt( 517 int index, 518 java.util.Date newValue 519 ) { 520 refSetValue("org:openmdx:base:BasicObject:modifiedAt", index, newValue); 521 } 522 public java.util.Set getModifiedBy ( 526 ) { 527 return (java.util.Set )this.refGetValue("modifiedBy"); 528 } 529 protected void setModifiedBy( 533 java.util.Set newValue 534 ) { 535 refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue); 536 } 537 538 protected void setModifiedBy( 539 String [] newValue 540 ) { 541 refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue); 542 } 543 544 protected void setContext( 548 java.util.List newValue 549 ) { 550 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 551 } 552 553 protected void setContext( 554 org.openmdx.base.cci.Context[] newValue 555 ) { 556 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 557 } 558 559 public org.openmdx.base.cci.Context getContext( 563 String id 564 ) { 565 return (org.openmdx.base.cci.Context)refGetValue( 566 "org:openmdx:base:ContextCapable:context", 567 id 568 ); 569 } 570 571 public java.util.Collection getContext( 575 ) { 576 return (java.util.Collection )refGetValue( 577 "org:openmdx:base:ContextCapable:context" 578 ); 579 } 580 581 protected void addContext ( 585 String id, 586 org.openmdx.base.cci.Context newValue 587 ) { 588 refAddValue( 589 "org:openmdx:base:ContextCapable:context", 590 id, 591 newValue 592 ); 593 } 594 595 protected void addContext ( 599 org.openmdx.base.cci.Context newValue 600 ) { 601 refAddValue( 602 "org:openmdx:base:ContextCapable:context", 603 newValue 604 ); 605 } 606 607 protected void removeContext ( 611 String id 612 ) { 613 refRemoveValue( 614 "org:openmdx:base:ContextCapable:context", 615 id 616 ); 617 } 618 619 public String getIdentity( 623 ) { 624 return getIdentity(0); 625 } 626 627 protected String getIdentity( 628 int index 629 ) { 630 return (String )this.refGetValue("org:openmdx:base:ExtentCapable:identity", index); 631 } 632 633 protected void setIdentity( 637 String newValue 638 ) { 639 setIdentity(0, newValue); 640 } 641 642 protected void setIdentity( 643 int index, 644 String newValue 645 ) { 646 refSetValue("org:openmdx:base:ExtentCapable:identity", index, newValue); 647 } 648 protected void setView( 652 java.util.List newValue 653 ) { 654 refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue); 655 } 656 657 protected void setView( 658 org.openmdx.compatibility.view1.cci.View[] newValue 659 ) { 660 refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue); 661 } 662 663 public org.openmdx.compatibility.view1.cci.View getView( 667 String namespace 668 ) { 669 return (org.openmdx.compatibility.view1.cci.View)refGetValue( 670 "org:openmdx:compatibility:view1:ViewCapable:view", 671 namespace 672 ); 673 } 674 675 public java.util.Collection getView( 679 ) { 680 return (java.util.Collection )refGetValue( 681 "org:openmdx:compatibility:view1:ViewCapable:view" 682 ); 683 } 684 685 public java.util.List getView( 686 org.openmdx.compatibility.view1.cci.ViewFilter filter 687 ) { 688 return ((org.openmdx.compatibility.base.collection.Container)refGetValue( 689 "org:openmdx:compatibility:view1:ViewCapable:view" 690 )).toList(filter); 691 } 692 693 protected void addView ( 697 String namespace, 698 org.openmdx.compatibility.view1.cci.View newValue 699 ) { 700 refAddValue( 701 "org:openmdx:compatibility:view1:ViewCapable:view", 702 namespace, 703 newValue 704 ); 705 } 706 707 protected void addView ( 711 org.openmdx.compatibility.view1.cci.View newValue 712 ) { 713 refAddValue( 714 "org:openmdx:compatibility:view1:ViewCapable:view", 715 newValue 716 ); 717 } 718 719 protected void removeView ( 723 String namespace 724 ) { 725 refRemoveValue( 726 "org:openmdx:compatibility:view1:ViewCapable:view", 727 namespace 728 ); 729 } 730 731 } 735 | Popular Tags |