com.liferay.application.list.GroupProvider Maven / Gradle / Ivy
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.application.list;
import com.liferay.portal.kernel.model.Group;
import javax.servlet.http.HttpServletRequest;
/**
* Provides an interface that defines how a Group
(in
* portal-kernel
) associated with a servlet request is stored and
* retrieved.
*
* @author Julio Camarero
*/
public interface GroupProvider {
/**
* Returns the Group
associated with the request.
*
* @param httpServletRequest the servlet request used to retrieve the group
* @return the Group
associated with the request
*/
public Group getGroup(HttpServletRequest httpServletRequest);
/**
* Sets the Group
to associate with the request.
*
* @param httpServletRequest the servlet request used to associate the
* Group
* @param group the Group
to associate with the request
*/
public void setGroup(HttpServletRequest httpServletRequest, Group group);
}