KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > geinuke > vo > ModuleDBVO


1
2  /*
3  -- GeiNuke --
4 Copyright (c) 2005 by Roberto Sidoti [geinuke@users.sourceforge.net]
5  http://www.hostingjava.it/-geinuke/
6
7 This file is part of GeiNuke.
8
9     GeiNuke is free software; you can redistribute it and/or modify
10     it under the terms of the GNU General Public License as published by
11     the Free Software Foundation; either version 2 of the License, or
12     (at your option) any later version.
13
14     GeiNuke is distributed in the hope that it will be useful,
15     but WITHOUT ANY WARRANTY; without even the implied warranty of
16     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17     GNU General Public License for more details.
18
19     You should have received a copy of the GNU General Public License
20     along with GeiNuke; if not, write to the Free Software
21     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 */

23 package com.geinuke.vo;
24
25 import java.io.Serializable JavaDoc;
26
27
28 public class ModuleDBVO implements Serializable JavaDoc{
29     public static final String JavaDoc LINK_MODULE="LINKModuleXYZ";
30     protected int id=0;
31     protected int roleLevel=0;
32     protected String JavaDoc path=null;
33     protected String JavaDoc name=null;
34     protected String JavaDoc title=null;
35     protected String JavaDoc des=null;
36     protected int width=0;
37     protected int pos=0;
38     protected int weight=0;
39     protected boolean active=false;
40     protected boolean inMenu=false;
41     protected int homePosition=-1;
42     protected boolean dbStored=false;
43     protected int skin=0;
44     protected String JavaDoc content="";
45     
46     public int getId() {
47         
48         return this.id;
49     }
50
51     public String JavaDoc getPath() {
52         
53         return this.path;
54     }
55
56     
57     public void setPath(String JavaDoc tit) {
58         this.path=tit;
59         
60     }
61
62     
63     public String JavaDoc getName() {
64     
65         return this.name;
66     }
67
68     public int getPos() {
69         
70         return this.pos;
71     }
72
73
74     public int getWeight() {
75         
76         return this.weight;
77     }
78
79     public String JavaDoc getDescription() {
80         
81         return this.des;
82     }
83
84     
85     public void setDescription(String JavaDoc des) {
86         this.des = des;
87     }
88     public void setId(int id) {
89         this.id = id;
90     }
91     public void setName(String JavaDoc name) {
92         this.name = name;
93     }
94     public void setPos(int pos) {
95         this.pos = pos;
96     }
97     public void setWeight(int weight) {
98         this.weight = weight;
99     }
100     
101     
102     public int getRoleLevel() {
103         return roleLevel;
104     }
105     public void setRoleLevel(int idRole) {
106         this.roleLevel = idRole;
107     }
108     public boolean isActive() {
109         return active;
110     }
111     public void setActive(boolean active) {
112         this.active = active;
113     }
114     public String JavaDoc getDes() {
115         return des;
116     }
117     public void setDes(String JavaDoc des) {
118         this.des = des;
119     }
120     public int getWidth() {
121         return width;
122     }
123     public void setWidth(int width) {
124         this.width = width;
125     }
126     public String JavaDoc getTitle() {
127         return title;
128     }
129     public void setTitle(String JavaDoc title) {
130         this.title = title;
131     }
132     public boolean isInMenu() {
133         return inMenu;
134     }
135     public void setInMenu(boolean inMenu) {
136         this.inMenu = inMenu;
137     }
138     public int getHomePosition() {
139         return homePosition;
140     }
141     public void setHomePosition(int inHomePosition) {
142         this.homePosition = inHomePosition;
143     }
144     
145     public boolean isLink(){
146         return this.content.startsWith(ModuleDBVO.LINK_MODULE);
147     }
148     
149     public boolean isDbStored() {
150         return dbStored;
151     }
152     public void setDbStored(boolean dbStored) {
153         this.dbStored = dbStored;
154     }
155     public int getSkin() {
156         return skin;
157     }
158     public void setSkin(int skin) {
159         this.skin = skin;
160     }
161     /**
162      * @return Returns the content.
163      */

164     public String JavaDoc getContent() {
165         return content;
166     }
167     /**
168      * @param content The content to set.
169      */

170     public void setContent(String JavaDoc content) {
171         this.content = content;
172     }
173 }
174
175
Popular Tags