1 package org.opencrx.security.realm1.cci; 14 15 public class PrincipalClassImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefClass_1 17 implements PrincipalClass { 18 19 public PrincipalClassImpl( 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:opencrx:security:realm1:Principal"; 28 } 29 30 public Principal getPrincipal( 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 Principal target = (Principal)refCreateInstance( 38 args 39 ); 40 return target; 41 } else { 42 return (Principal)((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 Principal createPrincipal( 55 ) { 56 Principal target = (Principal)refCreateInstance( 57 null 58 ); 59 return target; 60 } 61 public Principal createPrincipal( 65 java.util.Date lastLoginAt 66 , boolean disabled 67 , org.openmdx.security.realm1.cci.Subject subject 68 ) { 69 PrincipalImpl _object = (PrincipalImpl)createPrincipal(); 70 _object.setLastLoginAt(lastLoginAt); 71 _object.setDisabled(disabled); 72 _object.setSubject(subject); 73 return _object; 74 } 75 76 public Principal extendBasicObject( 80 org.openmdx.base.cci.BasicObject _base 81 , java.util.Date lastLoginAt 82 , boolean disabled 83 , org.openmdx.security.realm1.cci.Subject subject 84 ) { 85 PrincipalImpl _object = (PrincipalImpl)getPrincipal(_base); 86 _object.setLastLoginAt(lastLoginAt); 87 _object.setDisabled(disabled); 88 _object.setSubject(subject); 89 return _object; 90 } 91 92 public Principal extendContextCapable( 96 org.openmdx.base.cci.ContextCapable _base 97 , java.util.Date lastLoginAt 98 , boolean disabled 99 , org.openmdx.security.realm1.cci.Subject subject 100 ) { 101 PrincipalImpl _object = (PrincipalImpl)getPrincipal(_base); 102 _object.setLastLoginAt(lastLoginAt); 103 _object.setDisabled(disabled); 104 _object.setSubject(subject); 105 return _object; 106 } 107 108 public Principal extendExtentCapable( 112 org.openmdx.base.cci.ExtentCapable _base 113 , java.util.Date lastLoginAt 114 , boolean disabled 115 , org.openmdx.security.realm1.cci.Subject subject 116 ) { 117 PrincipalImpl _object = (PrincipalImpl)getPrincipal(_base); 118 _object.setLastLoginAt(lastLoginAt); 119 _object.setDisabled(disabled); 120 _object.setSubject(subject); 121 return _object; 122 } 123 124 public Principal extendViewCapable( 128 org.openmdx.compatibility.view1.cci.ViewCapable _base 129 , java.util.Date lastLoginAt 130 , boolean disabled 131 , org.openmdx.security.realm1.cci.Subject subject 132 ) { 133 PrincipalImpl _object = (PrincipalImpl)getPrincipal(_base); 134 _object.setLastLoginAt(lastLoginAt); 135 _object.setDisabled(disabled); 136 _object.setSubject(subject); 137 return _object; 138 } 139 140 public Principal extendPrincipal( 144 org.openmdx.security.realm1.cci.Principal _base 145 , java.util.Date lastLoginAt 146 ) { 147 PrincipalImpl _object = (PrincipalImpl)getPrincipal(_base); 148 _object.setLastLoginAt(lastLoginAt); 149 return _object; 150 } 151 152 } 156 | Popular Tags |