Coverage Report - org.jtheque.core.managers.event.IEventManager
 
Classes in this File Line Coverage Branch Coverage Complexity
IEventManager
N/A
N/A
1
 
 1  
 package org.jtheque.core.managers.event;
 2  
 
 3  
 import org.jtheque.core.managers.IManager;
 4  
 
 5  
 import java.util.Collection;
 6  
 import java.util.Set;
 7  
 
 8  
 /*
 9  
  * This file is part of JTheque.
 10  
  *
 11  
  * JTheque is free software: you can redistribute it and/or modify
 12  
  * it under the terms of the GNU General Public License as published by
 13  
  * the Free Software Foundation, either version 3 of the License.
 14  
  *
 15  
  * JTheque is distributed in the hope that it will be useful,
 16  
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 17  
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 18  
  * GNU General Public License for more details.
 19  
  *
 20  
  * You should have received a copy of the GNU General Public License
 21  
  * along with JTheque.  If not, see <http://www.gnu.org/licenses/>.
 22  
  */
 23  
 
 24  
 /**
 25  
  * An event manager specification.
 26  
  *
 27  
  * @author Baptiste Wicht
 28  
  */
 29  
 public interface IEventManager extends IManager {
 30  
     /**
 31  
      * Return all the logs.
 32  
      *
 33  
      * @return A Set containing all the logs.
 34  
      */
 35  
     Set<String> getLogs();
 36  
 
 37  
     /**
 38  
      * Return all the events from a log.
 39  
      *
 40  
      * @param log The log to get the events from.
 41  
      * @return A List containing all the events of the log.
 42  
      */
 43  
     Collection<EventLog> getEventLogs(String log);
 44  
 
 45  
     /**
 46  
      * Add an event to a log.
 47  
      *
 48  
      * @param log   The log to add the event to.
 49  
      * @param event The event to add.
 50  
      */
 51  
     void addEventLog(String log, EventLog event);
 52  
 }