All Downloads are FREE. Search and download functionalities are using the official Maven repository.

microsoft.dynamics.crm.entity.collection.request.NewprocessCollectionRequest Maven / Gradle / Ivy

The newest version!
package microsoft.dynamics.crm.entity.collection.request;

import com.github.davidmoten.odata.client.CollectionPageEntityRequest;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.NameValue;

import java.lang.Object;
import java.util.Optional;
import java.util.UUID;

import microsoft.dynamics.crm.entity.Newprocess;
import microsoft.dynamics.crm.entity.request.NewprocessRequest;
import microsoft.dynamics.crm.entity.request.ProcesssessionRequest;
import microsoft.dynamics.crm.entity.request.SyncerrorRequest;
import microsoft.dynamics.crm.entity.request.WorkflowlogRequest;

public class NewprocessCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public NewprocessCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, Newprocess.class, cp -> new NewprocessRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

    public ProcesssessionRequest newProcess_ProcessSessions(UUID processsessionid) {
        return new ProcesssessionRequest(contextPath.addSegment("NewProcess_ProcessSessions").addKeys(new NameValue(processsessionid, UUID.class)), Optional.empty());
    }

    public ProcesssessionCollectionRequest newProcess_ProcessSessions() {
        return new ProcesssessionCollectionRequest(contextPath.addSegment("NewProcess_ProcessSessions"), Optional.empty());
    }

    public WorkflowlogRequest workflowlogs_newprocess(UUID workflowlogid) {
        return new WorkflowlogRequest(contextPath.addSegment("workflowlogs_newprocess").addKeys(new NameValue(workflowlogid, UUID.class)), Optional.empty());
    }

    public WorkflowlogCollectionRequest workflowlogs_newprocess() {
        return new WorkflowlogCollectionRequest(contextPath.addSegment("workflowlogs_newprocess"), Optional.empty());
    }

    public SyncerrorRequest newProcess_SyncErrors(UUID syncerrorid) {
        return new SyncerrorRequest(contextPath.addSegment("NewProcess_SyncErrors").addKeys(new NameValue(syncerrorid, UUID.class)), Optional.empty());
    }

    public SyncerrorCollectionRequest newProcess_SyncErrors() {
        return new SyncerrorCollectionRequest(contextPath.addSegment("NewProcess_SyncErrors"), Optional.empty());
    }

}