Package de.xima.fc.audit.ms.impl
Class MsAuditService
- java.lang.Object
-
- de.xima.fc.audit.ms.impl.MsAuditService
-
- All Implemented Interfaces:
de.root1.simon.SimonRemoteType,RpcAuditService,RpcHandler,Serializable
@ApplicationScoped public class MsAuditService extends Object implements RpcAuditService
Master-server implementation of theRpcAuditService. Instances are handed to the frontend server as SIMON remote references, so every call from the frontend executes here on the master.Bridges the audit API to the legacy protocol-entry entities: each method maps the input to the matching entity, resolves the referenced tenant / form version / form record via the legacy DAOs, attributes the entry to the acting user, and persists it via
ProtokollUtils.Every method is a unit of work, so an entry written by a caller that already runs in a transaction becomes part of that transaction: it is committed with the caller's own work, and a failed entry leaves that transaction uncommittable. A call that arrives over RPC from the frontend server runs in a transaction of its own.
- Since:
- 8.5.6
- Author:
- Norman Lorenz
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MsAuditService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuditEntryHandlerecordFormRecord(FormRecordAuditEntry entry, User user)AuditEntryHandlerecordFormVersion(FormVersionAuditEntry entry, User user)AuditEntryHandlerecordSystem(SystemAuditEntry entry, User user)AuditEntryHandlerecordTenant(TenantAuditEntry entry, User user)
-
-
-
Method Detail
-
recordFormRecord
public AuditEntryHandle recordFormRecord(FormRecordAuditEntry entry, User user) throws FcAuditException
- Specified by:
recordFormRecordin interfaceRpcAuditService- Throws:
FcAuditException- See Also:
AuditService.record(FormRecordAuditEntry, User)
-
recordFormVersion
public AuditEntryHandle recordFormVersion(FormVersionAuditEntry entry, User user) throws FcAuditException
- Specified by:
recordFormVersionin interfaceRpcAuditService- Throws:
FcAuditException- See Also:
AuditService.record(FormVersionAuditEntry, User)
-
recordSystem
public AuditEntryHandle recordSystem(SystemAuditEntry entry, User user) throws FcAuditException
- Specified by:
recordSystemin interfaceRpcAuditService- Throws:
FcAuditException- See Also:
AuditService.record(SystemAuditEntry, User)
-
recordTenant
public AuditEntryHandle recordTenant(TenantAuditEntry entry, User user) throws FcAuditException
- Specified by:
recordTenantin interfaceRpcAuditService- Throws:
FcAuditException- See Also:
AuditService.record(TenantAuditEntry, User)
-
-