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

microsoft.dynamics.crm.entity.collection.request.TranslationprocessCollectionRequest 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.Translationprocess;
import microsoft.dynamics.crm.entity.request.ProcesssessionRequest;
import microsoft.dynamics.crm.entity.request.SyncerrorRequest;
import microsoft.dynamics.crm.entity.request.TranslationprocessRequest;
import microsoft.dynamics.crm.entity.request.WorkflowlogRequest;

public class TranslationprocessCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public TranslationprocessCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, Translationprocess.class, cp -> new TranslationprocessRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

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

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

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

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

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

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

}