microsoft.dynamics.crm.entity.collection.request.MetricCollectionRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of odata-client-microsoft-dynamics Show documentation
Show all versions of odata-client-microsoft-dynamics Show documentation
Java client as template for Microsoft Dynamics organisation endpoints
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.Metric;
import microsoft.dynamics.crm.entity.request.AsyncoperationRequest;
import microsoft.dynamics.crm.entity.request.GoalRequest;
import microsoft.dynamics.crm.entity.request.MetricRequest;
import microsoft.dynamics.crm.entity.request.ProcesssessionRequest;
import microsoft.dynamics.crm.entity.request.RollupfieldRequest;
import microsoft.dynamics.crm.entity.request.SyncerrorRequest;
import microsoft.dynamics.crm.schema.SchemaInfo;
public class MetricCollectionRequest extends CollectionPageEntityRequest{
protected ContextPath contextPath;
public MetricCollectionRequest(ContextPath contextPath) {
super(contextPath, Metric.class, cp -> new MetricRequest(cp), SchemaInfo.INSTANCE);
this.contextPath = contextPath;
}
public GoalCollectionRequest metric_goal() {
return new GoalCollectionRequest(contextPath.addSegment("metric_goal"));
}
public GoalRequest metric_goal(String goalid) {
return new GoalRequest(contextPath.addSegment("metric_goal").addKeys(new NameValue(goalid.toString())));
}
public RollupfieldCollectionRequest metric_rollupfield() {
return new RollupfieldCollectionRequest(contextPath.addSegment("metric_rollupfield"));
}
public RollupfieldRequest metric_rollupfield(String rollupfieldid) {
return new RollupfieldRequest(contextPath.addSegment("metric_rollupfield").addKeys(new NameValue(rollupfieldid.toString())));
}
public ProcesssessionCollectionRequest metric_ProcessSessions() {
return new ProcesssessionCollectionRequest(contextPath.addSegment("metric_ProcessSessions"));
}
public ProcesssessionRequest metric_ProcessSessions(String processsessionid) {
return new ProcesssessionRequest(contextPath.addSegment("metric_ProcessSessions").addKeys(new NameValue(processsessionid.toString())));
}
public AsyncoperationCollectionRequest metric_AsyncOperations() {
return new AsyncoperationCollectionRequest(contextPath.addSegment("metric_AsyncOperations"));
}
public AsyncoperationRequest metric_AsyncOperations(String asyncoperationid) {
return new AsyncoperationRequest(contextPath.addSegment("metric_AsyncOperations").addKeys(new NameValue(asyncoperationid.toString())));
}
public SyncerrorCollectionRequest metric_SyncErrors() {
return new SyncerrorCollectionRequest(contextPath.addSegment("Metric_SyncErrors"));
}
public SyncerrorRequest metric_SyncErrors(String syncerrorid) {
return new SyncerrorRequest(contextPath.addSegment("Metric_SyncErrors").addKeys(new NameValue(syncerrorid.toString())));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy