microsoft.dynamics.crm.entity.request.QueueRequest 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.ActionRequestNoReturn;
import com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped;
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.Action;
import com.github.davidmoten.odata.client.internal.ParameterMap;
import com.github.davidmoten.odata.client.internal.TypedObject;
import java.util.Map;
import microsoft.dynamics.crm.complex.AddToQueueResponse;
import microsoft.dynamics.crm.entity.Crmbaseentity;
import microsoft.dynamics.crm.entity.Queue;
import microsoft.dynamics.crm.entity.Queueitem;
import microsoft.dynamics.crm.entity.collection.request.ActivitypartyCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.AsyncoperationCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.BulkdeletefailureCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.DuplicaterecordCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.EmailCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.MailboxCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.PostfollowCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.PostregardingCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.PrincipalobjectattributeaccessCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.ProcesssessionCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.QueueitemCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.SyncerrorCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.SystemuserCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.TeamCollectionRequest;
import microsoft.dynamics.crm.schema.SchemaInfo;
@JsonIgnoreType
public class QueueRequest extends EntityRequest {
public QueueRequest(ContextPath contextPath) {
super(Queue.class, contextPath, SchemaInfo.INSTANCE);
}
public MailboxRequest defaultmailbox() {
return new MailboxRequest(contextPath.addSegment("defaultmailbox"));
}
public ProcesssessionCollectionRequest queue_ProcessSessions() {
return new ProcesssessionCollectionRequest(
contextPath.addSegment("Queue_ProcessSessions"));
}
public ProcesssessionRequest queue_ProcessSessions(String processsessionid) {
return new ProcesssessionRequest(contextPath.addSegment("Queue_ProcessSessions").addKeys(new NameValue(processsessionid.toString())));
}
public BulkdeletefailureCollectionRequest queue_BulkDeleteFailures() {
return new BulkdeletefailureCollectionRequest(
contextPath.addSegment("Queue_BulkDeleteFailures"));
}
public BulkdeletefailureRequest queue_BulkDeleteFailures(String bulkdeletefailureid) {
return new BulkdeletefailureRequest(contextPath.addSegment("Queue_BulkDeleteFailures").addKeys(new NameValue(bulkdeletefailureid.toString())));
}
public BusinessunitRequest businessunitid() {
return new BusinessunitRequest(contextPath.addSegment("businessunitid"));
}
public OrganizationRequest organizationid() {
return new OrganizationRequest(contextPath.addSegment("organizationid"));
}
public PostfollowCollectionRequest queue_PostFollows() {
return new PostfollowCollectionRequest(
contextPath.addSegment("queue_PostFollows"));
}
public PostfollowRequest queue_PostFollows(String postfollowid) {
return new PostfollowRequest(contextPath.addSegment("queue_PostFollows").addKeys(new NameValue(postfollowid.toString())));
}
public MailboxCollectionRequest mailbox_regarding_queue() {
return new MailboxCollectionRequest(
contextPath.addSegment("mailbox_regarding_queue"));
}
public MailboxRequest mailbox_regarding_queue(String mailboxid) {
return new MailboxRequest(contextPath.addSegment("mailbox_regarding_queue").addKeys(new NameValue(mailboxid.toString())));
}
public TeamCollectionRequest queue_team() {
return new TeamCollectionRequest(
contextPath.addSegment("queue_team"));
}
public TeamRequest queue_team(String ownerid) {
return new TeamRequest(contextPath.addSegment("queue_team").addKeys(new NameValue(ownerid.toString())));
}
public QueueitemCollectionRequest queue_entries() {
return new QueueitemCollectionRequest(
contextPath.addSegment("queue_entries"));
}
public QueueitemRequest queue_entries(String queueitemid) {
return new QueueitemRequest(contextPath.addSegment("queue_entries").addKeys(new NameValue(queueitemid.toString())));
}
public ActivitypartyCollectionRequest queue_activity_parties() {
return new ActivitypartyCollectionRequest(
contextPath.addSegment("queue_activity_parties"));
}
public ActivitypartyRequest queue_activity_parties(String activitypartyid) {
return new ActivitypartyRequest(contextPath.addSegment("queue_activity_parties").addKeys(new NameValue(activitypartyid.toString())));
}
public AsyncoperationCollectionRequest queue_AsyncOperations() {
return new AsyncoperationCollectionRequest(
contextPath.addSegment("Queue_AsyncOperations"));
}
public AsyncoperationRequest queue_AsyncOperations(String asyncoperationid) {
return new AsyncoperationRequest(contextPath.addSegment("Queue_AsyncOperations").addKeys(new NameValue(asyncoperationid.toString())));
}
public BusinessunitRequest owningbusinessunit() {
return new BusinessunitRequest(contextPath.addSegment("owningbusinessunit"));
}
public PrincipalRequest ownerid() {
return new PrincipalRequest(contextPath.addSegment("ownerid"));
}
public SystemuserRequest primaryuserid() {
return new SystemuserRequest(contextPath.addSegment("primaryuserid"));
}
public EmailCollectionRequest queue_Email_EmailSender() {
return new EmailCollectionRequest(
contextPath.addSegment("Queue_Email_EmailSender"));
}
public EmailRequest queue_Email_EmailSender(String activityid) {
return new EmailRequest(contextPath.addSegment("Queue_Email_EmailSender").addKeys(new NameValue(activityid.toString())));
}
public SystemuserRequest createdby() {
return new SystemuserRequest(contextPath.addSegment("createdby"));
}
public SystemuserRequest modifiedonbehalfby() {
return new SystemuserRequest(contextPath.addSegment("modifiedonbehalfby"));
}
public SystemuserCollectionRequest queuemembership_association() {
return new SystemuserCollectionRequest(
contextPath.addSegment("queuemembership_association"));
}
public SystemuserRequest queuemembership_association(String ownerid) {
return new SystemuserRequest(contextPath.addSegment("queuemembership_association").addKeys(new NameValue(ownerid.toString())));
}
public TransactioncurrencyRequest transactioncurrencyid() {
return new TransactioncurrencyRequest(contextPath.addSegment("transactioncurrencyid"));
}
public SyncerrorCollectionRequest queue_SyncErrors() {
return new SyncerrorCollectionRequest(
contextPath.addSegment("Queue_SyncErrors"));
}
public SyncerrorRequest queue_SyncErrors(String syncerrorid) {
return new SyncerrorRequest(contextPath.addSegment("Queue_SyncErrors").addKeys(new NameValue(syncerrorid.toString())));
}
public SystemuserCollectionRequest queue_system_user() {
return new SystemuserCollectionRequest(
contextPath.addSegment("queue_system_user"));
}
public SystemuserRequest queue_system_user(String ownerid) {
return new SystemuserRequest(contextPath.addSegment("queue_system_user").addKeys(new NameValue(ownerid.toString())));
}
public PostregardingCollectionRequest queue_PostRegardings() {
return new PostregardingCollectionRequest(
contextPath.addSegment("queue_PostRegardings"));
}
public PostregardingRequest queue_PostRegardings(String postregardingid) {
return new PostregardingRequest(contextPath.addSegment("queue_PostRegardings").addKeys(new NameValue(postregardingid.toString())));
}
public PrincipalobjectattributeaccessCollectionRequest queue_principalobjectattributeaccess() {
return new PrincipalobjectattributeaccessCollectionRequest(
contextPath.addSegment("queue_principalobjectattributeaccess"));
}
public PrincipalobjectattributeaccessRequest queue_principalobjectattributeaccess(String principalobjectattributeaccessid) {
return new PrincipalobjectattributeaccessRequest(contextPath.addSegment("queue_principalobjectattributeaccess").addKeys(new NameValue(principalobjectattributeaccessid.toString())));
}
public SystemuserRequest createdonbehalfby() {
return new SystemuserRequest(contextPath.addSegment("createdonbehalfby"));
}
public SystemuserRequest modifiedby() {
return new SystemuserRequest(contextPath.addSegment("modifiedby"));
}
public DuplicaterecordCollectionRequest queue_DuplicateMatchingRecord() {
return new DuplicaterecordCollectionRequest(
contextPath.addSegment("Queue_DuplicateMatchingRecord"));
}
public DuplicaterecordRequest queue_DuplicateMatchingRecord(String duplicateid) {
return new DuplicaterecordRequest(contextPath.addSegment("Queue_DuplicateMatchingRecord").addKeys(new NameValue(duplicateid.toString())));
}
public DuplicaterecordCollectionRequest queue_DuplicateBaseRecord() {
return new DuplicaterecordCollectionRequest(
contextPath.addSegment("Queue_DuplicateBaseRecord"));
}
public DuplicaterecordRequest queue_DuplicateBaseRecord(String duplicateid) {
return new DuplicaterecordRequest(contextPath.addSegment("Queue_DuplicateBaseRecord").addKeys(new NameValue(duplicateid.toString())));
}
@Action(name = "AddPrincipalToQueue")
@JsonIgnore
public ActionRequestNoReturn addPrincipalToQueue(Crmbaseentity principal) {
Preconditions.checkNotNull(principal, "principal cannot be null");
Map _parameters = ParameterMap
.put("Principal", "Microsoft.Dynamics.CRM.crmbaseentity", principal)
.build();
return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("Microsoft.Dynamics.CRM.AddPrincipalToQueue"), _parameters);
}
@Action(name = "AddToQueue")
@JsonIgnore
public ActionRequestReturningNonCollectionUnwrapped addToQueue(Crmbaseentity target, Queue sourceQueue, Queueitem queueItemProperties) {
Preconditions.checkNotNull(target, "target cannot be null");
Map _parameters = ParameterMap
.put("Target", "Microsoft.Dynamics.CRM.crmbaseentity", target)
.put("SourceQueue", "Microsoft.Dynamics.CRM.queue", sourceQueue)
.put("QueueItemProperties", "Microsoft.Dynamics.CRM.queueitem", queueItemProperties)
.build();
return new ActionRequestReturningNonCollectionUnwrapped(this.contextPath.addActionOrFunctionSegment("Microsoft.Dynamics.CRM.AddToQueue"), AddToQueueResponse.class, _parameters, microsoft.dynamics.crm.schema.SchemaInfo.INSTANCE);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy