KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > dotmarketing > portlets > virtuallinks > struts > VirtualLinkForm


1 package com.dotmarketing.portlets.virtuallinks.struts;
2
3 import javax.servlet.http.HttpServletRequest JavaDoc;
4
5 import org.apache.struts.action.ActionErrors;
6 import org.apache.struts.action.ActionMapping;
7 import org.apache.struts.validator.ValidatorForm;
8
9 import com.liferay.portal.util.Constants;
10
11
12 /** @author Hibernate CodeGenerator */
13 public class VirtualLinkForm extends ValidatorForm {
14
15     /** identifier field */
16     private long inode;
17
18     /** nullable persistent field */
19     private String JavaDoc title;
20
21     /** nullable persistent field */
22     private String JavaDoc url;
23
24     /** nullable persistent field */
25     private String JavaDoc uri;
26
27     /** nullable persistent field */
28     private boolean active;
29
30     /** nullable persistent field */
31     private long htmlInode;
32    
33     /** nullable persistent field */
34     private long hostId;
35
36     /** default constructor */
37     public VirtualLinkForm() {
38         active = true;
39         htmlInode = 0;
40     }
41     
42     public ActionErrors validate(ActionMapping mapping, HttpServletRequest JavaDoc request) {
43         if(request.getParameter("cmd")!=null && request.getParameter("cmd").equals(Constants.ADD)) {
44             return super.validate(mapping, request);
45         }
46         return null;
47     }
48     
49     /**
50      * @return Returns the active.
51      */

52     public boolean isActive() {
53         return active;
54     }
55     /**
56      * @param active The active to set.
57      */

58     public void setActive(boolean active) {
59         this.active = active;
60     }
61     /**
62      * @return Returns the inode.
63      */

64     public long getInode() {
65         return inode;
66     }
67     /**
68      * @param inode The inode to set.
69      */

70     public void setInode(long inode) {
71         this.inode = inode;
72     }
73     /**
74      * @return Returns the uri.
75      */

76     public String JavaDoc getUri() {
77         return uri;
78     }
79     /**
80      * @param uri The uri to set.
81      */

82     public void setUri(String JavaDoc uri) {
83         this.uri = uri;
84     }
85     /**
86      * @return Returns the url.
87      */

88     public String JavaDoc getUrl() {
89         return url;
90     }
91     /**
92      * @param url The url to set.
93      */

94     public void setUrl(String JavaDoc url) {
95         this.url = url;
96     }
97     
98     /**
99      * @return Returns the htmlInode.
100      */

101     public long getHtmlInode() {
102         return htmlInode;
103     }
104     /**
105      * @param htmlInode The htmlInode to set.
106      */

107     public void setHtmlInode(long htmlInode) {
108         this.htmlInode = htmlInode;
109     }
110     /**
111      * @return Returns the title.
112      */

113     public String JavaDoc getTitle() {
114         return title;
115     }
116     /**
117      * @param title The title to set.
118      */

119     public void setTitle(String JavaDoc title) {
120         this.title = title;
121     }
122     
123     public long getHostId() {
124         return hostId;
125     }
126     public void setHostId(long hostId) {
127         this.hostId = hostId;
128     }
129 }
130
Popular Tags