KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > dotmarketing > portlets > folders > struts > FolderForm


1 package com.dotmarketing.portlets.folders.struts;
2
3
4 import javax.servlet.http.HttpServletRequest JavaDoc;
5
6 import org.apache.struts.action.ActionErrors;
7 import org.apache.struts.action.ActionMapping;
8 import org.apache.struts.validator.ValidatorForm;
9
10 import com.liferay.portal.util.Constants;
11
12 public class FolderForm extends ValidatorForm {
13
14     private static final long serialVersionUID = 1L;
15
16     /** nullable persistent field */
17     private long inode;
18     
19     /** nullable persistent field */
20     private String JavaDoc name;
21
22     /** nullable persistent field */
23     private String JavaDoc path;
24
25     /** nullable persistent field */
26     private String JavaDoc title;
27     
28     /** nullable persistent field */
29     private int sortOrder;
30
31     /** nullable persistent field */
32     private boolean showOnMenu;
33
34     /** nullable persistent field */
35     private long hostInode;
36     
37     private String JavaDoc filesMasks;
38
39     /** default constructor */
40     public FolderForm() {
41     }
42
43     /**
44      * Returns the inode.
45      * @return long
46      */

47     public long getInode() {
48         return inode;
49     }
50
51     /**
52      * Returns the name.
53      * @return String
54      */

55     public String JavaDoc getName() {
56         return name;
57     }
58
59     /**
60      * Returns the path.
61      * @return String
62      */

63     public String JavaDoc getPath() {
64         return path;
65     }
66
67     /**
68      * Returns the sortOrder.
69      * @return int
70      */

71     public int getSortOrder() {
72         return sortOrder;
73     }
74
75     /**
76      * Sets the inode.
77      * @param inode The inode to set
78      */

79     public void setInode(long inode) {
80         this.inode = inode;
81     }
82
83     /**
84      * Sets the name.
85      * @param name The name to set
86      */

87     public void setName(String JavaDoc name) {
88         this.name = name;
89     }
90
91     /**
92      * Sets the path.
93      * @param path The path to set
94      */

95     public void setPath(String JavaDoc path) {
96         this.path = path;
97     }
98
99     /**
100      * Sets the sortOrder.
101      * @param sortOrder The sortOrder to set
102      */

103     public void setSortOrder(int sortOrder) {
104         this.sortOrder = sortOrder;
105     }
106
107     /**
108      * Returns the showOnMenu.
109      * @return boolean
110      */

111     public boolean isShowOnMenu() {
112         return showOnMenu;
113     }
114
115     /**
116      * Sets the showOnMenu.
117      * @param showOnMenu The showOnMenu to set
118      */

119     public void setShowOnMenu(boolean showOnMenu) {
120         this.showOnMenu = showOnMenu;
121     }
122
123     public ActionErrors validate(ActionMapping mapping, HttpServletRequest JavaDoc request) {
124         if(request.getParameter("cmd")!=null && request.getParameter("cmd").equals(Constants.ADD)) {
125             return super.validate(mapping, request);
126         }
127         return null;
128     }
129     /**
130      * Returns the title.
131      * @return String
132      */

133     public String JavaDoc getTitle() {
134         return title;
135     }
136
137     /**
138      * Sets the title.
139      * @param title The title to set
140      */

141     public void setTitle(String JavaDoc title) {
142         this.title = title;
143     }
144
145     
146
147     /**
148      * @return Returns the hostInode.
149      */

150     public long getHostInode() {
151         return hostInode;
152     }
153     /**
154      * @param hostInode The hostInode to set.
155      */

156     public void setHostInode(long hostInode) {
157         this.hostInode = hostInode;
158     }
159
160     public String JavaDoc getFilesMasks() {
161         return filesMasks;
162     }
163
164     public void setFilesMasks(String JavaDoc filesMasks) {
165         this.filesMasks = filesMasks;
166     }
167 }
168
Popular Tags