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

microsoft.dynamics.crm.entity.request.RoletemplateRequest 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.JsonIgnoreType;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.EntityRequest;
import com.github.davidmoten.odata.client.NameValue;

import microsoft.dynamics.crm.entity.Roletemplate;
import microsoft.dynamics.crm.entity.collection.request.PrivilegeCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.RoleCollectionRequest;
import microsoft.dynamics.crm.schema.SchemaInfo;

@JsonIgnoreType
public class RoletemplateRequest extends EntityRequest {

    public RoletemplateRequest(ContextPath contextPath) {
        super(Roletemplate.class, contextPath, SchemaInfo.INSTANCE);
    }

    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