public class AsanaProjectMembershipFetcher extends GenericAsanaObjectFetcher<com.asana.models.ProjectMembership>
| Modifier and Type | Field and Description |
|---|---|
private AsanaClient |
client |
private com.asana.models.Project |
project |
private static String |
PROJECT_GID |
| Constructor and Description |
|---|
AsanaProjectMembershipFetcher(AsanaClient client,
String projectName) |
| Modifier and Type | Method and Description |
|---|---|
protected Stream<com.asana.models.ProjectMembership> |
fetchObjects() |
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 static final String PROJECT_GID
private final AsanaClient client
private final com.asana.models.Project project
public AsanaProjectMembershipFetcher(AsanaClient client, String projectName)
public Map<String,String> saveState()
AsanaObjectFetchersaveState in interface AsanaObjectFetchersaveState in class GenericAsanaObjectFetcher<com.asana.models.ProjectMembership>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.ProjectMembership>state - A Map containing all the key-value pairs returned by a prior call to saveState().protected Stream<com.asana.models.ProjectMembership> fetchObjects()
fetchObjects in class GenericAsanaObjectFetcher<com.asana.models.ProjectMembership>Copyright © 2024 Apache NiFi Project. All rights reserved.