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

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

There is a newer version: 0.2.2
Show 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 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;
import microsoft.dynamics.crm.schema.SchemaInfo;

public class PositionCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

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

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

    public AsyncoperationRequest position_AsyncOperations(String asyncoperationid) {
        return new AsyncoperationRequest(contextPath.addSegment("position_AsyncOperations").addKeys(new NameValue(asyncoperationid.toString())));
    }

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

    public ProcesssessionRequest position_ProcessSession(String processsessionid) {
        return new ProcesssessionRequest(contextPath.addSegment("position_ProcessSession").addKeys(new NameValue(processsessionid.toString())));
    }

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

    public SystemuserRequest position_users(String ownerid) {
        return new SystemuserRequest(contextPath.addSegment("position_users").addKeys(new NameValue(ownerid.toString())));
    }

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

    public PositionRequest position_parent_position(String positionid) {
        return new PositionRequest(contextPath.addSegment("position_parent_position").addKeys(new NameValue(positionid.toString())));
    }

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

    public PrincipalobjectattributeaccessRequest position_principalobjectattributeaccess(String principalobjectattributeaccessid) {
        return new PrincipalobjectattributeaccessRequest(contextPath.addSegment("position_principalobjectattributeaccess").addKeys(new NameValue(principalobjectattributeaccessid.toString())));
    }

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

    public ConnectionRequest position_connection1(String connectionid) {
        return new ConnectionRequest(contextPath.addSegment("position_connection1").addKeys(new NameValue(connectionid.toString())));
    }

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

    public ConnectionRequest position_connection2(String connectionid) {
        return new ConnectionRequest(contextPath.addSegment("position_connection2").addKeys(new NameValue(connectionid.toString())));
    }

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

    public SyncerrorRequest position_SyncErrors(String syncerrorid) {
        return new SyncerrorRequest(contextPath.addSegment("Position_SyncErrors").addKeys(new NameValue(syncerrorid.toString())));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy