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

microsoft.dynamics.crm.entity.collection.request.EntityCollectionRequest 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.Entity;
import microsoft.dynamics.crm.entity.request.EntityRequest;
import microsoft.dynamics.crm.entity.request.EntityanalyticsconfigRequest;
import microsoft.dynamics.crm.entity.request.SolutioncomponentconfigurationRequest;
import microsoft.dynamics.crm.schema.SchemaInfo;

public class EntityCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public EntityCollectionRequest(ContextPath contextPath) {
        super(contextPath, Entity.class, cp -> new EntityRequest(cp), SchemaInfo.INSTANCE);
        this.contextPath = contextPath;
    }

    public SolutioncomponentconfigurationCollectionRequest entity_solutioncomponentconfiguration() {
        return new SolutioncomponentconfigurationCollectionRequest(contextPath.addSegment("entity_solutioncomponentconfiguration"));
    }

    public SolutioncomponentconfigurationRequest entity_solutioncomponentconfiguration(String solutioncomponentconfigurationid) {
        return new SolutioncomponentconfigurationRequest(contextPath.addSegment("entity_solutioncomponentconfiguration").addKeys(new NameValue(solutioncomponentconfigurationid.toString())));
    }

    public EntityanalyticsconfigCollectionRequest entity_entityanalyticsconfig() {
        return new EntityanalyticsconfigCollectionRequest(contextPath.addSegment("entity_entityanalyticsconfig"));
    }

    public EntityanalyticsconfigRequest entity_entityanalyticsconfig(String entityanalyticsconfigid) {
        return new EntityanalyticsconfigRequest(contextPath.addSegment("entity_entityanalyticsconfig").addKeys(new NameValue(entityanalyticsconfigid.toString())));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy