View Javadoc

1   /*
2    * Created on Mar 1, 2005 by Justin Sher
3    *
4    *  ginp - Java Web Application for Viewing Photo Collections
5    *  Copyright (C) 2004  Justin Sher <justin@sher.net>
6    *
7    *  This library is free software; you can redistribute it and/or
8    *  modify it under the terms of the GNU Lesser General Public
9    *  License as published by the Free Software Foundation; either
10   *  version 2.1 of the License, or any later version.
11   *
12   *  This library 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 GNU
15   *  Lesser General Public License for more details.
16   *
17   *  You should have received a copy of the GNU Lesser General Public
18   *  License along with this library; if not, write to the Free Software
19   *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
20   */
21  package net.sf.ginp.browser;
22  
23  import net.sf.ginp.PicCollection;
24  
25  /**
26   * @author Justin Sher
27   */
28  public interface FolderManager {
29  
30  	/**
31  	 * @param collection
32  	 * @return
33  	 */
34  	int getPicturesLength(PicCollection collection);
35  
36  	/**
37  	 * @param collection
38  	 * @param count
39  	 * @return
40  	 */
41  	String getFolder(PicCollection collection, int count);
42  
43  	/**
44  	 * @param collection
45  	 * @return
46  	 */
47  	int getFoldersLength(PicCollection collection);
48  
49  	/**
50  	 * @param selectedFolder
51  	 * @return
52  	 */
53  	int getPicturesInDirectoryLength(PicCollection collection,String selectedFolder);
54  
55  	/**
56  	 * @param string
57  	 * @return
58  	 */
59  	String[] getFoldersInDirectory(PicCollection collection,String string);
60  
61  	/**
62  	 * @param path
63  	 * @return
64  	 */
65  	String[] getPicturesInDirectory(PicCollection collection,String path);
66  
67  	/**
68  	 * @param picName
69  	 * @param collection
70  	 */
71  	String getPrevPictureName(String picName, PicCollection collection);
72  
73  	/**
74  	 * @param picName
75  	 * @param collection
76  	 * @return
77  	 */
78  	String getNextPictureName(String picName, PicCollection collection);
79  
80  	/**
81  	 * @param path
82  	 * @return
83  	 */
84  	int getPicturesLength(PicCollection collection,String path);
85  
86  	/**
87  	 * @param collection
88  	 */
89  	String[] getPictures(PicCollection collection);
90  
91  	/**
92  	 * @param tst1
93  	 */
94  	String[] sortPictures(String[] tst1);
95  
96  
97  }