public List<Role> getRoleList() { if (roleList == null || insertDelete == true) { roleList = roleService.findAll(); } return roleList; }
public void searchRolename() { if (getSearchRoleName() == null || getSearchRoleName().trim().equals("")) { this.roleList = null; this.roleDataModel = null; } else { this.roleList = roleService.findRoleByRoleName(getSearchRoleName()); this.roleDataModel = null; } }