View Javadoc

1   /*
2    * Created on Dec 9, 2004 by Justin Sher
3    *
4    *  ginp - Java Web Application for Viewing Photo Collections
5    *
6    *  This library is free software; you can redistribute it and/or
7    *  modify it under the terms of the GNU Lesser General Public
8    *  License as published by the Free Software Foundation; either
9    *  version 2.1 of the License, or any later version.
10   *
11   *  This library is distributed in the hope that it will be useful,
12   *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13   *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14   *  Lesser General Public License for more details.
15   *
16   *  You should have received a copy of the GNU Lesser General Public
17   *  License along with this library; if not, write to the Free Software
18   *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19   */
20  package net.sf.ginp.setup.data;
21  
22  import java.util.ArrayList;
23  import java.util.Collection;
24  
25  /**
26   * Visit Object for Tapestry.  Stores Persistant Session Data
27   * 
28   * @author Justin Sher
29   */
30  public class SetupVisit {
31  	Collection directoryPrefs;
32  	String ginpPhotosPath;
33  	String adminPassword;
34  	String guestPassword;
35  	String setupURL;
36  	String javaCommand;
37  	
38  	/**
39  	 * No Arg Constructor, sets up object and defaults 
40  	 */
41  	public SetupVisit() { 
42  		directoryPrefs=new ArrayList();
43  	}
44  	/**
45  	 * @return Returns the adminPassword.
46  	 */
47  	public String getAdminPassword() {
48  		return adminPassword;
49  	}
50  	/**
51  	 * @param adminPassword The adminPassword to set.
52  	 */
53  	public void setAdminPassword(String adminPassword) {
54  		this.adminPassword = adminPassword;
55  	}
56  	/**
57  	 * @return Returns the ginpPhotosPath.
58  	 */
59  	public String getGinpPhotosPath() {
60  		return ginpPhotosPath;
61  	}
62  	/**
63  	 * @param ginpPhotosPath The ginpPhotosPath to set.
64  	 */
65  	public void setGinpPhotosPath(String ginpPhotosPath) {
66  		this.ginpPhotosPath = ginpPhotosPath;
67  	}
68  	/**
69  	 * @return Returns the guestPassword.
70  	 */
71  	public String getGuestPassword() {
72  		return guestPassword;
73  	}
74  	/**
75  	 * @param guestPassword The guestPassword to set.
76  	 */
77  	public void setGuestPassword(String guestPassword) {
78  		this.guestPassword = guestPassword;
79  	}
80  	
81  	/**
82  	 * @param directoryPrefs The directoryPrefs to set.
83  	 */
84  	public void setDirectoryPrefs(Collection directoryPrefs) {
85  		this.directoryPrefs = directoryPrefs;
86  	}
87  	/**
88  	 * @return Returns the directoryPrefs.
89  	 */
90  	public Collection getDirectoryPrefs() {
91  		return directoryPrefs;
92  	}
93  	/**
94  	 * @param pref
95  	 */
96  	public void addCollection(DirectoryPref pref) {
97  		directoryPrefs.add(pref);
98  		
99  	}
100 	
101 	/**
102 	 * @return Returns the setupURL.
103 	 */
104 	public String getSetupURL() {
105 		return setupURL;
106 	}
107 	/**
108 	 * @param setupURL The setupURL to set.
109 	 */
110 	public void setSetupURL(String setupURL) {
111 		this.setupURL = setupURL;
112 	}
113 	/**
114 	 * @return Returns the javaCommand.
115 	 */
116 	public String getJavaCommand() {
117 		return javaCommand;
118 	}
119 	/**
120 	 * @param javaCommand The javaCommand to set.
121 	 */
122 	public void setJavaCommand(String javaCommand) {
123 		this.javaCommand = javaCommand;
124 	}
125 }