public class AsanaProjectStatusAttachmentFetcher extends GenericAsanaObjectFetcher<com.asana.models.Attachment>
| Modifier and Type | Field and Description |
|---|---|
private AsanaClient |
client |
private com.asana.models.Project |
project |
private static String |
PROJECT_GID |
| Constructor and Description |
|---|
AsanaProjectStatusAttachmentFetcher(AsanaClient client,
String projectName) |
| 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> |
fetchProjectStatusAttachments() |
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 static final String PROJECT_GID
private final AsanaClient client
private final com.asana.models.Project project
public AsanaProjectStatusAttachmentFetcher(AsanaClient client, String projectName)
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> fetchProjectStatusAttachments()
Copyright © 2024 Apache NiFi Project. All rights reserved.