KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > cowsultants > itracker > ejb > client > models > UserPreferencesModel


1 /*
2  * This software was designed and created by Jason Carroll.
3  * Copyright (c) 2002, 2003, 2004 Jason Carroll.
4  * The author can be reached at jcarroll@cowsultants.com
5  * ITracker website: http://www.cowsultants.com
6  * ITracker forums: http://www.cowsultants.com/phpBB/index.php
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it only under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  */

18
19 package cowsultants.itracker.ejb.client.models;
20
21 public class UserPreferencesModel extends GenericModel {
22     private Integer JavaDoc userId;
23     private String JavaDoc userLogin;
24
25     private String JavaDoc userLocale;
26
27     private boolean saveLogin;
28
29     private int numItemsOnIndex;
30     private int numItemsOnIssueList;
31     private boolean showClosedOnIssueList;
32     private String JavaDoc sortColumnOnIssueList;
33     private int hiddenIndexSections;
34
35     private boolean rememberLastSearch;
36
37     public UserPreferencesModel() {
38         userId = new Integer JavaDoc(-1);
39         userLogin = "";
40
41         userLocale = "";
42
43         saveLogin = false;
44
45         numItemsOnIndex = -1;
46         numItemsOnIssueList = -1;
47         showClosedOnIssueList = true;
48         sortColumnOnIssueList = "";
49         hiddenIndexSections = 0;
50
51         rememberLastSearch = true;
52     }
53
54     public Integer JavaDoc getUserId() {
55         return userId;
56     }
57
58     public void setUserId(Integer JavaDoc value) {
59         userId = value;
60     }
61
62     public String JavaDoc getUserLogin() {
63         return userLogin;
64     }
65
66     public void setUserLogin(String JavaDoc value) {
67         userLogin = value;
68     }
69
70     public boolean getSaveLogin() {
71         return saveLogin;
72     }
73
74     public void setSaveLogin(boolean value) {
75         saveLogin = value;
76     }
77
78     public String JavaDoc getUserLocale() {
79         return userLocale;
80     }
81
82     public void setUserLocale(String JavaDoc value) {
83         userLocale = value;
84     }
85
86     public int getNumItemsOnIndex() {
87         return numItemsOnIndex;
88     }
89
90     public void setNumItemsOnIndex(int value) {
91         numItemsOnIndex = value;
92     }
93
94     public int getNumItemsOnIssueList() {
95         return numItemsOnIssueList;
96     }
97
98     public void setNumItemsOnIssueList(int value) {
99         numItemsOnIssueList = value;
100     }
101
102     public boolean getShowClosedOnIssueList() {
103         return showClosedOnIssueList;
104     }
105
106     public void setShowClosedOnIssueList(boolean value) {
107         showClosedOnIssueList = value;
108     }
109
110     public String JavaDoc getSortColumnOnIssueList() {
111         return sortColumnOnIssueList;
112     }
113
114     public void setSortColumnOnIssueList(String JavaDoc value) {
115         sortColumnOnIssueList = value;
116     }
117
118     public int getHiddenIndexSections() {
119         return hiddenIndexSections;
120     }
121
122     public void setHiddenIndexSections(int value) {
123         hiddenIndexSections = value;
124     }
125
126     public boolean getRememberLastSearch() {
127         return rememberLastSearch;
128     }
129
130     public void setRememberLastSearch(boolean value) {
131         rememberLastSearch = value;
132     }
133 }
134
Popular Tags