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

microsoft.dynamics.crm.entity.collection.request.ReportCollectionRequest 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.Report;
import microsoft.dynamics.crm.entity.request.AsyncoperationRequest;
import microsoft.dynamics.crm.entity.request.ProcesssessionRequest;
import microsoft.dynamics.crm.entity.request.ReportRequest;
import microsoft.dynamics.crm.entity.request.ReportcategoryRequest;
import microsoft.dynamics.crm.entity.request.SyncerrorRequest;
import microsoft.dynamics.crm.schema.SchemaInfo;

public class ReportCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public ReportCollectionRequest(ContextPath contextPath) {
        super(contextPath, Report.class, cp -> new ReportRequest(cp), SchemaInfo.INSTANCE);
        this.contextPath = contextPath;
    }

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

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

    public ReportcategoryCollectionRequest report_reportcategories() {
        return new ReportcategoryCollectionRequest(contextPath.addSegment("report_reportcategories"));
    }

    public ReportcategoryRequest report_reportcategories(String reportcategoryid) {
        return new ReportcategoryRequest(contextPath.addSegment("report_reportcategories").addKeys(new NameValue(reportcategoryid.toString())));
    }

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

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

    public SyncerrorCollectionRequest report_SyncErrors() {
        return new SyncerrorCollectionRequest(contextPath.addSegment("Report_SyncErrors"));
    }

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

    public ReportCollectionRequest report_parent_report() {
        return new ReportCollectionRequest(contextPath.addSegment("report_parent_report"));
    }

    public ReportRequest report_parent_report(String reportid) {
        return new ReportRequest(contextPath.addSegment("report_parent_report").addKeys(new NameValue(reportid.toString())));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy