1 /* 2 * $HeadURL: $ 3 * $Date: $ 4 * $Revision: $ 5 * $Author: $ 6 * 7 * Copyright (c) 2005 MindTree Consulting Ltd. 8 * 9 * This file is part of Insight. 10 * 11 * Insight is free software: you can redistribute it and/or modify it under the 12 * terms of the GNU General Public License as published by the Free Software 13 * Foundation, either version 3 of the License, or (at your option) any later 14 * version. 15 * 16 * Insight is distributed in the hope that it will be useful, but 17 * WITHOUT ANY WARRANTY; without even the implied warranty of 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 19 * Public License for more details. 20 * 21 * You should have received a copy of the GNU General Public License along with 22 * Insight. If not, see <http://www.gnu.org/licenses/>. 23 */ 24 package com.mindtree.techworks.insight.pagination; 25 26 import java.util.List; 27 28 import com.mindtree.techworks.insight.spi.LogEvent; 29 30 /** 31 * The <code>IPage</code> interface exposes the behaviour for adding 32 * and retrieving the LogEvents 33 * 34 * @author antonypulicken 35 * 36 * 37 */ 38 public interface IPage { 39 40 /** 41 * Adds LogEvents to the Page 42 * @param logEvent 43 */ 44 public void addLogEvent(LogEvent logEvent); 45 46 /** 47 * Returns the list of LogEvents 48 * @return List 49 * 50 */ 51 public List getLogEventList(); 52 53 /** 54 * Returns the namespace of the page 55 * @return String 56 * 57 */ 58 public String getPageNamespace(); 59 }