microsoft.dynamics.crm.entity.collection.request.PrivilegeCollectionRequest 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.fasterxml.jackson.annotation.JsonIgnore;
import com.github.davidmoten.odata.client.CollectionPageEntityRequest;
import com.github.davidmoten.odata.client.CollectionPageNonEntityRequest;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.NameValue;
import com.github.davidmoten.odata.client.annotation.Function;
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.Privilege;
import microsoft.dynamics.crm.entity.request.AsyncoperationRequest;
import microsoft.dynamics.crm.entity.request.BulkdeletefailureRequest;
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 PrivilegeCollectionRequest extends CollectionPageEntityRequest{
protected ContextPath contextPath;
public PrivilegeCollectionRequest(ContextPath contextPath) {
super(contextPath, Privilege.class, cp -> new PrivilegeRequest(cp), SchemaInfo.INSTANCE);
this.contextPath = contextPath;
}
public RoletemplateCollectionRequest roletemplateprivileges_association() {
return new RoletemplateCollectionRequest(contextPath.addSegment("roletemplateprivileges_association"));
}
public RoletemplateRequest roletemplateprivileges_association(String roletemplateid) {
return new RoletemplateRequest(contextPath.addSegment("roletemplateprivileges_association").addKeys(new NameValue(roletemplateid.toString())));
}
public RoleCollectionRequest roleprivileges_association() {
return new RoleCollectionRequest(contextPath.addSegment("roleprivileges_association"));
}
public RoleRequest roleprivileges_association(String roleid) {
return new RoleRequest(contextPath.addSegment("roleprivileges_association").addKeys(new NameValue(roleid.toString())));
}
public AsyncoperationCollectionRequest privilege_AsyncOperations() {
return new AsyncoperationCollectionRequest(contextPath.addSegment("Privilege_AsyncOperations"));
}
public AsyncoperationRequest privilege_AsyncOperations(String asyncoperationid) {
return new AsyncoperationRequest(contextPath.addSegment("Privilege_AsyncOperations").addKeys(new NameValue(asyncoperationid.toString())));
}
public BulkdeletefailureCollectionRequest privilege_BulkDeleteFailures() {
return new BulkdeletefailureCollectionRequest(contextPath.addSegment("Privilege_BulkDeleteFailures"));
}
public BulkdeletefailureRequest privilege_BulkDeleteFailures(String bulkdeletefailureid) {
return new BulkdeletefailureRequest(contextPath.addSegment("Privilege_BulkDeleteFailures").addKeys(new NameValue(bulkdeletefailureid.toString())));
}
@Function(name = "RetrievePrivilegeSet")
@JsonIgnore
public CollectionPageNonEntityRequest retrievePrivilegeSet() {
Map _parameters = ParameterMap.empty();
return CollectionPageNonEntityRequest.forFunction(this.contextPath.addActionOrFunctionSegment("Microsoft.Dynamics.CRM.RetrievePrivilegeSet"), Privilege.class, _parameters, microsoft.dynamics.crm.schema.SchemaInfo.INSTANCE);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy