<commit_before>/*
 * @author <a href="mailto:<EMAIL>"><NAME></a>
 * @version $Id$
 */
package org.gridlab.gridsphere.portletcontainer;

import org.gridlab.gridsphere.portlet.PortletMessage;

import java.util.List;
import java.util.Map;

/**
 * The <code>PortletMessageManager</code> is responsible for maintaining <code>PortletMessage</code>s.
 */
public interface PortletMessageManager {

    /**
     * Sends the supplied message to the portlet specified by the concrete portlet id
     * <p>
     * The portlet(s) with the given name will only receive the message event if it has/they have implemented
     * the appropriate listener.
     *
     * @param concretePortletID the concrete portlet id
     * @param message the portlet message to be sent
     */
    public void send(String concretePortletID, PortletMessage message);

    /**
     * Retrieves the messages for the given portlet name and removes them from the queue
     *
     * @param portletName the name of the portlet(s) to send the message to
     * @return a list of PortletMessage objects
     */
    public List retrieveMessages(String portletName);

    /**
     * Retrieves all the messages  removes them from the queue
     *
     * @return a map of PortletMessage objects
     */
    public Map retrieveAllMessages();

    /**
     * Clears all the messages
     */
    public void clearAllMessages();

}<commit_msg>*** empty log message ***<commit_after>/*
 * @author <a href="mailto:<EMAIL>"><NAME></a>
 * @version $Id$
 */
package org.gridlab.gridsphere.portletcontainer;

import org.gridlab.gridsphere.portlet.PortletMessage;

import java.util.List;
import java.util.Map;

/**
 * The <code>PortletMessageManager</code> is responsible for maintaining <code>PortletMessage</code>s.
 */
public interface PortletMessageManager {

    /**
     * Sends the supplied message to the portlet specified by the concrete portlet id
     * <p>
     * The portlet(s) with the given name will only receive the message event if it has/they have implemented
     * the appropriate listener.
     *
     * @param concretePortletID the concrete portlet id
     * @param message the portlet message to be sent
     */
    public void send(String concretePortletID, PortletMessage message);

    /**
     * Retrieves the messages for the given portlet name and removes them from the queue
     *
     * @param portletName the name of the portlet(s) to send the message to
     * @return a list of PortletMessage objects
     */
    public List retrieveMessages(String portletName);

    /**
     * Retrieves all the messages  removes them from the queue
     *
     * @return a map of PortletMessage objects
     */
    public Map retrieveAllMessages();

    /**
     * Clears all the messages
     */
    public void clearAllMessages();

    public void removeAllMessages();

    public void removeMessages(String concretePortletID);

    public void removeMessage(String concretePortletID, PortletMessage message);
}
{'fraction_non_alphanumeric': 0.08657718120805369, 'fraction_numerical': 0.0, 'mean_word_length': 3.1985915492957746, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5397315', 'n_tokens_mistral': 828, 'n_tokens_neox': 809, 'n_words': 295}