Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
microsoft.dynamics.crm.entity.request.RoleRequest Maven / Gradle / Ivy
Go to download
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.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.UUID;
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;
@JsonIgnoreType
public class RoleRequest extends EntityRequest {
public RoleRequest(ContextPath contextPath, Optional value) {
super(Role.class, contextPath, value, false);
}
public SystemuserRequest systemuserroles_association(UUID ownerid) {
return new SystemuserRequest(contextPath.addSegment("systemuserroles_association").addKeys(new NameValue(ownerid, UUID.class)), Optional.empty());
}
public SystemuserCollectionRequest systemuserroles_association() {
return new SystemuserCollectionRequest(
contextPath.addSegment("systemuserroles_association"), Optional.empty());
}
public PrivilegeRequest roleprivileges_association(UUID privilegeid) {
return new PrivilegeRequest(contextPath.addSegment("roleprivileges_association").addKeys(new NameValue(privilegeid, UUID.class)), Optional.empty());
}
public PrivilegeCollectionRequest roleprivileges_association() {
return new PrivilegeCollectionRequest(
contextPath.addSegment("roleprivileges_association"), Optional.empty());
}
public AppmoduleRequest appmoduleroles_association(UUID appmoduleid) {
return new AppmoduleRequest(contextPath.addSegment("appmoduleroles_association").addKeys(new NameValue(appmoduleid, UUID.class)), Optional.empty());
}
public AppmoduleCollectionRequest appmoduleroles_association() {
return new AppmoduleCollectionRequest(
contextPath.addSegment("appmoduleroles_association"), Optional.empty());
}
public SystemuserRequest createdonbehalfby() {
return new SystemuserRequest(contextPath.addSegment("createdonbehalfby"), Optional.empty());
}
public SystemuserRequest modifiedby() {
return new SystemuserRequest(contextPath.addSegment("modifiedby"), Optional.empty());
}
public SystemuserRequest modifiedonbehalfby() {
return new SystemuserRequest(contextPath.addSegment("modifiedonbehalfby"), Optional.empty());
}
public RoleRequest parentroleid() {
return new RoleRequest(contextPath.addSegment("parentroleid"), Optional.empty());
}
public RoleRequest role_parent_role(UUID roleid) {
return new RoleRequest(contextPath.addSegment("role_parent_role").addKeys(new NameValue(roleid, UUID.class)), Optional.empty());
}
public RoleCollectionRequest role_parent_role() {
return new RoleCollectionRequest(
contextPath.addSegment("role_parent_role"), Optional.empty());
}
public BusinessunitRequest businessunitid() {
return new BusinessunitRequest(contextPath.addSegment("businessunitid"), Optional.empty());
}
public RoletemplateRequest roletemplateid() {
return new RoletemplateRequest(contextPath.addSegment("roletemplateid"), Optional.empty());
}
public AsyncoperationRequest role_AsyncOperations(UUID asyncoperationid) {
return new AsyncoperationRequest(contextPath.addSegment("Role_AsyncOperations").addKeys(new NameValue(asyncoperationid, UUID.class)), Optional.empty());
}
public AsyncoperationCollectionRequest role_AsyncOperations() {
return new AsyncoperationCollectionRequest(
contextPath.addSegment("Role_AsyncOperations"), Optional.empty());
}
public BulkdeletefailureRequest role_BulkDeleteFailures(UUID bulkdeletefailureid) {
return new BulkdeletefailureRequest(contextPath.addSegment("Role_BulkDeleteFailures").addKeys(new NameValue(bulkdeletefailureid, UUID.class)), Optional.empty());
}
public BulkdeletefailureCollectionRequest role_BulkDeleteFailures() {
return new BulkdeletefailureCollectionRequest(
contextPath.addSegment("Role_BulkDeleteFailures"), Optional.empty());
}
public OrganizationRequest organizationid_organization() {
return new OrganizationRequest(contextPath.addSegment("organizationid_organization"), Optional.empty());
}
public SystemuserRequest createdby() {
return new SystemuserRequest(contextPath.addSegment("createdby"), Optional.empty());
}
public TeamRequest teamroles_association(UUID ownerid) {
return new TeamRequest(contextPath.addSegment("teamroles_association").addKeys(new NameValue(ownerid, UUID.class)), Optional.empty());
}
public TeamCollectionRequest teamroles_association() {
return new TeamCollectionRequest(
contextPath.addSegment("teamroles_association"), Optional.empty());
}
public RoleRequest parentrootroleid() {
return new RoleRequest(contextPath.addSegment("parentrootroleid"), Optional.empty());
}
public RoleRequest role_parent_root_role(UUID roleid) {
return new RoleRequest(contextPath.addSegment("role_parent_root_role").addKeys(new NameValue(roleid, UUID.class)), Optional.empty());
}
public RoleCollectionRequest role_parent_root_role() {
return new RoleCollectionRequest(
contextPath.addSegment("role_parent_root_role"), Optional.empty());
}
public SyncerrorRequest role_SyncErrors(UUID syncerrorid) {
return new SyncerrorRequest(contextPath.addSegment("Role_SyncErrors").addKeys(new NameValue(syncerrorid, UUID.class)), Optional.empty());
}
public SyncerrorCollectionRequest role_SyncErrors() {
return new SyncerrorCollectionRequest(
contextPath.addSegment("Role_SyncErrors"), Optional.empty());
}
public SolutionRequest solution_role() {
return new SolutionRequest(contextPath.addSegment("solution_role"), Optional.empty());
}
public ApplicationuserRequest applicationuserrole(UUID applicationuserid) {
return new ApplicationuserRequest(contextPath.addSegment("applicationuserrole").addKeys(new NameValue(applicationuserid, UUID.class)), Optional.empty());
}
public ApplicationuserCollectionRequest applicationuserrole() {
return new ApplicationuserCollectionRequest(
contextPath.addSegment("applicationuserrole"), Optional.empty());
}
@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);
}
}