microsoft.dynamics.crm.entity.request.CalendarRequest 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.guavamini.Preconditions;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.EntityRequest;
import com.github.davidmoten.odata.client.FunctionRequestReturningNonCollectionUnwrapped;
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.time.OffsetDateTime;
import java.util.Map;
import microsoft.dynamics.crm.complex.ExpandCalendarResponse;
import microsoft.dynamics.crm.entity.Calendar;
import microsoft.dynamics.crm.entity.collection.request.AnnotationCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.AsyncoperationCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.BulkdeletefailureCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.BusinessunitCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.CalendarCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.CalendarruleCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.OrganizationCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.SlaCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.SlaitemCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.SystemuserCollectionRequest;
import microsoft.dynamics.crm.schema.SchemaInfo;
@JsonIgnoreType
public class CalendarRequest extends EntityRequest {
public CalendarRequest(ContextPath contextPath) {
super(Calendar.class, contextPath, SchemaInfo.INSTANCE);
}
public CalendarruleCollectionRequest calendar_calendar_rules() {
return new CalendarruleCollectionRequest(
contextPath.addSegment("calendar_calendar_rules"));
}
public CalendarruleRequest calendar_calendar_rules(String calendarruleid) {
return new CalendarruleRequest(contextPath.addSegment("calendar_calendar_rules").addKeys(new NameValue(calendarruleid.toString())));
}
public SystemuserRequest createdonbehalfby() {
return new SystemuserRequest(contextPath.addSegment("createdonbehalfby"));
}
public BulkdeletefailureCollectionRequest calendar_BulkDeleteFailures() {
return new BulkdeletefailureCollectionRequest(
contextPath.addSegment("Calendar_BulkDeleteFailures"));
}
public BulkdeletefailureRequest calendar_BulkDeleteFailures(String bulkdeletefailureid) {
return new BulkdeletefailureRequest(contextPath.addSegment("Calendar_BulkDeleteFailures").addKeys(new NameValue(bulkdeletefailureid.toString())));
}
public SlaCollectionRequest slabase_businesshoursid() {
return new SlaCollectionRequest(
contextPath.addSegment("slabase_businesshoursid"));
}
public SlaRequest slabase_businesshoursid(String slaid) {
return new SlaRequest(contextPath.addSegment("slabase_businesshoursid").addKeys(new NameValue(slaid.toString())));
}
public SystemuserRequest modifiedby() {
return new SystemuserRequest(contextPath.addSegment("modifiedby"));
}
public OrganizationCollectionRequest calendar_organization() {
return new OrganizationCollectionRequest(
contextPath.addSegment("calendar_organization"));
}
public OrganizationRequest calendar_organization(String organizationid) {
return new OrganizationRequest(contextPath.addSegment("calendar_organization").addKeys(new NameValue(organizationid.toString())));
}
public BusinessunitRequest businessunitid() {
return new BusinessunitRequest(contextPath.addSegment("businessunitid"));
}
public BusinessunitCollectionRequest businessUnit_Calendar() {
return new BusinessunitCollectionRequest(
contextPath.addSegment("BusinessUnit_Calendar"));
}
public BusinessunitRequest businessUnit_Calendar(String businessunitid) {
return new BusinessunitRequest(contextPath.addSegment("BusinessUnit_Calendar").addKeys(new NameValue(businessunitid.toString())));
}
public AnnotationCollectionRequest calendar_Annotation() {
return new AnnotationCollectionRequest(
contextPath.addSegment("Calendar_Annotation"));
}
public AnnotationRequest calendar_Annotation(String annotationid) {
return new AnnotationRequest(contextPath.addSegment("Calendar_Annotation").addKeys(new NameValue(annotationid.toString())));
}
public CalendarRequest holidayschedulecalendarid() {
return new CalendarRequest(contextPath.addSegment("holidayschedulecalendarid"));
}
public CalendarCollectionRequest calendar_customercalendar_holidaycalendar() {
return new CalendarCollectionRequest(
contextPath.addSegment("calendar_customercalendar_holidaycalendar"));
}
public CalendarRequest calendar_customercalendar_holidaycalendar(String calendarid) {
return new CalendarRequest(contextPath.addSegment("calendar_customercalendar_holidaycalendar").addKeys(new NameValue(calendarid.toString())));
}
public SystemuserRequest createdby() {
return new SystemuserRequest(contextPath.addSegment("createdby"));
}
public SystemuserCollectionRequest calendar_system_users() {
return new SystemuserCollectionRequest(
contextPath.addSegment("calendar_system_users"));
}
public SystemuserRequest calendar_system_users(String ownerid) {
return new SystemuserRequest(contextPath.addSegment("calendar_system_users").addKeys(new NameValue(ownerid.toString())));
}
public AsyncoperationCollectionRequest calendar_AsyncOperations() {
return new AsyncoperationCollectionRequest(
contextPath.addSegment("Calendar_AsyncOperations"));
}
public AsyncoperationRequest calendar_AsyncOperations(String asyncoperationid) {
return new AsyncoperationRequest(contextPath.addSegment("Calendar_AsyncOperations").addKeys(new NameValue(asyncoperationid.toString())));
}
public SystemuserRequest modifiedonbehalfby() {
return new SystemuserRequest(contextPath.addSegment("modifiedonbehalfby"));
}
public CalendarruleCollectionRequest inner_calendar_calendar_rules() {
return new CalendarruleCollectionRequest(
contextPath.addSegment("inner_calendar_calendar_rules"));
}
public CalendarruleRequest inner_calendar_calendar_rules(String calendarruleid) {
return new CalendarruleRequest(contextPath.addSegment("inner_calendar_calendar_rules").addKeys(new NameValue(calendarruleid.toString())));
}
public OrganizationRequest organizationid() {
return new OrganizationRequest(contextPath.addSegment("organizationid"));
}
public SlaitemCollectionRequest calendar_slaitem() {
return new SlaitemCollectionRequest(
contextPath.addSegment("calendar_slaitem"));
}
public SlaitemRequest calendar_slaitem(String slaitemid) {
return new SlaitemRequest(contextPath.addSegment("calendar_slaitem").addKeys(new NameValue(slaitemid.toString())));
}
@Function(name = "ExpandCalendar")
@JsonIgnore
public FunctionRequestReturningNonCollectionUnwrapped expandCalendar(OffsetDateTime start, OffsetDateTime end) {
Preconditions.checkNotNull(start, "start cannot be null");
Preconditions.checkNotNull(end, "end cannot be null");
Map _parameters = ParameterMap
.put("Start", "Edm.DateTimeOffset", start)
.put("End", "Edm.DateTimeOffset", end)
.build();
return new FunctionRequestReturningNonCollectionUnwrapped(this.contextPath.addActionOrFunctionSegment("Microsoft.Dynamics.CRM.ExpandCalendar"), ExpandCalendarResponse.class, _parameters, microsoft.dynamics.crm.schema.SchemaInfo.INSTANCE);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy