Class DocumentTraceMessage

java.lang.Object
com.aquima.interactions.trace.impl.TraceMessageBase
com.aquima.interactions.trace.impl.DocumentTraceMessage
All Implemented Interfaces:
ITraceMessage, Serializable

public final class DocumentTraceMessage extends TraceMessageBase
This message is created to trace a creation and update of a file, a move of a file, a delete of a file and an update of a metadata file.
Since:
9.3
Author:
N. van Noorloos, J. Hermus, T. Middeldorp
See Also:
  • Field Details

  • Method Details

    • forDocumentCreated

      public static ITraceMessage forDocumentCreated(String applicationId, String userId, String userName, String documentId, String documentName, String documentConnection, String caseId, Long processId)
      Constructs a trace message to trace a creation of a file.
      Parameters:
      applicationId - The id of the application, can not be null.
      userId - the user id
      userName - the user name
      documentId - The id of the document, can not be null.
      documentName - The name of the document, can not be null.
      documentConnection - The connection used to create the document, can be null.
      caseId - The optional case id, can be null.
      processId - The optional process id, can be null.
      Returns:
      DocumentTraceMessage for tracing the creation of a file.
    • forDocumentUpdated

      public static ITraceMessage forDocumentUpdated(String applicationId, String userId, String userName, String documentId, String documentName, String documentConnection, String caseId, Long processId, String previousDocumentName)
      Constructs a trace message to trace a update of a file.
      Parameters:
      applicationId - The id of the application, can't be null.
      userId - the user id
      userName - the user name
      documentId - The id of the document, can not be null.
      documentName - The name of the document, can not be null.
      documentConnection - The connection used to create the document, can be null.
      caseId - The optional case id, can be null.
      processId - The optional process id, can be null.
      previousDocumentName - The name of the document before update.
      Returns:
      DocumentTraceMessage for tracing the update of a file.
    • forDocumentMoved

      public static ITraceMessage forDocumentMoved(String applicationId, String userId, String userName, String documentId, String documentName, String documentConnection, String toDocumentId, String toDocumentConnection, String caseId, Long processId)
      Constructs a trace message to trace a move of a file.
      Parameters:
      applicationId - The id of the application, can't be null.
      userId - the user id
      userName - the user name
      documentId - The id of the document, can not be null.
      documentName - The name of the document, can not be null.
      documentConnection - The connection used to create the document, can be null.
      toDocumentId - The to-id of the document, can be null.
      toDocumentConnection - The to-connection used to create the document, can be null.
      caseId - The optional case id, can be null.
      processId - The optional process id, can be null.
      Returns:
      DocumentTraceMessage for tracing the move of a file.
    • forDocumentReceived

      public static ITraceMessage forDocumentReceived(String applicationId, String userId, String userName, String documentId, String documentName, String documentConnection, String fromDocumentId, String fromDocumentConnection, String caseId, Long processId)
      Constructs a trace message to trace a move of a file.
      Parameters:
      applicationId - The id of the application, can't be null.
      userId - the user id
      userName - the user name
      documentId - The id of the document, can not be null.
      documentName - The name of the document, can be null.
      documentConnection - The connection used to create the document, can be null.
      fromDocumentId - The from-id of the document before update.
      fromDocumentConnection - The from-connection used to create the document, can be null.
      caseId - The optional case id, can be null.
      processId - The optional process id, can be null.
      Returns:
      DocumentTraceMessage for tracing the move of a file.
    • forDocumentDeleted

      public static ITraceMessage forDocumentDeleted(String applicationId, String userId, String userName, String documentId, String documentName, String documentConnection, String caseId, Long processId)
      Constructs a trace message to trace a delete of a file.
      Parameters:
      applicationId - The id of the application, can't be null.
      userId - the user id
      userName - the user name
      documentId - The id of the document, can not be null.
      documentName - The name of the document, can not be null.
      documentConnection - The connection used to create the document, can be null.
      caseId - The optional case id, can be null.
      processId - The optional process id, can be null.
      Returns:
      DocumentTraceMessage for tracing the delete of a file.
    • forDocumentMetadataUpdated

      public static ITraceMessage forDocumentMetadataUpdated(String applicationId, String userId, String userName, String documentId, String documentName, String documentConnection, String caseId, Long processId)
      Constructs a trace message to trace a delete of a file.
      Parameters:
      applicationId - The id of the application, can't be null.
      userId - the user id
      userName - the user name
      documentId - The id of the document, can not be null.
      documentName - The name of the document, can not be null.
      documentConnection - The connection used to create the document, can be null.
      caseId - The optional case id, can be null.
      processId - The optional process id, can be null.
      Returns:
      DocumentTraceMessage for tracing the update of a metadata file.
    • forDocumentGenerated

      public static ITraceMessage forDocumentGenerated(String applicationId, String userId, String userName, String documentId, String documentName, String documentConnection, String caseId, Long processId)
      Constructs a trace message to trace a generation of a file.
      Parameters:
      applicationId - The id of the application, can't be null.
      userId - the user id
      userName - the username
      documentId - The id of the document, can not be null.
      documentName - The name of the document, can not be null.
      documentConnection - The connection used to generate the document, can be null.
      caseId - The optional case id, can be null.
      processId - Process id
      Returns:
      DocumentTraceMessage for tracing the generation of a file.