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

microsoft.dynamics.crm.entity.collection.request.TerritoryCollectionRequest Maven / Gradle / Ivy

There is a newer version: 0.2.2
Show newest version
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.Territory;
import microsoft.dynamics.crm.entity.request.AsyncoperationRequest;
import microsoft.dynamics.crm.entity.request.BulkdeletefailureRequest;
import microsoft.dynamics.crm.entity.request.ConnectionRequest;
import microsoft.dynamics.crm.entity.request.MailboxtrackingfolderRequest;
import microsoft.dynamics.crm.entity.request.PrincipalobjectattributeaccessRequest;
import microsoft.dynamics.crm.entity.request.ProcesssessionRequest;
import microsoft.dynamics.crm.entity.request.SyncerrorRequest;
import microsoft.dynamics.crm.entity.request.SystemuserRequest;
import microsoft.dynamics.crm.entity.request.TerritoryRequest;
import microsoft.dynamics.crm.schema.SchemaInfo;

public class TerritoryCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public TerritoryCollectionRequest(ContextPath contextPath) {
        super(contextPath, Territory.class, cp -> new TerritoryRequest(cp), SchemaInfo.INSTANCE);
        this.contextPath = contextPath;
    }

    public SyncerrorCollectionRequest territory_SyncErrors() {
        return new SyncerrorCollectionRequest(contextPath.addSegment("Territory_SyncErrors"));
    }

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

    public AsyncoperationCollectionRequest territory_AsyncOperations() {
        return new AsyncoperationCollectionRequest(contextPath.addSegment("Territory_AsyncOperations"));
    }

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

    public MailboxtrackingfolderCollectionRequest territory_MailboxTrackingFolders() {
        return new MailboxtrackingfolderCollectionRequest(contextPath.addSegment("territory_MailboxTrackingFolders"));
    }

    public MailboxtrackingfolderRequest territory_MailboxTrackingFolders(String mailboxtrackingfolderid) {
        return new MailboxtrackingfolderRequest(contextPath.addSegment("territory_MailboxTrackingFolders").addKeys(new NameValue(mailboxtrackingfolderid.toString())));
    }

    public ProcesssessionCollectionRequest territory_ProcessSessions() {
        return new ProcesssessionCollectionRequest(contextPath.addSegment("Territory_ProcessSessions"));
    }

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

    public BulkdeletefailureCollectionRequest territory_BulkDeleteFailures() {
        return new BulkdeletefailureCollectionRequest(contextPath.addSegment("Territory_BulkDeleteFailures"));
    }

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

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

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

    public ConnectionCollectionRequest territory_connections1() {
        return new ConnectionCollectionRequest(contextPath.addSegment("territory_connections1"));
    }

    public ConnectionRequest territory_connections1(String connectionid) {
        return new ConnectionRequest(contextPath.addSegment("territory_connections1").addKeys(new NameValue(connectionid.toString())));
    }

    public ConnectionCollectionRequest territory_connections2() {
        return new ConnectionCollectionRequest(contextPath.addSegment("territory_connections2"));
    }

    public ConnectionRequest territory_connections2(String connectionid) {
        return new ConnectionRequest(contextPath.addSegment("territory_connections2").addKeys(new NameValue(connectionid.toString())));
    }

    public SystemuserCollectionRequest territory_system_users() {
        return new SystemuserCollectionRequest(contextPath.addSegment("territory_system_users"));
    }

    public SystemuserRequest territory_system_users(String ownerid) {
        return new SystemuserRequest(contextPath.addSegment("territory_system_users").addKeys(new NameValue(ownerid.toString())));
    }

    public TerritoryCollectionRequest territory_parent_territory() {
        return new TerritoryCollectionRequest(contextPath.addSegment("territory_parent_territory"));
    }

    public TerritoryRequest territory_parent_territory(String territoryid) {
        return new TerritoryRequest(contextPath.addSegment("territory_parent_territory").addKeys(new NameValue(territoryid.toString())));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy