some work on role and user validation and updates.
This commit is contained in:
@@ -12,8 +12,8 @@ public class RoleCommand {
|
||||
private String name;
|
||||
private String description;
|
||||
|
||||
private String[] notSelectedItems;
|
||||
private String[] selectedItems;
|
||||
private String[] notSelectedPermissions;
|
||||
private String[] permissions;
|
||||
|
||||
protected RoleCommand() {
|
||||
//
|
||||
@@ -22,7 +22,7 @@ public class RoleCommand {
|
||||
public RoleCommand(final String name, final String description, final String[] permissionIds) {
|
||||
this.name = name;
|
||||
this.description = description;
|
||||
this.selectedItems = permissionIds;
|
||||
this.permissions = permissionIds;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
@@ -49,19 +49,19 @@ public class RoleCommand {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String[] getNotSelectedItems() {
|
||||
return notSelectedItems;
|
||||
public String[] getNotSelectedPermissions() {
|
||||
return notSelectedPermissions;
|
||||
}
|
||||
|
||||
public void setNotSelectedItems(String... notSelectedItems) {
|
||||
this.notSelectedItems = notSelectedItems;
|
||||
public void setNotSelectedPermissions(String[] notSelectedPermissions) {
|
||||
this.notSelectedPermissions = notSelectedPermissions;
|
||||
}
|
||||
|
||||
public String[] getSelectedItems() {
|
||||
return selectedItems;
|
||||
public String[] getPermissions() {
|
||||
return permissions;
|
||||
}
|
||||
|
||||
public void setSelectedItems(String... selectedItems) {
|
||||
this.selectedItems = selectedItems;
|
||||
public void setPermissions(String[] permissions) {
|
||||
this.permissions = permissions;
|
||||
}
|
||||
}
|
||||
@@ -18,8 +18,8 @@ public class UserCommand implements Serializable {
|
||||
private String email;
|
||||
private Long officeId;
|
||||
|
||||
private String[] notSelectedItems;
|
||||
private String[] selectedItems;
|
||||
private String[] notSelectedRoles;
|
||||
private String[] roles;
|
||||
|
||||
public UserCommand() {
|
||||
//
|
||||
@@ -85,19 +85,19 @@ public class UserCommand implements Serializable {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String[] getNotSelectedItems() {
|
||||
return notSelectedItems;
|
||||
public String[] getNotSelectedRoles() {
|
||||
return notSelectedRoles;
|
||||
}
|
||||
|
||||
public void setNotSelectedItems(String... notSelectedItems) {
|
||||
this.notSelectedItems = notSelectedItems;
|
||||
public void setNotSelectedRoles(String... notSelectedRoles) {
|
||||
this.notSelectedRoles = notSelectedRoles;
|
||||
}
|
||||
|
||||
public String[] getSelectedItems() {
|
||||
return selectedItems;
|
||||
public String[] getRoles() {
|
||||
return roles;
|
||||
}
|
||||
|
||||
public void setSelectedItems(String... selectedItems) {
|
||||
this.selectedItems = selectedItems;
|
||||
public void setRoles(String... roles) {
|
||||
this.roles = roles;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user