001: /*
002: * Copyright 2005 Sun Microsystems, Inc.
003: *
004: * Licensed under the Apache License, Version 2.0 (the "License");
005: * you may not use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.apache.org/licenses/LICENSE-2.0
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License.
015: */
016: package org.apache.roller.planet.pojos;
017:
018: import java.io.Serializable;
019: import org.apache.roller.pojos.*;
020:
021: import org.apache.roller.pojos.PersistentObject;
022:
023: /**
024: * @struts.form include-all="true"
025: * @hibernate.class lazy="false" table="rag_config"
026: * @author Dave Johnson
027: */
028: public class PlanetConfigData extends PersistentObject implements
029: Serializable {
030: /** Database ID */
031: protected String id;
032:
033: /** Deftault group of planet */
034: protected PlanetGroupData defaultGroup;
035:
036: /** Base URL of planet */
037: protected String siteURL;
038:
039: /** Proxy port or null if none */
040: protected String proxyHost;
041:
042: /** proxy port, ignored if proxyHost is null */
043: protected int proxyPort;
044:
045: /** Name of template to be used for main page */
046: protected String mainPage;
047:
048: /** Name of template to be used for groups that don't provide a template */
049: protected String groupPage;
050:
051: /** Name of administrator responsible for site */
052: protected String adminName = null;
053:
054: /** Email of administrator responsible for site */
055: protected String adminEmail = null;
056:
057: /** Title of site */
058: protected String title = null;
059:
060: /** Description of site */
061: protected String description = null;
062:
063: /** Where to place the generated files */
064: protected String outputDir = null;
065:
066: /** Where to find the Velocity templates on disk */
067: protected String templateDir = null;
068:
069: /** Location for caching newsfeed data */
070: protected String cacheDir = "";
071:
072: //----------------------------------------------------------- persistent fields
073: /**
074: * @hibernate.id column="id" generator-class="uuid.hex" unsaved-value="null"
075: */
076: public String getId() {
077: return id;
078: }
079:
080: public void setId(String id) {
081: this .id = id;
082: }
083:
084: /**
085: * @hibernate.many-to-one column="default_group_id" cascade="all" not-null="false"
086: */
087: public PlanetGroupData getDefaultGroup() {
088: return defaultGroup;
089: }
090:
091: public void setDefaultGroup(PlanetGroupData group) {
092: this .defaultGroup = group;
093: }
094:
095: /**
096: * @hibernate.property column="group_page" non-null="false" unique="false"
097: */
098: public String getGroupPage() {
099: return groupPage;
100: }
101:
102: public void setGroupPage(String groupPage) {
103: this .groupPage = groupPage;
104: }
105:
106: /**
107: * @hibernate.property column="main_page" non-null="false" unique="false"
108: */
109: public String getMainPage() {
110: return mainPage;
111: }
112:
113: public void setMainPage(String mainPage) {
114: this .mainPage = mainPage;
115: }
116:
117: /**
118: * @hibernate.property column="proxy_host" non-null="false" unique="false"
119: */
120: public String getProxyHost() {
121: return proxyHost;
122: }
123:
124: public void setProxyHost(String proxyHost) {
125: this .proxyHost = proxyHost;
126: }
127:
128: /**
129: * @hibernate.property column="proxy_port" non-null="false" unique="false"
130: */
131: public int getProxyPort() {
132: return proxyPort;
133: }
134:
135: public void setProxyPort(int proxyPort) {
136: this .proxyPort = proxyPort;
137: }
138:
139: /**
140: * @hibernate.property column="site_url" non-null="false" unique="false"
141: */
142: public String getSiteURL() {
143: return siteURL;
144: }
145:
146: public void setSiteURL(String siteURL) {
147: this .siteURL = siteURL;
148: }
149:
150: /**
151: * @hibernate.property column="admin_email" non-null="true" unique="false"
152: */
153: public String getAdminEmail() {
154: return adminEmail;
155: }
156:
157: public void setAdminEmail(String adminEmail) {
158: this .adminEmail = adminEmail;
159: }
160:
161: /**
162: * @hibernate.property column="admin_name" non-null="false" unique="false"
163: */
164: public String getAdminName() {
165: return adminName;
166: }
167:
168: public void setAdminName(String adminName) {
169: this .adminName = adminName;
170: }
171:
172: /**
173: * @hibernate.property column="output_dir" non-null="false" unique="false"
174: */
175: public String getOutputDir() {
176: return outputDir;
177: }
178:
179: public void setOutputDir(String outputDir) {
180: this .outputDir = outputDir;
181: }
182:
183: /**
184: * @hibernate.property column="template_dir" non-null="false" unique="false"
185: */
186: public String getTemplateDir() {
187: return templateDir;
188: }
189:
190: public void setTemplateDir(String templateDir) {
191: this .templateDir = templateDir;
192: }
193:
194: /**
195: * @hibernate.property column="description" non-null="false" unique="false"
196: */
197: public String getDescription() {
198: return description;
199: }
200:
201: public void setDescription(String description) {
202: this .description = description;
203: }
204:
205: /**
206: * @hibernate.property column="title" non-null="true" unique="false"
207: */
208: public String getTitle() {
209: return title;
210: }
211:
212: public void setTitle(String title) {
213: this .title = title;
214: }
215:
216: /**
217: * @hibernate.property column="cache_dir" non-null="true" unique="false"
218: */
219: public String getCacheDir() {
220: return cacheDir;
221: }
222:
223: public void setCacheDir(String dir) {
224: cacheDir = dir;
225: }
226:
227: //-------------------------------------------------------------- implementation
228: public void setData(PersistentObject vo) {
229: // TODO Auto-generated method stub
230: }
231: }
|