1 package org.opencrx.kernel.base.cci; 14 15 public class ObjectModificationAuditEntryClassImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefClass_1 17 implements ObjectModificationAuditEntryClass { 18 19 public ObjectModificationAuditEntryClassImpl( 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:kernel:base:ObjectModificationAuditEntry"; 28 } 29 30 public ObjectModificationAuditEntry getObjectModificationAuditEntry( 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 ObjectModificationAuditEntry target = (ObjectModificationAuditEntry)refCreateInstance( 38 args 39 ); 40 return target; 41 } else { 42 return (ObjectModificationAuditEntry)((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 ObjectModificationAuditEntry createObjectModificationAuditEntry( 55 ) { 56 ObjectModificationAuditEntry target = (ObjectModificationAuditEntry)refCreateInstance( 57 null 58 ); 59 return target; 60 } 61 public ObjectModificationAuditEntry createObjectModificationAuditEntry( 65 String auditee 66 , String beforeImage 67 , String modifiedFeatures 68 , short accessLevelBrowse 69 , short accessLevelDelete 70 , short accessLevelUpdate 71 ) { 72 ObjectModificationAuditEntryImpl _object = (ObjectModificationAuditEntryImpl)createObjectModificationAuditEntry(); 73 _object.setAuditee(auditee); 74 _object.setBeforeImage(beforeImage); 75 _object.setModifiedFeatures(modifiedFeatures); 76 _object.setAccessLevelBrowse(accessLevelBrowse); 77 _object.setAccessLevelDelete(accessLevelDelete); 78 _object.setAccessLevelUpdate(accessLevelUpdate); 79 return _object; 80 } 81 82 public ObjectModificationAuditEntry extendAuditEntry( 86 org.opencrx.kernel.base.cci.AuditEntry _base 87 , String beforeImage 88 , String modifiedFeatures 89 ) { 90 ObjectModificationAuditEntryImpl _object = (ObjectModificationAuditEntryImpl)getObjectModificationAuditEntry(_base); 91 _object.setBeforeImage(beforeImage); 92 _object.setModifiedFeatures(modifiedFeatures); 93 return _object; 94 } 95 96 public ObjectModificationAuditEntry extendSecureObject( 100 org.opencrx.kernel.base.cci.SecureObject _base 101 , String auditee 102 , String beforeImage 103 , String modifiedFeatures 104 ) { 105 ObjectModificationAuditEntryImpl _object = (ObjectModificationAuditEntryImpl)getObjectModificationAuditEntry(_base); 106 _object.setAuditee(auditee); 107 _object.setBeforeImage(beforeImage); 108 _object.setModifiedFeatures(modifiedFeatures); 109 return _object; 110 } 111 112 public ObjectModificationAuditEntry extendBasicObject( 116 org.openmdx.base.cci.BasicObject _base 117 , String auditee 118 , String beforeImage 119 , String modifiedFeatures 120 , short accessLevelBrowse 121 , short accessLevelDelete 122 , short accessLevelUpdate 123 ) { 124 ObjectModificationAuditEntryImpl _object = (ObjectModificationAuditEntryImpl)getObjectModificationAuditEntry(_base); 125 _object.setAuditee(auditee); 126 _object.setBeforeImage(beforeImage); 127 _object.setModifiedFeatures(modifiedFeatures); 128 _object.setAccessLevelBrowse(accessLevelBrowse); 129 _object.setAccessLevelDelete(accessLevelDelete); 130 _object.setAccessLevelUpdate(accessLevelUpdate); 131 return _object; 132 } 133 134 public ObjectModificationAuditEntry extendContextCapable( 138 org.openmdx.base.cci.ContextCapable _base 139 , String auditee 140 , String beforeImage 141 , String modifiedFeatures 142 , short accessLevelBrowse 143 , short accessLevelDelete 144 , short accessLevelUpdate 145 ) { 146 ObjectModificationAuditEntryImpl _object = (ObjectModificationAuditEntryImpl)getObjectModificationAuditEntry(_base); 147 _object.setAuditee(auditee); 148 _object.setBeforeImage(beforeImage); 149 _object.setModifiedFeatures(modifiedFeatures); 150 _object.setAccessLevelBrowse(accessLevelBrowse); 151 _object.setAccessLevelDelete(accessLevelDelete); 152 _object.setAccessLevelUpdate(accessLevelUpdate); 153 return _object; 154 } 155 156 public ObjectModificationAuditEntry extendExtentCapable( 160 org.openmdx.base.cci.ExtentCapable _base 161 , String auditee 162 , String beforeImage 163 , String modifiedFeatures 164 , short accessLevelBrowse 165 , short accessLevelDelete 166 , short accessLevelUpdate 167 ) { 168 ObjectModificationAuditEntryImpl _object = (ObjectModificationAuditEntryImpl)getObjectModificationAuditEntry(_base); 169 _object.setAuditee(auditee); 170 _object.setBeforeImage(beforeImage); 171 _object.setModifiedFeatures(modifiedFeatures); 172 _object.setAccessLevelBrowse(accessLevelBrowse); 173 _object.setAccessLevelDelete(accessLevelDelete); 174 _object.setAccessLevelUpdate(accessLevelUpdate); 175 return _object; 176 } 177 178 public ObjectModificationAuditEntry extendViewCapable( 182 org.openmdx.compatibility.view1.cci.ViewCapable _base 183 , String auditee 184 , String beforeImage 185 , String modifiedFeatures 186 , short accessLevelBrowse 187 , short accessLevelDelete 188 , short accessLevelUpdate 189 ) { 190 ObjectModificationAuditEntryImpl _object = (ObjectModificationAuditEntryImpl)getObjectModificationAuditEntry(_base); 191 _object.setAuditee(auditee); 192 _object.setBeforeImage(beforeImage); 193 _object.setModifiedFeatures(modifiedFeatures); 194 _object.setAccessLevelBrowse(accessLevelBrowse); 195 _object.setAccessLevelDelete(accessLevelDelete); 196 _object.setAccessLevelUpdate(accessLevelUpdate); 197 return _object; 198 } 199 200 } 204 | Popular Tags |