Class TrelloCardWriter
java.lang.Object
com.northconcepts.datapipeline.core.DataObject
com.northconcepts.datapipeline.core.Endpoint
com.northconcepts.datapipeline.core.DataEndpoint
com.northconcepts.datapipeline.core.DataWriter
com.northconcepts.datapipeline.internal.lang.IntegrationWriter
com.northconcepts.datapipeline.trello.TrelloApiWriter
com.northconcepts.datapipeline.trello.TrelloCardWriter
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.northconcepts.datapipeline.core.DataEndpoint
DataEndpoint.State -
Field Summary
Fields inherited from class com.northconcepts.datapipeline.trello.TrelloApiWriter
trelloStubFields inherited from class com.northconcepts.datapipeline.core.DataEndpoint
lastRecord, PRODUCT, PRODUCT_VERSION, VENDOR, XML_INPUT_FACTORY_KEYFields inherited from class com.northconcepts.datapipeline.core.Endpoint
BUFFER_SIZE, captureElapsedTime, DEFAULT_READ_BUFFER_SIZEFields inherited from class com.northconcepts.datapipeline.core.DataObject
id, log, name, TIMESTAMP_FORMAT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddExceptionProperties(DataException exception) Adds this endpoint's current state to aDataException.Returns the name of the record field holding the card description (defaults to"description").Returns the name of the record field holding the ID of the list to add the card to (defaults to"listId").Returns the name of the record field holding the card name (defaults to"name").setDescriptionField(String descriptionField) Sets the name of the record field holding the card description (defaults to"description").setListIdField(String listIdField) Sets the name of the record field holding the ID of the list to add the card to (defaults to"listId").setNameField(String nameField) Sets the name of the record field holding the card name (defaults to"name").protected voidWrites the record to Trello with the client opened by this writer; called byTrelloApiWriter.writeImpl(Record)for each record.Methods inherited from class com.northconcepts.datapipeline.trello.TrelloApiWriter
close, open, writeImplMethods inherited from class com.northconcepts.datapipeline.core.DataWriter
available, getNestedEndpoint, getNestedWriter, getRootEndpoint, getRootWriter, getWriter, writeMethods inherited from class com.northconcepts.datapipeline.core.DataEndpoint
decrementRecordCount, enableJmx, getLastRecord, getRecordCount, getRecordCountAsBigInteger, getRecordCountAsString, incrementRecordCount, isRecordCountBigInteger, resetRecordCount, toStringMethods inherited from class com.northconcepts.datapipeline.core.Endpoint
addElapsedtime, assertClosed, assertNotOpened, assertOpened, finalize, getClosedOn, getDescription, getElapsedTime, getElapsedTimeAsString, getOpenedOn, getOpenElapsedTime, getOpenElapsedTimeAsString, getSelfTime, getSelfTimeAsString, getState, isCaptureElapsedTime, isClosed, isOpen, setCaptureElapsedTime, setDescription
-
Constructor Details
-
TrelloCardWriter
-
-
Method Details
-
getListIdField
Returns the name of the record field holding the ID of the list to add the card to (defaults to"listId"). -
setListIdField
Sets the name of the record field holding the ID of the list to add the card to (defaults to"listId"). -
getNameField
Returns the name of the record field holding the card name (defaults to"name"). -
setNameField
Sets the name of the record field holding the card name (defaults to"name"). -
getDescriptionField
Returns the name of the record field holding the card description (defaults to"description"). -
setDescriptionField
Sets the name of the record field holding the card description (defaults to"description"). -
writeImpl
Description copied from class:TrelloApiWriterWrites the record to Trello with the client opened by this writer; called byTrelloApiWriter.writeImpl(Record)for each record.- Specified by:
writeImplin classTrelloApiWriter- Throws:
Throwable
-
addExceptionProperties
Description copied from class:EndpointAdds this endpoint's current state to aDataException. Since this method is called whenever an exception is thrown, subclasses should override it to add their specific information.- Overrides:
addExceptionPropertiesin classDataWriter
-