microsoft.dynamics.crm.entity.request.RoleRequest 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.request;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreType;
import com.github.davidmoten.guavamini.Preconditions;
import com.github.davidmoten.odata.client.ActionRequestNoReturn;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.EntityRequest;
import com.github.davidmoten.odata.client.NameValue;
import com.github.davidmoten.odata.client.annotation.Action;
import com.github.davidmoten.odata.client.internal.ParameterMap;
import com.github.davidmoten.odata.client.internal.TypedObject;
import java.util.List;
import java.util.Map;
import microsoft.dynamics.crm.complex.RolePrivilege;
import microsoft.dynamics.crm.entity.Privilege;
import microsoft.dynamics.crm.entity.Role;
import microsoft.dynamics.crm.entity.collection.request.ApplicationuserCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.AppmoduleCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.AsyncoperationCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.BulkdeletefailureCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.PrivilegeCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.RoleCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.SyncerrorCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.SystemuserCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.TeamCollectionRequest;
import microsoft.dynamics.crm.schema.SchemaInfo;
@JsonIgnoreType
public class RoleRequest extends EntityRequest {
public RoleRequest(ContextPath contextPath) {
super(Role.class, contextPath, SchemaInfo.INSTANCE);
}
public SystemuserCollectionRequest systemuserroles_association() {
return new SystemuserCollectionRequest(
contextPath.addSegment("systemuserroles_association"));
}
public SystemuserRequest systemuserroles_association(String ownerid) {
return new SystemuserRequest(contextPath.addSegment("systemuserroles_association").addKeys(new NameValue(ownerid.toString())));
}
public PrivilegeCollectionRequest roleprivileges_association() {
return new PrivilegeCollectionRequest(
contextPath.addSegment("roleprivileges_association"));
}
public PrivilegeRequest roleprivileges_association(String privilegeid) {
return new PrivilegeRequest(contextPath.addSegment("roleprivileges_association").addKeys(new NameValue(privilegeid.toString())));
}
public AppmoduleCollectionRequest appmoduleroles_association() {
return new AppmoduleCollectionRequest(
contextPath.addSegment("appmoduleroles_association"));
}
public AppmoduleRequest appmoduleroles_association(String appmoduleid) {
return new AppmoduleRequest(contextPath.addSegment("appmoduleroles_association").addKeys(new NameValue(appmoduleid.toString())));
}
public SystemuserRequest createdonbehalfby() {
return new SystemuserRequest(contextPath.addSegment("createdonbehalfby"));
}
public SystemuserRequest modifiedby() {
return new SystemuserRequest(contextPath.addSegment("modifiedby"));
}
public SystemuserRequest modifiedonbehalfby() {
return new SystemuserRequest(contextPath.addSegment("modifiedonbehalfby"));
}
public RoleRequest parentroleid() {
return new RoleRequest(contextPath.addSegment("parentroleid"));
}
public RoleCollectionRequest role_parent_role() {
return new RoleCollectionRequest(
contextPath.addSegment("role_parent_role"));
}
public RoleRequest role_parent_role(String roleid) {
return new RoleRequest(contextPath.addSegment("role_parent_role").addKeys(new NameValue(roleid.toString())));
}
public BusinessunitRequest businessunitid() {
return new BusinessunitRequest(contextPath.addSegment("businessunitid"));
}
public RoletemplateRequest roletemplateid() {
return new RoletemplateRequest(contextPath.addSegment("roletemplateid"));
}
public AsyncoperationCollectionRequest role_AsyncOperations() {
return new AsyncoperationCollectionRequest(
contextPath.addSegment("Role_AsyncOperations"));
}
public AsyncoperationRequest role_AsyncOperations(String asyncoperationid) {
return new AsyncoperationRequest(contextPath.addSegment("Role_AsyncOperations").addKeys(new NameValue(asyncoperationid.toString())));
}
public BulkdeletefailureCollectionRequest role_BulkDeleteFailures() {
return new BulkdeletefailureCollectionRequest(
contextPath.addSegment("Role_BulkDeleteFailures"));
}
public BulkdeletefailureRequest role_BulkDeleteFailures(String bulkdeletefailureid) {
return new BulkdeletefailureRequest(contextPath.addSegment("Role_BulkDeleteFailures").addKeys(new NameValue(bulkdeletefailureid.toString())));
}
public OrganizationRequest organizationid_organization() {
return new OrganizationRequest(contextPath.addSegment("organizationid_organization"));
}
public SystemuserRequest createdby() {
return new SystemuserRequest(contextPath.addSegment("createdby"));
}
public TeamCollectionRequest teamroles_association() {
return new TeamCollectionRequest(
contextPath.addSegment("teamroles_association"));
}
public TeamRequest teamroles_association(String ownerid) {
return new TeamRequest(contextPath.addSegment("teamroles_association").addKeys(new NameValue(ownerid.toString())));
}
public RoleRequest parentrootroleid() {
return new RoleRequest(contextPath.addSegment("parentrootroleid"));
}
public RoleCollectionRequest role_parent_root_role() {
return new RoleCollectionRequest(
contextPath.addSegment("role_parent_root_role"));
}
public RoleRequest role_parent_root_role(String roleid) {
return new RoleRequest(contextPath.addSegment("role_parent_root_role").addKeys(new NameValue(roleid.toString())));
}
public SyncerrorCollectionRequest role_SyncErrors() {
return new SyncerrorCollectionRequest(
contextPath.addSegment("Role_SyncErrors"));
}
public SyncerrorRequest role_SyncErrors(String syncerrorid) {
return new SyncerrorRequest(contextPath.addSegment("Role_SyncErrors").addKeys(new NameValue(syncerrorid.toString())));
}
public SolutionRequest solution_role() {
return new SolutionRequest(contextPath.addSegment("solution_role"));
}
public ApplicationuserCollectionRequest applicationuserrole() {
return new ApplicationuserCollectionRequest(
contextPath.addSegment("applicationuserrole"));
}
public ApplicationuserRequest applicationuserrole(String applicationuserid) {
return new ApplicationuserRequest(contextPath.addSegment("applicationuserrole").addKeys(new NameValue(applicationuserid.toString())));
}
@Action(name = "AddPrivilegesRole")
@JsonIgnore
public ActionRequestNoReturn addPrivilegesRole(List privileges) {
Map _parameters = ParameterMap
.put("Privileges", "Collection(Microsoft.Dynamics.CRM.RolePrivilege)", privileges)
.build();
return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("Microsoft.Dynamics.CRM.AddPrivilegesRole"), _parameters);
}
@Action(name = "RemovePrivilegeRole")
@JsonIgnore
public ActionRequestNoReturn removePrivilegeRole(Privilege privilege) {
Preconditions.checkNotNull(privilege, "privilege cannot be null");
Map _parameters = ParameterMap
.put("Privilege", "Microsoft.Dynamics.CRM.privilege", privilege)
.build();
return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("Microsoft.Dynamics.CRM.RemovePrivilegeRole"), _parameters);
}
@Action(name = "ReplacePrivilegesRole")
@JsonIgnore
public ActionRequestNoReturn replacePrivilegesRole(List privileges) {
Map _parameters = ParameterMap
.put("Privileges", "Collection(Microsoft.Dynamics.CRM.RolePrivilege)", privileges)
.build();
return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("Microsoft.Dynamics.CRM.ReplacePrivilegesRole"), _parameters);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy