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

microsoft.dynamics.crm.entity.collection.request.ImportCollectionRequest 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.Import;
import microsoft.dynamics.crm.entity.request.AsyncoperationRequest;
import microsoft.dynamics.crm.entity.request.BulkdeletefailureRequest;
import microsoft.dynamics.crm.entity.request.ImportRequest;
import microsoft.dynamics.crm.entity.request.ImportfileRequest;
import microsoft.dynamics.crm.schema.SchemaInfo;

public class ImportCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public ImportCollectionRequest(ContextPath contextPath) {
        super(contextPath, Import.class, cp -> new ImportRequest(cp), SchemaInfo.INSTANCE);
        this.contextPath = contextPath;
    }

    public ImportfileCollectionRequest import_ImportFile() {
        return new ImportfileCollectionRequest(contextPath.addSegment("Import_ImportFile"));
    }

    public ImportfileRequest import_ImportFile(String importfileid) {
        return new ImportfileRequest(contextPath.addSegment("Import_ImportFile").addKeys(new NameValue(importfileid.toString())));
    }

    public BulkdeletefailureCollectionRequest import_BulkDeleteFailures() {
        return new BulkdeletefailureCollectionRequest(contextPath.addSegment("Import_BulkDeleteFailures"));
    }

    public BulkdeletefailureRequest import_BulkDeleteFailures(String bulkdeletefailureid) {
        return new BulkdeletefailureRequest(contextPath.addSegment("Import_BulkDeleteFailures").addKeys(new NameValue(bulkdeletefailureid.toString())));
    }

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy