use of org.apache.commons.beanutils.BeanComparator in project entando-core by entando.
the class UserAuthorizationAction method getRoles.
public List<Role> getRoles() {
List<Role> roles = this.getRoleManager().getRoles();
Collections.sort(roles, new BeanComparator("description"));
return roles;
}
use of org.apache.commons.beanutils.BeanComparator in project entando-core by entando.
the class UserAuthorizationAction method getGroups.
public List<Group> getGroups() {
List<Group> groups = this.getGroupManager().getGroups();
Collections.sort(groups, new BeanComparator("description"));
return groups;
}
use of org.apache.commons.beanutils.BeanComparator in project entando-core by entando.
the class RoleFinderAction method getRoles.
public List<Role> getRoles() {
List<Role> roles = this.getRoleManager().getRoles();
BeanComparator comparator = new BeanComparator("description");
Collections.sort(roles, comparator);
return roles;
}
use of org.apache.commons.beanutils.BeanComparator in project entando-core by entando.
the class AbstractPortalAction method addGroup.
private void addGroup(String code, Map<String, List<SelectItem>> mapping, List<List<SelectItem>> group) {
List<SelectItem> singleGroup = mapping.get(code);
if (null != singleGroup) {
BeanComparator comparator = new BeanComparator("value");
Collections.sort(singleGroup, comparator);
group.add(singleGroup);
}
}
use of org.apache.commons.beanutils.BeanComparator in project entando-core by entando.
the class PageAction method getGroups.
/**
* Return the list of system groups.
*
* @return The list of system groups.
*/
public List<Group> getGroups() {
List<Group> groups = this.getGroupManager().getGroups();
BeanComparator c = new BeanComparator("description");
Collections.sort(groups, c);
return groups;
}
Aggregations