microsoft.dynamics.crm.entity.request.SubjectRequest 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.request;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreType;
import com.github.davidmoten.odata.client.CollectionPageNonEntityRequest;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.EntityRequest;
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.Kbarticle;
import microsoft.dynamics.crm.entity.Subject;
import microsoft.dynamics.crm.entity.collection.request.AsyncoperationCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.BulkdeletefailureCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.KbarticleCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.KnowledgearticleCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.Msdyn_knowledgearticletemplateCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.ProcesssessionCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.SubjectCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.SyncerrorCollectionRequest;
import microsoft.dynamics.crm.schema.SchemaInfo;
@JsonIgnoreType
public class SubjectRequest extends EntityRequest {
public SubjectRequest(ContextPath contextPath) {
super(Subject.class, contextPath, SchemaInfo.INSTANCE);
}
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 SystemuserRequest createdby() {
return new SystemuserRequest(contextPath.addSegment("createdby"));
}
public SystemuserRequest modifiedby() {
return new SystemuserRequest(contextPath.addSegment("modifiedby"));
}
public SystemuserRequest modifiedonbehalfby() {
return new SystemuserRequest(contextPath.addSegment("modifiedonbehalfby"));
}
public SubjectRequest parentsubject() {
return new SubjectRequest(contextPath.addSegment("parentsubject"));
}
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 SystemuserRequest createdonbehalfby() {
return new SystemuserRequest(contextPath.addSegment("createdonbehalfby"));
}
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 OrganizationRequest organizationid() {
return new OrganizationRequest(contextPath.addSegment("organizationid"));
}
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())));
}
@Function(name = "RetrieveByTopIncidentSubjectKbArticle")
@JsonIgnore
public CollectionPageNonEntityRequest retrieveByTopIncidentSubjectKbArticle() {
Map _parameters = ParameterMap.empty();
return CollectionPageNonEntityRequest.forFunction(this.contextPath.addActionOrFunctionSegment("Microsoft.Dynamics.CRM.RetrieveByTopIncidentSubjectKbArticle"), Kbarticle.class, _parameters, microsoft.dynamics.crm.schema.SchemaInfo.INSTANCE);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy