1 package org.openmdx.security.realm1.cci; 14 15 public class RoleClassImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefClass_1 17 implements RoleClass { 18 19 public RoleClassImpl( 20 org.openmdx.base.accessor.jmi.cci.RefPackage_1_0 refPackage 21 ) { 22 super(refPackage); 23 } 24 25 public String refMofId( 26 ) { 27 return "org:openmdx:security:realm1:Role"; 28 } 29 30 public Role getRole( 31 Object object 32 ) { 33 try { 34 if(object instanceof org.openmdx.base.accessor.jmi.cci.RefObject_1_0) { 35 java.util.List args = new java.util.ArrayList (); 36 args.add(object); 37 Role target = (Role)refCreateInstance( 38 args 39 ); 40 return target; 41 } else { 42 return (Role)((org.openmdx.base.accessor.jmi.cci.RefPackage_1_0)this.refOutermostPackage()).refObject( 43 object instanceof org.openmdx.compatibility.base.naming.Path 44 ? ((org.openmdx.compatibility.base.naming.Path)object).toXri() 45 : ((org.openmdx.base.accessor.generic.cci.Object_1_0)object).objGetPath().toXri() 46 ); 47 } 48 } 49 catch(org.openmdx.base.exception.ServiceException e) { 50 throw new org.openmdx.base.accessor.jmi.cci.JmiServiceException(e); 51 } 52 } 53 54 public Role createRole( 55 ) { 56 Role target = (Role)refCreateInstance( 57 null 58 ); 59 return target; 60 } 61 public Role createRole( 65 boolean disabled 66 ) { 67 RoleImpl _object = (RoleImpl)createRole(); 68 _object.setDisabled(disabled); 69 return _object; 70 } 71 72 public Role extendBasicObject( 76 org.openmdx.base.cci.BasicObject _base 77 , boolean disabled 78 ) { 79 RoleImpl _object = (RoleImpl)getRole(_base); 80 _object.setDisabled(disabled); 81 return _object; 82 } 83 84 public Role extendContextCapable( 88 org.openmdx.base.cci.ContextCapable _base 89 , boolean disabled 90 ) { 91 RoleImpl _object = (RoleImpl)getRole(_base); 92 _object.setDisabled(disabled); 93 return _object; 94 } 95 96 public Role extendExtentCapable( 100 org.openmdx.base.cci.ExtentCapable _base 101 , boolean disabled 102 ) { 103 RoleImpl _object = (RoleImpl)getRole(_base); 104 _object.setDisabled(disabled); 105 return _object; 106 } 107 108 public Role extendViewCapable( 112 org.openmdx.compatibility.view1.cci.ViewCapable _base 113 , boolean disabled 114 ) { 115 RoleImpl _object = (RoleImpl)getRole(_base); 116 _object.setDisabled(disabled); 117 return _object; 118 } 119 120 } 124 | Popular Tags |