private DBAuditMetadataLogEntity createCommonHAMLE(Configuration conf, TSentryResponseStatus responseStatus, String userName, String requestClassName) { DBAuditMetadataLogEntity hamle = new DBAuditMetadataLogEntity(); setCommAttrForAMLE(hamle, conf, responseStatus, userName, toOperationType(requestClassName), toObjectType(requestClassName)); return hamle; }
private GMAuditMetadataLogEntity createCommonGMAMLE(Configuration conf, TSentryResponseStatus responseStatus, String userName, String requestClassName, String component) { GMAuditMetadataLogEntity gmamle = new GMAuditMetadataLogEntity(); setCommAttrForAMLE(gmamle, conf, responseStatus, userName, toOperationType(requestClassName), toObjectType(requestClassName)); gmamle.setComponent(component); return gmamle; }