1 /* 2 * Copyright (c) 2003 - 2007 OpenSubsystems s.r.o. Slovak Republic. All rights reserved. 3 * 4 * Project: OpenChronicle 5 * 6 * $Id: BlogFactory.java,v 1.3 2007/01/07 06:04:30 bastafidli Exp $ 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; version 2 of the License. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 */ 21 22 package org.opensubsystems.blog.persist; 23 24 import java.util.List; 25 26 import org.opensubsystems.blog.data.Blog; 27 import org.opensubsystems.core.error.OSSException; 28 import org.opensubsystems.core.persist.ModifiableDataFactory; 29 30 /** 31 * This interface defines methods to create, retrieve and manipulate blogs 32 * in the persistance store. 33 * 34 * @version $Id: BlogFactory.java,v 1.3 2007/01/07 06:04:30 bastafidli Exp $ 35 * @author Miro Halas 36 * @code.reviewer Miro Halas 37 * @code.reviewed Initial revision 38 */ 39 public interface BlogFactory extends ModifiableDataFactory 40 { 41 /** 42 * Get blog data knowing just the folder where it's entries are displayed. 43 * 44 * @param strFolder - folder where entries for given folder are displayed 45 * @return Blog - specified blog or null if not found 46 * @throws OSSException - an error has occured 47 */ 48 Blog get( 49 String strFolder 50 ) throws OSSException; 51 52 /** 53 * Return collection of all Blogs in the persistance store. 54 * 55 * @return List - list of Blogs objects sorted alphabetically 56 * @throws OSSException - an error has occureds 57 */ 58 List getAll( 59 ) throws OSSException; 60 } 61