/* (c) 2014 Open Source Geospatial Foundation - all rights reserved * (c) 2001 - 2013 OpenPlans * This code is licensed under the GPL 2.0 license, available at the root * application directory. */ package org.geoserver.security.web.role; import java.util.Arrays; import java.util.List; import org.geoserver.ows.util.OwsUtils; import org.geoserver.security.impl.GeoServerRole; import org.geoserver.security.web.AbstractConfirmRemovalPanel; public class ConfirmRemovalRolePanel extends AbstractConfirmRemovalPanel<GeoServerRole> { private static final long serialVersionUID = 1L; public ConfirmRemovalRolePanel(String id, List<GeoServerRole> roots) { super(id, roots); } public ConfirmRemovalRolePanel(String id, GeoServerRole... roots) { this(id, Arrays.asList(roots)); } @Override protected String getConfirmationMessage(GeoServerRole object) throws Exception{ return OwsUtils.property(object, "authority", String.class); } }