microsoft.dynamics.crm.entity.collection.request.TemplateCollectionRequest 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.github.davidmoten.odata.client.CollectionPageEntityRequest;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.NameValue;
import microsoft.dynamics.crm.entity.Template;
import microsoft.dynamics.crm.entity.request.ActivitymimeattachmentRequest;
import microsoft.dynamics.crm.entity.request.AsyncoperationRequest;
import microsoft.dynamics.crm.entity.request.BulkdeletefailureRequest;
import microsoft.dynamics.crm.entity.request.EmailRequest;
import microsoft.dynamics.crm.entity.request.OrganizationRequest;
import microsoft.dynamics.crm.entity.request.ProcesssessionRequest;
import microsoft.dynamics.crm.entity.request.SyncerrorRequest;
import microsoft.dynamics.crm.entity.request.TemplateRequest;
import microsoft.dynamics.crm.schema.SchemaInfo;
public class TemplateCollectionRequest extends CollectionPageEntityRequest{
protected ContextPath contextPath;
public TemplateCollectionRequest(ContextPath contextPath) {
super(contextPath, Template.class, cp -> new TemplateRequest(cp), SchemaInfo.INSTANCE);
this.contextPath = contextPath;
}
public AsyncoperationCollectionRequest template_AsyncOperations() {
return new AsyncoperationCollectionRequest(contextPath.addSegment("Template_AsyncOperations"));
}
public AsyncoperationRequest template_AsyncOperations(String asyncoperationid) {
return new AsyncoperationRequest(contextPath.addSegment("Template_AsyncOperations").addKeys(new NameValue(asyncoperationid.toString())));
}
public BulkdeletefailureCollectionRequest template_BulkDeleteFailures() {
return new BulkdeletefailureCollectionRequest(contextPath.addSegment("Template_BulkDeleteFailures"));
}
public BulkdeletefailureRequest template_BulkDeleteFailures(String bulkdeletefailureid) {
return new BulkdeletefailureRequest(contextPath.addSegment("Template_BulkDeleteFailures").addKeys(new NameValue(bulkdeletefailureid.toString())));
}
public ActivitymimeattachmentCollectionRequest template_activity_mime_attachments() {
return new ActivitymimeattachmentCollectionRequest(contextPath.addSegment("template_activity_mime_attachments"));
}
public ActivitymimeattachmentRequest template_activity_mime_attachments(String activitymimeattachmentid) {
return new ActivitymimeattachmentRequest(contextPath.addSegment("template_activity_mime_attachments").addKeys(new NameValue(activitymimeattachmentid.toString())));
}
public ProcesssessionCollectionRequest template_ProcessSessions() {
return new ProcesssessionCollectionRequest(contextPath.addSegment("Template_ProcessSessions"));
}
public ProcesssessionRequest template_ProcessSessions(String processsessionid) {
return new ProcesssessionRequest(contextPath.addSegment("Template_ProcessSessions").addKeys(new NameValue(processsessionid.toString())));
}
public SyncerrorCollectionRequest template_SyncErrors() {
return new SyncerrorCollectionRequest(contextPath.addSegment("Template_SyncErrors"));
}
public SyncerrorRequest template_SyncErrors(String syncerrorid) {
return new SyncerrorRequest(contextPath.addSegment("Template_SyncErrors").addKeys(new NameValue(syncerrorid.toString())));
}
public OrganizationCollectionRequest template_Organization() {
return new OrganizationCollectionRequest(contextPath.addSegment("Template_Organization"));
}
public OrganizationRequest template_Organization(String organizationid) {
return new OrganizationRequest(contextPath.addSegment("Template_Organization").addKeys(new NameValue(organizationid.toString())));
}
public EmailCollectionRequest email_EmailTemplate() {
return new EmailCollectionRequest(contextPath.addSegment("Email_EmailTemplate"));
}
public EmailRequest email_EmailTemplate(String activityid) {
return new EmailRequest(contextPath.addSegment("Email_EmailTemplate").addKeys(new NameValue(activityid.toString())));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy