View Javadoc

1   /*
2   MadCaching is a Tile Caching solution
3   Copyright (C) 2005  Mac Vu
4   
5   This program is free software; you can redistribute it and/or
6   modify it under the terms of the GNU General Public License
7   as published by the Free Software Foundation; either version 2
8   of the License, or (at your option) any later version.
9   
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  GNU General Public License for more details.
14  
15  You should have received a copy of the GNU General Public License
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18   */
19  package com.macvu.tiles.actions;
20  
21  import org.apache.struts.action.ActionErrors;
22  import org.apache.struts.action.ActionForm;
23  import org.apache.struts.action.ActionMapping;
24  
25  import javax.servlet.http.HttpServletRequest;
26  import java.util.List;
27  
28  /***
29   * User: MVu
30   */
31  public class CacheInformationForm extends ActionForm {
32      // Input data
33      String tileName;
34  
35      boolean cacheEnabled;
36      String repositoryName;
37      String repositoryFactory;
38      String keyFactory;
39  
40      String cacheFields;
41  
42      // Display Data
43      List cachingAttributeList;
44  
45      public String getTileName() {
46          return tileName;
47      }
48  
49      public void setTileName(String tileName) {
50          this.tileName = tileName;
51      }
52  
53      public boolean getCacheEnabled() {
54           return cacheEnabled;
55      }
56  
57      public boolean isCacheEnabled() {
58          return cacheEnabled;
59      }
60  
61      public void setCacheEnabled(boolean cacheEnabled) {
62          this.cacheEnabled = cacheEnabled;
63      }
64  
65      public String getKeyFactory() {
66          return keyFactory;
67      }
68  
69      public void setKeyFactory(String keyFactory) {
70          this.keyFactory = keyFactory;
71      }
72  
73      public String getRepositoryFactory() {
74          return repositoryFactory;
75      }
76  
77      public void setRepositoryFactory(String repositoryFactory) {
78          this.repositoryFactory = repositoryFactory;
79      }
80  
81      public String getRepositoryName() {
82          return repositoryName;
83      }
84  
85      public void setRepositoryName(String repositoryName) {
86          this.repositoryName = repositoryName;
87      }
88  
89      public String getCacheFields() {
90          return cacheFields;
91      }
92  
93      public void setCacheFields(String cacheFields) {
94          this.cacheFields = cacheFields;
95      }
96  
97      public List getCachingAttributeList() {
98          return cachingAttributeList;
99      }
100 
101     public void setCachingAttributeList(List cachingAttributeList) {
102         this.cachingAttributeList = cachingAttributeList;
103     }
104 
105     public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
106         return null;
107     }
108 }