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

microsoft.dynamics.crm.entity.collection.request.WebresourceCollectionRequest Maven / Gradle / Ivy

There is a newer version: 0.2.2
Show newest version
package microsoft.dynamics.crm.entity.collection.request;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.github.davidmoten.odata.client.CollectionPageEntityRequest;
import com.github.davidmoten.odata.client.CollectionPageNonEntityRequest;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.NameValue;
import com.github.davidmoten.odata.client.annotation.Function;
import com.github.davidmoten.odata.client.internal.ParameterMap;
import com.github.davidmoten.odata.client.internal.TypedObject;

import java.util.Map;

import microsoft.dynamics.crm.entity.Webresource;
import microsoft.dynamics.crm.entity.request.SavedqueryvisualizationRequest;
import microsoft.dynamics.crm.entity.request.SolutionRequest;
import microsoft.dynamics.crm.entity.request.ThemeRequest;
import microsoft.dynamics.crm.entity.request.UserqueryvisualizationRequest;
import microsoft.dynamics.crm.entity.request.WebresourceRequest;
import microsoft.dynamics.crm.schema.SchemaInfo;

public class WebresourceCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public WebresourceCollectionRequest(ContextPath contextPath) {
        super(contextPath, Webresource.class, cp -> new WebresourceRequest(cp), SchemaInfo.INSTANCE);
        this.contextPath = contextPath;
    }

    public SolutionCollectionRequest solution_configuration_webresource() {
        return new SolutionCollectionRequest(contextPath.addSegment("solution_configuration_webresource"));
    }

    public SolutionRequest solution_configuration_webresource(String solutionid) {
        return new SolutionRequest(contextPath.addSegment("solution_configuration_webresource").addKeys(new NameValue(solutionid.toString())));
    }

    public UserqueryvisualizationCollectionRequest webresource_userqueryvisualizations() {
        return new UserqueryvisualizationCollectionRequest(contextPath.addSegment("webresource_userqueryvisualizations"));
    }

    public UserqueryvisualizationRequest webresource_userqueryvisualizations(String userqueryvisualizationid) {
        return new UserqueryvisualizationRequest(contextPath.addSegment("webresource_userqueryvisualizations").addKeys(new NameValue(userqueryvisualizationid.toString())));
    }

    public SavedqueryvisualizationCollectionRequest webresource_savedqueryvisualizations() {
        return new SavedqueryvisualizationCollectionRequest(contextPath.addSegment("webresource_savedqueryvisualizations"));
    }

    public SavedqueryvisualizationRequest webresource_savedqueryvisualizations(String savedqueryvisualizationid) {
        return new SavedqueryvisualizationRequest(contextPath.addSegment("webresource_savedqueryvisualizations").addKeys(new NameValue(savedqueryvisualizationid.toString())));
    }

    public ThemeCollectionRequest lk_theme_logoid() {
        return new ThemeCollectionRequest(contextPath.addSegment("lk_theme_logoid"));
    }

    public ThemeRequest lk_theme_logoid(String themeid) {
        return new ThemeRequest(contextPath.addSegment("lk_theme_logoid").addKeys(new NameValue(themeid.toString())));
    }

    @Function(name = "RetrieveUnpublishedMultiple")
    @JsonIgnore
    public CollectionPageNonEntityRequest retrieveUnpublishedMultiple() {
        Map _parameters = ParameterMap.empty();
        return CollectionPageNonEntityRequest.forFunction(this.contextPath.addActionOrFunctionSegment("Microsoft.Dynamics.CRM.RetrieveUnpublishedMultiple"), Webresource.class, _parameters, microsoft.dynamics.crm.schema.SchemaInfo.INSTANCE);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy