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

microsoft.dynamics.crm.entity.collection.request.SubjectCollectionRequest 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.Subject;
import microsoft.dynamics.crm.entity.request.AsyncoperationRequest;
import microsoft.dynamics.crm.entity.request.BulkdeletefailureRequest;
import microsoft.dynamics.crm.entity.request.KbarticleRequest;
import microsoft.dynamics.crm.entity.request.KnowledgearticleRequest;
import microsoft.dynamics.crm.entity.request.Msdyn_knowledgearticletemplateRequest;
import microsoft.dynamics.crm.entity.request.ProcesssessionRequest;
import microsoft.dynamics.crm.entity.request.SubjectRequest;
import microsoft.dynamics.crm.entity.request.SyncerrorRequest;
import microsoft.dynamics.crm.schema.SchemaInfo;

public class SubjectCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public SubjectCollectionRequest(ContextPath contextPath) {
        super(contextPath, Subject.class, cp -> new SubjectRequest(cp), SchemaInfo.INSTANCE);
        this.contextPath = contextPath;
    }

    public ProcesssessionCollectionRequest subject_ProcessSessions() {
        return new ProcesssessionCollectionRequest(contextPath.addSegment("Subject_ProcessSessions"));
    }

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

    public SubjectCollectionRequest subject_parent_subject() {
        return new SubjectCollectionRequest(contextPath.addSegment("subject_parent_subject"));
    }

    public SubjectRequest subject_parent_subject(String subjectid) {
        return new SubjectRequest(contextPath.addSegment("subject_parent_subject").addKeys(new NameValue(subjectid.toString())));
    }

    public AsyncoperationCollectionRequest subject_AsyncOperations() {
        return new AsyncoperationCollectionRequest(contextPath.addSegment("Subject_AsyncOperations"));
    }

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

    public SyncerrorCollectionRequest subject_SyncErrors() {
        return new SyncerrorCollectionRequest(contextPath.addSegment("Subject_SyncErrors"));
    }

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

    public KbarticleCollectionRequest subject_kb_articles() {
        return new KbarticleCollectionRequest(contextPath.addSegment("subject_kb_articles"));
    }

    public KbarticleRequest subject_kb_articles(String kbarticleid) {
        return new KbarticleRequest(contextPath.addSegment("subject_kb_articles").addKeys(new NameValue(kbarticleid.toString())));
    }

    public KnowledgearticleCollectionRequest subject_knowledgearticles() {
        return new KnowledgearticleCollectionRequest(contextPath.addSegment("subject_knowledgearticles"));
    }

    public KnowledgearticleRequest subject_knowledgearticles(String knowledgearticleid) {
        return new KnowledgearticleRequest(contextPath.addSegment("subject_knowledgearticles").addKeys(new NameValue(knowledgearticleid.toString())));
    }

    public BulkdeletefailureCollectionRequest subject_BulkDeleteFailures() {
        return new BulkdeletefailureCollectionRequest(contextPath.addSegment("Subject_BulkDeleteFailures"));
    }

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

    public Msdyn_knowledgearticletemplateCollectionRequest msdyn_subject_knowledgearticletemplate_subjectid() {
        return new Msdyn_knowledgearticletemplateCollectionRequest(contextPath.addSegment("msdyn_subject_knowledgearticletemplate_subjectid"));
    }

    public Msdyn_knowledgearticletemplateRequest msdyn_subject_knowledgearticletemplate_subjectid(String msdyn_knowledgearticletemplateid) {
        return new Msdyn_knowledgearticletemplateRequest(contextPath.addSegment("msdyn_subject_knowledgearticletemplate_subjectid").addKeys(new NameValue(msdyn_knowledgearticletemplateid.toString())));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy