microsoft.dynamics.crm.entity.collection.request.RoletemplateCollectionRequest 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.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