finish off remaining user admin functionality through API, removing client proxy work.
This commit is contained in:
@@ -11,7 +11,9 @@ public class RoleCommand {
|
||||
private Long id;
|
||||
private String name;
|
||||
private String description;
|
||||
private String[] permissionIds;
|
||||
|
||||
private String[] notSelectedItems;
|
||||
private String[] selectedItems;
|
||||
|
||||
protected RoleCommand() {
|
||||
//
|
||||
@@ -20,7 +22,7 @@ public class RoleCommand {
|
||||
public RoleCommand(final String name, final String description, final String[] permissionIds) {
|
||||
this.name = name;
|
||||
this.description = description;
|
||||
this.permissionIds = permissionIds;
|
||||
this.selectedItems = permissionIds;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
@@ -39,14 +41,6 @@ public class RoleCommand {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String[] getPermissionIds() {
|
||||
return this.permissionIds;
|
||||
}
|
||||
|
||||
public void setPermissionIds(final String[] permissionIds) {
|
||||
this.permissionIds = permissionIds;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@@ -54,4 +48,20 @@ public class RoleCommand {
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String[] getNotSelectedItems() {
|
||||
return notSelectedItems;
|
||||
}
|
||||
|
||||
public void setNotSelectedItems(String... notSelectedItems) {
|
||||
this.notSelectedItems = notSelectedItems;
|
||||
}
|
||||
|
||||
public String[] getSelectedItems() {
|
||||
return selectedItems;
|
||||
}
|
||||
|
||||
public void setSelectedItems(String... selectedItems) {
|
||||
this.selectedItems = selectedItems;
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,6 @@
|
||||
package org.mifosng.data.command;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
@@ -20,7 +18,7 @@ public class UserCommand implements Serializable {
|
||||
private String email;
|
||||
private Long officeId;
|
||||
|
||||
private List<String> notSelectedItems = new ArrayList<String>();
|
||||
private String[] notSelectedItems;
|
||||
private String[] selectedItems;
|
||||
|
||||
public UserCommand() {
|
||||
@@ -87,11 +85,11 @@ public class UserCommand implements Serializable {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public List<String> getNotSelectedItems() {
|
||||
public String[] getNotSelectedItems() {
|
||||
return notSelectedItems;
|
||||
}
|
||||
|
||||
public void setNotSelectedItems(List<String> notSelectedItems) {
|
||||
public void setNotSelectedItems(String... notSelectedItems) {
|
||||
this.notSelectedItems = notSelectedItems;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user