Class 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:
    Serialized Form
    • Method Detail

      • forDocumentCreated

        public static ITraceMessage forDocumentCreated​(String applicationId,
                                                       String userId,
                                                       String userName,
                                                       String documentId,
                                                       String documentName,
                                                       String documentConnection,
                                                       Long caseId)
        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.
        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,
                                                       Long caseId,
                                                       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.
        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,
                                                     Long caseId)
        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.
        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,
                                                        Long caseId)
        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.
        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,
                                                       Long caseId)
        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.
        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,
                                                               Long caseId)
        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.
        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,
                                                         Long caseId)
        Constructs a trace message to trace a generate 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 generate the document, can be null.
        caseId - The optional case id, can be null.
        Returns:
        DocumentTraceMessage for tracing the generate of a file.