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

microsoft.dynamics.crm.entity.collection.request.ConnectionCollectionRequest 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.Connection;
import microsoft.dynamics.crm.entity.request.AsyncoperationRequest;
import microsoft.dynamics.crm.entity.request.ConnectionRequest;
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.schema.SchemaInfo;

public class ConnectionCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public ConnectionCollectionRequest(ContextPath contextPath) {
        super(contextPath, Connection.class, cp -> new ConnectionRequest(cp), SchemaInfo.INSTANCE);
        this.contextPath = contextPath;
    }

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

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

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

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

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

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

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

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

    public SyncerrorCollectionRequest connection_SyncErrors() {
        return new SyncerrorCollectionRequest(contextPath.addSegment("Connection_SyncErrors"));
    }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy