All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.agiletec.apsadmin.user.group.GroupFinderAction Maven / Gradle / Ivy

/*
 * Copyright 2015-Present Entando Inc. (http://www.entando.com) All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */
package com.agiletec.apsadmin.user.group;

import java.util.Collections;
import java.util.List;

import org.apache.commons.beanutils.BeanComparator;

import com.agiletec.aps.system.services.group.Group;
import com.agiletec.aps.system.services.group.IGroupManager;
import com.agiletec.apsadmin.system.BaseAction;

/**
 * Classe action della lista Gruppi.
 * @author E.Mezzano - E.Santoboni
 */
public class GroupFinderAction extends BaseAction {
	
	public List getGroups() {
		List groups = this.getGroupManager().getGroups();
		BeanComparator comparator = new BeanComparator("descr");
		Collections.sort(groups, comparator);
		return groups;
	}
	
	protected IGroupManager getGroupManager() {
		return _groupManager;
	}
	public void setGroupManager(IGroupManager groupManager) {
		this._groupManager = groupManager;
	}
	
	private IGroupManager _groupManager;
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy