microsoft.dynamics.crm.entity.collection.request.KbarticleCollectionRequest 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.collection.request;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.github.davidmoten.guavamini.Preconditions;
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.Checks;
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.request.AnnotationRequest;
import microsoft.dynamics.crm.entity.request.AsyncoperationRequest;
import microsoft.dynamics.crm.entity.request.BulkdeletefailureRequest;
import microsoft.dynamics.crm.entity.request.DuplicaterecordRequest;
import microsoft.dynamics.crm.entity.request.KbarticleRequest;
import microsoft.dynamics.crm.entity.request.KbarticlecommentRequest;
import microsoft.dynamics.crm.entity.request.PrincipalobjectattributeaccessRequest;
import microsoft.dynamics.crm.entity.request.ProcesssessionRequest;
import microsoft.dynamics.crm.entity.request.SharepointdocumentlocationRequest;
import microsoft.dynamics.crm.entity.request.SyncerrorRequest;
import microsoft.dynamics.crm.schema.SchemaInfo;
public class KbarticleCollectionRequest extends CollectionPageEntityRequest{
protected ContextPath contextPath;
public KbarticleCollectionRequest(ContextPath contextPath) {
super(contextPath, Kbarticle.class, cp -> new KbarticleRequest(cp), SchemaInfo.INSTANCE);
this.contextPath = contextPath;
}
public AnnotationCollectionRequest kbArticle_Annotation() {
return new AnnotationCollectionRequest(contextPath.addSegment("KbArticle_Annotation"));
}
public AnnotationRequest kbArticle_Annotation(String annotationid) {
return new AnnotationRequest(contextPath.addSegment("KbArticle_Annotation").addKeys(new NameValue(annotationid.toString())));
}
public BulkdeletefailureCollectionRequest kbArticle_BulkDeleteFailures() {
return new BulkdeletefailureCollectionRequest(contextPath.addSegment("KbArticle_BulkDeleteFailures"));
}
public BulkdeletefailureRequest kbArticle_BulkDeleteFailures(String bulkdeletefailureid) {
return new BulkdeletefailureRequest(contextPath.addSegment("KbArticle_BulkDeleteFailures").addKeys(new NameValue(bulkdeletefailureid.toString())));
}
public AsyncoperationCollectionRequest kbArticle_AsyncOperations() {
return new AsyncoperationCollectionRequest(contextPath.addSegment("KbArticle_AsyncOperations"));
}
public AsyncoperationRequest kbArticle_AsyncOperations(String asyncoperationid) {
return new AsyncoperationRequest(contextPath.addSegment("KbArticle_AsyncOperations").addKeys(new NameValue(asyncoperationid.toString())));
}
public ProcesssessionCollectionRequest kbArticle_ProcessSessions() {
return new ProcesssessionCollectionRequest(contextPath.addSegment("KbArticle_ProcessSessions"));
}
public ProcesssessionRequest kbArticle_ProcessSessions(String processsessionid) {
return new ProcesssessionRequest(contextPath.addSegment("KbArticle_ProcessSessions").addKeys(new NameValue(processsessionid.toString())));
}
public DuplicaterecordCollectionRequest kbArticle_DuplicateMatchingRecord() {
return new DuplicaterecordCollectionRequest(contextPath.addSegment("KbArticle_DuplicateMatchingRecord"));
}
public DuplicaterecordRequest kbArticle_DuplicateMatchingRecord(String duplicateid) {
return new DuplicaterecordRequest(contextPath.addSegment("KbArticle_DuplicateMatchingRecord").addKeys(new NameValue(duplicateid.toString())));
}
public PrincipalobjectattributeaccessCollectionRequest kbarticle_principalobjectattributeaccess() {
return new PrincipalobjectattributeaccessCollectionRequest(contextPath.addSegment("kbarticle_principalobjectattributeaccess"));
}
public PrincipalobjectattributeaccessRequest kbarticle_principalobjectattributeaccess(String principalobjectattributeaccessid) {
return new PrincipalobjectattributeaccessRequest(contextPath.addSegment("kbarticle_principalobjectattributeaccess").addKeys(new NameValue(principalobjectattributeaccessid.toString())));
}
public DuplicaterecordCollectionRequest kbArticle_DuplicateBaseRecord() {
return new DuplicaterecordCollectionRequest(contextPath.addSegment("KbArticle_DuplicateBaseRecord"));
}
public DuplicaterecordRequest kbArticle_DuplicateBaseRecord(String duplicateid) {
return new DuplicaterecordRequest(contextPath.addSegment("KbArticle_DuplicateBaseRecord").addKeys(new NameValue(duplicateid.toString())));
}
public SharepointdocumentlocationCollectionRequest kbArticle_SharepointDocumentLocation() {
return new SharepointdocumentlocationCollectionRequest(contextPath.addSegment("KbArticle_SharepointDocumentLocation"));
}
public SharepointdocumentlocationRequest kbArticle_SharepointDocumentLocation(String sharepointdocumentlocationid) {
return new SharepointdocumentlocationRequest(contextPath.addSegment("KbArticle_SharepointDocumentLocation").addKeys(new NameValue(sharepointdocumentlocationid.toString())));
}
public KbarticlecommentCollectionRequest kbarticle_comments() {
return new KbarticlecommentCollectionRequest(contextPath.addSegment("kbarticle_comments"));
}
public KbarticlecommentRequest kbarticle_comments(String kbarticlecommentid) {
return new KbarticlecommentRequest(contextPath.addSegment("kbarticle_comments").addKeys(new NameValue(kbarticlecommentid.toString())));
}
public SyncerrorCollectionRequest kbArticle_SyncErrors() {
return new SyncerrorCollectionRequest(contextPath.addSegment("KbArticle_SyncErrors"));
}
public SyncerrorRequest kbArticle_SyncErrors(String syncerrorid) {
return new SyncerrorRequest(contextPath.addSegment("KbArticle_SyncErrors").addKeys(new NameValue(syncerrorid.toString())));
}
@Function(name = "SearchByBodyKbArticle")
@JsonIgnore
public CollectionPageNonEntityRequest searchByBodyKbArticle(String searchText, Subject subject, Boolean useInflection) {
Preconditions.checkNotNull(searchText, "searchText cannot be null");
Preconditions.checkNotNull(subject, "subject cannot be null");
Preconditions.checkNotNull(useInflection, "useInflection cannot be null");
Map _parameters = ParameterMap
.put("SearchText", "Edm.String", Checks.checkIsAscii(searchText))
.put("Subject", "Microsoft.Dynamics.CRM.subject", subject)
.put("UseInflection", "Edm.Boolean", useInflection)
.build();
return CollectionPageNonEntityRequest.forFunction(this.contextPath.addActionOrFunctionSegment("Microsoft.Dynamics.CRM.SearchByBodyKbArticle"), Kbarticle.class, _parameters, microsoft.dynamics.crm.schema.SchemaInfo.INSTANCE);
}
@Function(name = "SearchByKeywordsKbArticle")
@JsonIgnore
public CollectionPageNonEntityRequest searchByKeywordsKbArticle(String searchText, Subject subject, Boolean useInflection) {
Preconditions.checkNotNull(searchText, "searchText cannot be null");
Preconditions.checkNotNull(subject, "subject cannot be null");
Preconditions.checkNotNull(useInflection, "useInflection cannot be null");
Map _parameters = ParameterMap
.put("SearchText", "Edm.String", Checks.checkIsAscii(searchText))
.put("Subject", "Microsoft.Dynamics.CRM.subject", subject)
.put("UseInflection", "Edm.Boolean", useInflection)
.build();
return CollectionPageNonEntityRequest.forFunction(this.contextPath.addActionOrFunctionSegment("Microsoft.Dynamics.CRM.SearchByKeywordsKbArticle"), Kbarticle.class, _parameters, microsoft.dynamics.crm.schema.SchemaInfo.INSTANCE);
}
@Function(name = "SearchByTitleKbArticle")
@JsonIgnore
public CollectionPageNonEntityRequest searchByTitleKbArticle(String searchText, Subject subject, Boolean useInflection) {
Preconditions.checkNotNull(searchText, "searchText cannot be null");
Preconditions.checkNotNull(subject, "subject cannot be null");
Preconditions.checkNotNull(useInflection, "useInflection cannot be null");
Map _parameters = ParameterMap
.put("SearchText", "Edm.String", Checks.checkIsAscii(searchText))
.put("Subject", "Microsoft.Dynamics.CRM.subject", subject)
.put("UseInflection", "Edm.Boolean", useInflection)
.build();
return CollectionPageNonEntityRequest.forFunction(this.contextPath.addActionOrFunctionSegment("Microsoft.Dynamics.CRM.SearchByTitleKbArticle"), Kbarticle.class, _parameters, microsoft.dynamics.crm.schema.SchemaInfo.INSTANCE);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy