public class AsanaTaskAttachmentFetcher extends GenericAsanaObjectFetcher<com.asana.models.Attachment>
| Modifier and Type | Field and Description |
|---|---|
private AsanaClient |
client |
private AsanaTaskFetcher |
taskFetcher |
| Constructor and Description |
|---|
AsanaTaskAttachmentFetcher(AsanaClient client,
String projectName,
String sectionName,
String tagName) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createObjectFingerprint(com.asana.models.Attachment object) |
protected Stream<com.asana.models.Attachment> |
fetchObjects() |
private Stream<com.asana.models.Attachment> |
fetchTaskAttachments() |
void |
loadState(Map<String,String> state)
Call this method to deserialize & restore a state that was saved/exported earlier.
|
Map<String,String> |
saveState()
Call this method to serialize this object fetcher's state.
|
clearState, fetch, fetchNext, transformObjectToPayloadprivate final AsanaClient client
private final AsanaTaskFetcher taskFetcher
public AsanaTaskAttachmentFetcher(AsanaClient client, String projectName, String sectionName, String tagName)
public Map<String,String> saveState()
AsanaObjectFetchersaveState in interface AsanaObjectFetchersaveState in class GenericAsanaObjectFetcher<com.asana.models.Attachment>Map containing the object state in key-value pairs. Optimized for using it with
StateManagerpublic void loadState(Map<String,String> state)
AsanaObjectFetcherloadState in interface AsanaObjectFetcherloadState in class GenericAsanaObjectFetcher<com.asana.models.Attachment>state - A Map containing all the key-value pairs returned by a prior call to saveState().protected Stream<com.asana.models.Attachment> fetchObjects()
fetchObjects in class GenericAsanaObjectFetcher<com.asana.models.Attachment>protected String createObjectFingerprint(com.asana.models.Attachment object)
createObjectFingerprint in class GenericAsanaObjectFetcher<com.asana.models.Attachment>private Stream<com.asana.models.Attachment> fetchTaskAttachments()
Copyright © 2024 Apache NiFi Project. All rights reserved.