01: /*
02: * Copyright (c) 2003 - 2007 OpenSubsystems s.r.o. Slovak Republic. All rights reserved.
03: *
04: * Project: OpenChronicle
05: *
06: * $Id: BlogFactory.java,v 1.3 2007/02/20 02:14:51 bastafidli Exp $
07: *
08: * This program is free software; you can redistribute it and/or modify
09: * 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 org.opensubsystems.blog.data.Blog;
25: import org.opensubsystems.core.error.OSSException;
26: import org.opensubsystems.core.persist.ModifiableDataFactory;
27: import org.opensubsystems.patterns.listdata.persist.ListFactory;
28:
29: /**
30: * This interface defines methods to create, retrieve and manipulate blogs
31: * in the persistance store.
32: *
33: * @version $Id: BlogFactory.java,v 1.3 2007/02/20 02:14:51 bastafidli Exp $
34: * @author Miro Halas
35: * @code.reviewer Miro Halas
36: * @code.reviewed Initial revision
37: */
38: public interface BlogFactory extends ModifiableDataFactory, ListFactory {
39: /**
40: * Get blog data knowing just the folder where it's entries are displayed.
41: *
42: * @param strFolder - folder where entries for given folder are displayed
43: * @return Blog - specified blog or null if not found
44: * @throws OSSException - an error has occured
45: */
46: Blog get(String strFolder) throws OSSException;
47: }
|