Class TrelloCardWriter


public class TrelloCardWriter extends TrelloApiWriter
Writes each record to Trello as a new card in a list, reading the list ID, card name and description from configurable record fields that must all be present.
  • Constructor Details

    • TrelloCardWriter

      public TrelloCardWriter(String apiKey, String apiToken)
  • Method Details

    • getListIdField

      public String getListIdField()
      Returns the name of the record field holding the ID of the list to add the card to (defaults to "listId").
    • setListIdField

      public TrelloCardWriter setListIdField(String listIdField)
      Sets the name of the record field holding the ID of the list to add the card to (defaults to "listId").
    • getNameField

      public String getNameField()
      Returns the name of the record field holding the card name (defaults to "name").
    • setNameField

      public TrelloCardWriter setNameField(String nameField)
      Sets the name of the record field holding the card name (defaults to "name").
    • getDescriptionField

      public String getDescriptionField()
      Returns the name of the record field holding the card description (defaults to "description").
    • setDescriptionField

      public TrelloCardWriter setDescriptionField(String descriptionField)
      Sets the name of the record field holding the card description (defaults to "description").
    • writeImpl

      protected void writeImpl(Record record, TrelloClient trelloClient) throws Throwable
      Description copied from class: TrelloApiWriter
      Writes the record to Trello with the client opened by this writer; called by TrelloApiWriter.writeImpl(Record) for each record.
      Specified by:
      writeImpl in class TrelloApiWriter
      Throws:
      Throwable
    • addExceptionProperties

      public DataException addExceptionProperties(DataException exception)
      Description copied from class: Endpoint
      Adds this endpoint's current state to a DataException. Since this method is called whenever an exception is thrown, subclasses should override it to add their specific information.
      Overrides:
      addExceptionProperties in class DataWriter