<?xml version="1.0"?>
<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.2.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_6_2_0.dtd">
<service-builder package-path= "it.tref.liferay.portos.audit" >
<author > Marco</author>
<namespace > portos_AUDIT</namespace>
<entity name= "AuditEvent" local-service= "true" remote-service= "false" >
<column name= "auditEventId" type= "long" primary= "true" />
<column name= "companyId" type= "long" />
<column name= "createDate" type= "Date" />
<!-- Dati dell'utente che ha effettuato l'operazione -->
<column name= "userId" type= "long" />
<column name= "userName" type= "String" />
<!-- Questo campo è utilizzato per definire la tipologia di audit STORICO, LOG -->
<column name= "auditEventTable" type= "String" />
<!-- 3 Campi utilizzati per categorizzare gli eventi inseriti e migliorare la ricerca -->
<column name= "eventType" type= "String" />
<column name= "eventCategory" type= "String" />
<column name= "eventAction" type= "String" />
<!-- 3 Campi per stabilire quale è l'oggetto di interesse in caso di urcgroupid= 0 si riferisce ad un evento globale -->
<column name= "classNameId" type= "long" />
<column name= "classPK" type= "String" />
<column name= "enteGroupId" type= "long" />
<column name= "enteCodice" type= "String" />
<!-- 2 Campi per stabilire quale è l'oggetto padre a cui è legato qeullo del log -->
<column name= "parentClassNameId" type= "long" />
<column name= "parentClassPK" type= "String" />
<!-- 2 Campi per stabilire quale è l'aggetto a cui è relazionato il log (escluso il parent) -->
<column name= "relatedClassNameId" type= "long" />
<column name= "relatedClassPK" type= "String" />
<!-- Messaggio testuale dell'evento -->
<column name= "message" type= "String" />
<!-- Dati per lo storico -->
<column name= "diff" type= "String" />
<!-- Dati generici dell'utente che ha effettuato l'operazione -->
<column name= "clientHost" type= "String" />
<column name= "clientIP" type= "String" />
<column name= "serverName" type= "String" />
<column name= "serverPort" type= "int" />
<column name= "sessionID" type= "String" />
<!-- Informazioni addizionale dell'evento -->
<column name= "additionalInfo" type= "String" />
<order by= "desc" >
<order-column name= "createDate" />
</order>
<finder name= "CompanyId" return-type= "Collection" >
<finder-column name= "companyId" />
</finder>
<finder name= "C_ClassNameId" return-type= "Collection" >
<finder-column name= "companyId" />
<finder-column name= "classNameId" />
</finder>
<finder name= "C_ClassNameId_ClassPK" return-type= "Collection" >
<finder-column name= "companyId" />
<finder-column name= "classNameId" />
<finder-column name= "classPK" />
</finder>
<finder name= "C_ClassNameId_AuditEventTable" return-type= "Collection" >
<finder-column name= "companyId" />
<finder-column name= "classNameId" />
<finder-column name= "auditEventTable" />
</finder>
<finder name= "C_ClassNameId_ClassPK_AuditEventTable" return-type= "Collection" >
<finder-column name= "companyId" />
<finder-column name= "classNameId" />
<finder-column name= "classPK" />
<finder-column name= "auditEventTable" />
</finder>
<finder name= "C_ParentClassNameId_ParentClassPK" return-type= "Collection" >
<finder-column name= "companyId" />
<finder-column name= "parentClassNameId" />
<finder-column name= "parentClassPK" />
</finder>
<finder name= "C_ParentClassNameId_ParentClassPK_ClassNameId" return-type= "Collection" >
<finder-column name= "companyId" />
<finder-column name= "parentClassNameId" />
<finder-column name= "parentClassPK" />
<finder-column name= "classNameId" />
</finder>
</entity>
</service-builder>