KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > dotmarketing > cms > product > struts > ProductsForm


1 package com.dotmarketing.cms.product.struts;
2
3 import java.util.List JavaDoc;
4
5 import org.apache.struts.action.ActionForm;
6
7 import com.dotmarketing.portlets.categories.model.Category;
8 import com.dotmarketing.portlets.product.model.Product;
9
10 public class ProductsForm extends ActionForm
11 {
12     private static final long serialVersionUID = 1L;
13     //Fields to search
14
private int categoryInode;
15     private String JavaDoc categoryName;
16     private String JavaDoc orderBy;
17     private int page;
18     private int pageSize;
19     private String JavaDoc direction;
20     private String JavaDoc filter;
21     private long inode;
22     
23     //Fields with return data
24
private List JavaDoc<Product> listProducts;
25     private List JavaDoc<Category> listTypeProducts;
26     
27     public int getCategoryInode() {
28         return categoryInode;
29     }
30
31     public void setCategoryInode(int categoryInode) {
32         this.categoryInode = categoryInode;
33     }
34
35     public String JavaDoc getDirection() {
36         return direction;
37     }
38
39     public void setDirection(String JavaDoc direction) {
40         this.direction = direction;
41     }
42
43     public String JavaDoc getFilter() {
44         return filter;
45     }
46
47     public void setFilter(String JavaDoc filter) {
48         this.filter = filter;
49     }
50
51     public List JavaDoc<Product> getListProducts() {
52         return listProducts;
53     }
54
55     public void setListProducts(List JavaDoc<Product> listProducts) {
56         this.listProducts = listProducts;
57     }
58
59     public String JavaDoc getOrderBy() {
60         return orderBy;
61     }
62
63     public void setOrderBy(String JavaDoc orderBy) {
64         this.orderBy = orderBy;
65     }
66
67     public int getPage() {
68         return page;
69     }
70
71     public void setPage(int page) {
72         this.page = page;
73     }
74
75     public int getPageSize() {
76         return pageSize;
77     }
78
79     public void setPageSize(int pageSize) {
80         this.pageSize = pageSize;
81     }
82
83     public List JavaDoc<Category> getListTypeProducts() {
84         return listTypeProducts;
85     }
86
87     public void setListTypeProducts(List JavaDoc<Category> listTypeProducts) {
88         this.listTypeProducts = listTypeProducts;
89     }
90
91     public long getInode() {
92         return inode;
93     }
94
95     public void setInode(long inode) {
96         this.inode = inode;
97     }
98
99     /**
100      * @return Returns the categoryName.
101      */

102     public String JavaDoc getCategoryName() {
103         return categoryName;
104     }
105
106     /**
107      * @param categoryName The categoryName to set.
108      */

109     public void setCategoryName(String JavaDoc categoryName) {
110         this.categoryName = categoryName;
111     }
112     
113     
114     
115 }
116
Popular Tags