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

microsoft.dynamics.crm.entity.collection.request.RoletemplateCollectionRequest 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.Roletemplate;
import microsoft.dynamics.crm.entity.request.PrivilegeRequest;
import microsoft.dynamics.crm.entity.request.RoleRequest;
import microsoft.dynamics.crm.entity.request.RoletemplateRequest;
import microsoft.dynamics.crm.schema.SchemaInfo;

public class RoletemplateCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public RoletemplateCollectionRequest(ContextPath contextPath) {
        super(contextPath, Roletemplate.class, cp -> new RoletemplateRequest(cp), SchemaInfo.INSTANCE);
        this.contextPath = contextPath;
    }

    public PrivilegeCollectionRequest roletemplateprivileges_association() {
        return new PrivilegeCollectionRequest(contextPath.addSegment("roletemplateprivileges_association"));
    }

    public PrivilegeRequest roletemplateprivileges_association(String privilegeid) {
        return new PrivilegeRequest(contextPath.addSegment("roletemplateprivileges_association").addKeys(new NameValue(privilegeid.toString())));
    }

    public RoleCollectionRequest role_template_roles() {
        return new RoleCollectionRequest(contextPath.addSegment("role_template_roles"));
    }

    public RoleRequest role_template_roles(String roleid) {
        return new RoleRequest(contextPath.addSegment("role_template_roles").addKeys(new NameValue(roleid.toString())));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy