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

microsoft.dynamics.crm.entity.collection.request.PositionCollectionRequest 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.Position;
import microsoft.dynamics.crm.entity.request.AsyncoperationRequest;
import microsoft.dynamics.crm.entity.request.ConnectionRequest;
import microsoft.dynamics.crm.entity.request.PositionRequest;
import microsoft.dynamics.crm.entity.request.PrincipalobjectattributeaccessRequest;
import microsoft.dynamics.crm.entity.request.ProcesssessionRequest;
import microsoft.dynamics.crm.entity.request.SyncerrorRequest;
import microsoft.dynamics.crm.entity.request.SystemuserRequest;

public class PositionCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public PositionCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, Position.class, cp -> new PositionRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

    public AsyncoperationRequest position_AsyncOperations(UUID asyncoperationid) {
        return new AsyncoperationRequest(contextPath.addSegment("position_AsyncOperations").addKeys(new NameValue(asyncoperationid, UUID.class)), Optional.empty());
    }

    public AsyncoperationCollectionRequest position_AsyncOperations() {
        return new AsyncoperationCollectionRequest(contextPath.addSegment("position_AsyncOperations"), Optional.empty());
    }

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

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

    public SystemuserRequest position_users(UUID ownerid) {
        return new SystemuserRequest(contextPath.addSegment("position_users").addKeys(new NameValue(ownerid, UUID.class)), Optional.empty());
    }

    public SystemuserCollectionRequest position_users() {
        return new SystemuserCollectionRequest(contextPath.addSegment("position_users"), Optional.empty());
    }

    public PositionRequest position_parent_position(UUID positionid) {
        return new PositionRequest(contextPath.addSegment("position_parent_position").addKeys(new NameValue(positionid, UUID.class)), Optional.empty());
    }

    public PositionCollectionRequest position_parent_position() {
        return new PositionCollectionRequest(contextPath.addSegment("position_parent_position"), Optional.empty());
    }

    public PrincipalobjectattributeaccessRequest position_principalobjectattributeaccess(UUID principalobjectattributeaccessid) {
        return new PrincipalobjectattributeaccessRequest(contextPath.addSegment("position_principalobjectattributeaccess").addKeys(new NameValue(principalobjectattributeaccessid, UUID.class)), Optional.empty());
    }

    public PrincipalobjectattributeaccessCollectionRequest position_principalobjectattributeaccess() {
        return new PrincipalobjectattributeaccessCollectionRequest(contextPath.addSegment("position_principalobjectattributeaccess"), Optional.empty());
    }

    public ConnectionRequest position_connection1(UUID connectionid) {
        return new ConnectionRequest(contextPath.addSegment("position_connection1").addKeys(new NameValue(connectionid, UUID.class)), Optional.empty());
    }

    public ConnectionCollectionRequest position_connection1() {
        return new ConnectionCollectionRequest(contextPath.addSegment("position_connection1"), Optional.empty());
    }

    public ConnectionRequest position_connection2(UUID connectionid) {
        return new ConnectionRequest(contextPath.addSegment("position_connection2").addKeys(new NameValue(connectionid, UUID.class)), Optional.empty());
    }

    public ConnectionCollectionRequest position_connection2() {
        return new ConnectionCollectionRequest(contextPath.addSegment("position_connection2"), Optional.empty());
    }

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

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

}