public class AsanaStoryFetcher extends GenericAsanaObjectFetcher<com.asana.models.Story>
| Modifier and Type | Field and Description |
|---|---|
private AsanaClient |
client |
private AsanaTaskFetcher |
taskFetcher |
| Constructor and Description |
|---|
AsanaStoryFetcher(AsanaClient client,
String projectName,
String sectionName,
String tagName) |
| Modifier and Type | Method and Description |
|---|---|
protected Stream<com.asana.models.Story> |
fetchObjects() |
private Stream<com.asana.models.Story> |
fetchStories() |
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, createObjectFingerprint, fetch, fetchNext, transformObjectToPayloadprivate final AsanaClient client
private final AsanaTaskFetcher taskFetcher
public AsanaStoryFetcher(AsanaClient client, String projectName, String sectionName, String tagName)
public Map<String,String> saveState()
AsanaObjectFetchersaveState in interface AsanaObjectFetchersaveState in class GenericAsanaObjectFetcher<com.asana.models.Story>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.Story>state - A Map containing all the key-value pairs returned by a prior call to saveState().protected Stream<com.asana.models.Story> fetchObjects()
fetchObjects in class GenericAsanaObjectFetcher<com.asana.models.Story>private Stream<com.asana.models.Story> fetchStories()
Copyright © 2024 Apache NiFi Project. All rights reserved.