Class SynchronizationCsvInJobRequest

All Implemented Interfaces:
Serializable

public class SynchronizationCsvInJobRequest extends FullSynchronizationRequest
The request defining synchronization call properties from a CSV file.
See Also:
  • Field Details Link icon

    • separator Link icon

      @NotNull @DefaultValue(";") protected @NotNull Character separator
      The delimiter character used to separate entries. The default value is ';'.
    • quote Link icon

      @NotNull @DefaultValue("\"") protected @NotNull Character quote
      The delimiter character used for quoted entries. The default value is '"'.
    • escape Link icon

      @NotNull @DefaultValue("\\") protected @NotNull Character escape
      The delimiter character used to escape separator or quote character. The default value is '\\'.
    • strictQuotes Link icon

      protected boolean strictQuotes
      Whether the characters outside quotes should be ignored. The default value is false.
    • ignoreLeadingWhitespace Link icon

      protected boolean ignoreLeadingWhitespace
      Whether whitespace characters before quotes should be ignored. The default value is false.
    • headerRow Link icon

      protected boolean headerRow
      Whether the first row of the synchronized CSV file is the header. The default value is false.
    • template Link icon

      @NotBlank protected @NotBlank String template
      The template that should be used for parsing and synchronizing the contents of the CSV file.

      There is one placeholder currently supported:

      • ${x} - refers to the x-th column in the CSV file, e.g. ${1}, ${2}, ...)

      Example of a correct JSON template:

       [
         {
           "identifier": {
             "name": "${1}",
             "domain": {
               "name": "${2}",
               "community": {
                 "name": "Some Community"
               }
             }
           },
           "attributes" : {
              "00000000-0000-0000-0000-000000003115" : [ {
                "value" : "${3}"
              } ],
              "00000000-0000-0000-0000-000000000222" : [ {
                "value" : "${4}"
              } ]
           },
           "resourceType": "Asset"
         }
       ]
       
  • Constructor Details Link icon

    • SynchronizationCsvInJobRequest Link icon

      public SynchronizationCsvInJobRequest()
  • Method Details Link icon

    • builder Link icon

    • getSeparator Link icon

      public Character getSeparator()
      The delimiter character used to separate entries. The default value is ';'.
    • getQuote Link icon

      public Character getQuote()
      The delimiter character used for quoted entries. The default value is '"'.
    • getEscape Link icon

      public Character getEscape()
      The delimiter character used to escape separator or quote character. The default value is '\\'.
    • isStrictQuotes Link icon

      public boolean isStrictQuotes()
      Whether the characters outside quotes should be ignored. The default value is false.
    • isIgnoreLeadingWhitespace Link icon

      public boolean isIgnoreLeadingWhitespace()
      Whether whitespace characters before quotes should be ignored. The default value is false.
    • isHeaderRow Link icon

      public boolean isHeaderRow()
      Whether the first row of the synchronized CSV file is the header. The default value is false.
    • getTemplate Link icon

      public String getTemplate()
      The template that should be used for parsing and synchronizing the contents of the CSV file.

      There is one placeholder currently supported:

      • ${x} - refers to the x-th column in the CSV file, e.g. ${1}, ${2}, ...)

      Example of a correct JSON template:

       [
         {
           "identifier": {
             "name": "${1}",
             "domain": {
               "name": "${2}",
               "community": {
                 "name": "Some Community"
               }
             }
           },
           "attributes" : {
              "00000000-0000-0000-0000-000000003115" : [ {
                "value" : "${3}"
              } ],
              "00000000-0000-0000-0000-000000000222" : [ {
                "value" : "${4}"
              } ]
           },
           "resourceType": "Asset"
         }
       ]
       
    • getFinalizationParameters Link icon

    • toString Link icon

      public String toString()
      Overrides:
      toString in class FullSynchronizationRequest
    • equals Link icon

      public boolean equals(Object o)
      Overrides:
      equals in class FullSynchronizationRequest
    • canEqual Link icon

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class FullSynchronizationRequest
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class FullSynchronizationRequest