All Downloads are FREE. Search and download functionalities are using the official Maven repository.

microsoft.dynamics.crm.entity.request.QueueitemRequest Maven / Gradle / Ivy

There is a newer version: 0.2.2
Show newest version
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.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.entity.Queueitem;
import microsoft.dynamics.crm.entity.Systemuser;
import microsoft.dynamics.crm.entity.collection.request.AsyncoperationCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.BulkdeletefailureCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.PrincipalobjectattributeaccessCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.ProcesssessionCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.SyncerrorCollectionRequest;
import microsoft.dynamics.crm.schema.SchemaInfo;

@JsonIgnoreType
public class QueueitemRequest extends EntityRequest {

    public QueueitemRequest(ContextPath contextPath) {
        super(Queueitem.class, contextPath, SchemaInfo.INSTANCE);
    }

    public KnowledgearticleRequest objectid_knowledgearticle() {
        return new KnowledgearticleRequest(contextPath.addSegment("objectid_knowledgearticle"));
    }

    public ProcesssessionCollectionRequest queueItem_ProcessSessions() {
        return new ProcesssessionCollectionRequest(
                        contextPath.addSegment("QueueItem_ProcessSessions"));
    }

    public ProcesssessionRequest queueItem_ProcessSessions(String processsessionid) {
        return new ProcesssessionRequest(contextPath.addSegment("QueueItem_ProcessSessions").addKeys(new NameValue(processsessionid.toString())));
    }

    public SystemuserRequest createdby() {
        return new SystemuserRequest(contextPath.addSegment("createdby"));
    }

    public AppointmentRequest objectid_appointment() {
        return new AppointmentRequest(contextPath.addSegment("objectid_appointment"));
    }

    public SystemuserRequest modifiedby() {
        return new SystemuserRequest(contextPath.addSegment("modifiedby"));
    }

    public SystemuserRequest workerid_systemuser() {
        return new SystemuserRequest(contextPath.addSegment("workerid_systemuser"));
    }

    public ActivitypointerRequest objectid_activitypointer() {
        return new ActivitypointerRequest(contextPath.addSegment("objectid_activitypointer"));
    }

    public QueueRequest queueid() {
        return new QueueRequest(contextPath.addSegment("queueid"));
    }

    public AsyncoperationCollectionRequest queueItem_AsyncOperations() {
        return new AsyncoperationCollectionRequest(
                        contextPath.addSegment("QueueItem_AsyncOperations"));
    }

    public AsyncoperationRequest queueItem_AsyncOperations(String asyncoperationid) {
        return new AsyncoperationRequest(contextPath.addSegment("QueueItem_AsyncOperations").addKeys(new NameValue(asyncoperationid.toString())));
    }

    public TeamRequest workerid_team() {
        return new TeamRequest(contextPath.addSegment("workerid_team"));
    }

    public FaxRequest objectid_fax() {
        return new FaxRequest(contextPath.addSegment("objectid_fax"));
    }

    public RecurringappointmentmasterRequest objectid_recurringappointmentmaster() {
        return new RecurringappointmentmasterRequest(contextPath.addSegment("objectid_recurringappointmentmaster"));
    }

    public SyncerrorCollectionRequest queueItem_SyncErrors() {
        return new SyncerrorCollectionRequest(
                        contextPath.addSegment("QueueItem_SyncErrors"));
    }

    public SyncerrorRequest queueItem_SyncErrors(String syncerrorid) {
        return new SyncerrorRequest(contextPath.addSegment("QueueItem_SyncErrors").addKeys(new NameValue(syncerrorid.toString())));
    }

    public OrganizationRequest organizationid() {
        return new OrganizationRequest(contextPath.addSegment("organizationid"));
    }

    public SystemuserRequest modifiedonbehalfby() {
        return new SystemuserRequest(contextPath.addSegment("modifiedonbehalfby"));
    }

    public LetterRequest objectid_letter() {
        return new LetterRequest(contextPath.addSegment("objectid_letter"));
    }

    public SocialactivityRequest objectid_socialactivity() {
        return new SocialactivityRequest(contextPath.addSegment("objectid_socialactivity"));
    }

    public PhonecallRequest objectid_phonecall() {
        return new PhonecallRequest(contextPath.addSegment("objectid_phonecall"));
    }

    public TransactioncurrencyRequest transactioncurrencyid() {
        return new TransactioncurrencyRequest(contextPath.addSegment("transactioncurrencyid"));
    }

    public TaskRequest objectid_task() {
        return new TaskRequest(contextPath.addSegment("objectid_task"));
    }

    public PrincipalobjectattributeaccessCollectionRequest queueitem_principalobjectattributeaccess() {
        return new PrincipalobjectattributeaccessCollectionRequest(
                        contextPath.addSegment("queueitem_principalobjectattributeaccess"));
    }

    public PrincipalobjectattributeaccessRequest queueitem_principalobjectattributeaccess(String principalobjectattributeaccessid) {
        return new PrincipalobjectattributeaccessRequest(contextPath.addSegment("queueitem_principalobjectattributeaccess").addKeys(new NameValue(principalobjectattributeaccessid.toString())));
    }

    public BulkdeletefailureCollectionRequest queueItem_BulkDeleteFailures() {
        return new BulkdeletefailureCollectionRequest(
                        contextPath.addSegment("QueueItem_BulkDeleteFailures"));
    }

    public BulkdeletefailureRequest queueItem_BulkDeleteFailures(String bulkdeletefailureid) {
        return new BulkdeletefailureRequest(contextPath.addSegment("QueueItem_BulkDeleteFailures").addKeys(new NameValue(bulkdeletefailureid.toString())));
    }

    public EmailRequest objectid_email() {
        return new EmailRequest(contextPath.addSegment("objectid_email"));
    }

    public SystemuserRequest createdonbehalfby() {
        return new SystemuserRequest(contextPath.addSegment("createdonbehalfby"));
    }

    public Msdyn_knowledgearticletemplateRequest objectid_msdyn_knowledgearticletemplate() {
        return new Msdyn_knowledgearticletemplateRequest(contextPath.addSegment("objectid_msdyn_knowledgearticletemplate"));
    }

    @Action(name = "PickFromQueue")
    @JsonIgnore
    public ActionRequestNoReturn pickFromQueue(Systemuser systemUser, Boolean removeQueueItem) {
        Preconditions.checkNotNull(systemUser, "systemUser cannot be null");
        Preconditions.checkNotNull(removeQueueItem, "removeQueueItem cannot be null");
        Map _parameters = ParameterMap
            .put("SystemUser", "Microsoft.Dynamics.CRM.systemuser", systemUser)
            .put("RemoveQueueItem", "Edm.Boolean", removeQueueItem)
            .build();
        return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("Microsoft.Dynamics.CRM.PickFromQueue"), _parameters);
    }

    @Action(name = "ReleaseToQueue")
    @JsonIgnore
    public ActionRequestNoReturn releaseToQueue() {
        Map _parameters = ParameterMap.empty();
        return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("Microsoft.Dynamics.CRM.ReleaseToQueue"), _parameters);
    }

    @Action(name = "RemoveFromQueue")
    @JsonIgnore
    public ActionRequestNoReturn removeFromQueue() {
        Map _parameters = ParameterMap.empty();
        return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("Microsoft.Dynamics.CRM.RemoveFromQueue"), _parameters);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy