KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > infoglue > cms > entities > publishing > PublicationDetailVO


1 /* ===============================================================================
2  *
3  * Part of the InfoGlue Content Management Platform (www.infoglue.org)
4  *
5  * ===============================================================================
6  *
7  * Copyright (C)
8  *
9  * This program is free software; you can redistribute it and/or modify it under
10  * the terms of the GNU General Public License version 2, as published by the
11  * Free Software Foundation. See the file LICENSE.html for more information.
12  *
13  * This program is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY, including the implied warranty of MERCHANTABILITY or FITNESS
15  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along with
18  * this program; if not, write to the Free Software Foundation, Inc. / 59 Temple
19  * Place, Suite 330 / Boston, MA 02111-1307 / USA.
20  *
21  * ===============================================================================
22  */

23
24 package org.infoglue.cms.entities.publishing;
25
26 import org.infoglue.cms.entities.kernel.BaseEntityVO;
27 import org.infoglue.cms.util.ConstraintExceptionBuffer;
28 import org.infoglue.cms.util.DateHelper;
29
30 public class PublicationDetailVO implements BaseEntityVO
31 {
32     public static final Integer JavaDoc UNDEFINED = new Integer JavaDoc(0);
33     public static final Integer JavaDoc PUBLISH = new Integer JavaDoc(1);
34     public static final Integer JavaDoc PUBLISH_DENIED = new Integer JavaDoc(2);
35     public static final Integer JavaDoc UNPUBLISH_LATEST = new Integer JavaDoc(3);
36     public static final Integer JavaDoc UNPUBLISH_DENIED = new Integer JavaDoc(4);
37     
38     
39     private java.lang.Integer JavaDoc publicationDetailId;
40     private java.lang.String JavaDoc name = "";
41     private java.lang.String JavaDoc description = "";
42     private java.lang.String JavaDoc entityClass = "";
43     private java.lang.Integer JavaDoc entityId = null;
44     private java.util.Date JavaDoc creationDateTime = DateHelper.getSecondPreciseDate();
45     private java.lang.Integer JavaDoc typeId = UNDEFINED;
46     private String JavaDoc creator = null;
47       
48     /**
49      * The constructor for the object. Empty now.
50      */

51         
52     public PublicationDetailVO()
53     {
54     }
55         
56     public java.lang.Integer JavaDoc getPublicationDetailId()
57     {
58         return this.publicationDetailId;
59     }
60     
61     public void setPublicationDetailId(java.lang.Integer JavaDoc publicationDetailId)
62     {
63         this.publicationDetailId = publicationDetailId;
64     }
65     
66     public java.lang.String JavaDoc getName()
67     {
68         return this.name;
69     }
70                 
71     public void setName(java.lang.String JavaDoc name)
72     {
73         this.name = name;
74     }
75
76     public java.lang.String JavaDoc getDescription()
77     {
78         return this.description;
79     }
80                 
81     public void setDescription(java.lang.String JavaDoc description)
82     {
83         this.description = description;
84     }
85
86     public java.lang.String JavaDoc getEntityClass()
87     {
88         return this.entityClass;
89     }
90             
91     public void setEntityClass(java.lang.String JavaDoc entityClass)
92     {
93         this.entityClass = entityClass;
94     }
95
96     public java.lang.Integer JavaDoc getEntityId()
97     {
98         return entityId;
99     }
100             
101     public void setEntityId(java.lang.Integer JavaDoc entityId)
102     {
103         this.entityId = entityId;
104     }
105     
106     public java.lang.Integer JavaDoc getTypeId()
107     {
108         return this.typeId;
109     }
110     
111     public void setTypeId(java.lang.Integer JavaDoc typeId)
112     {
113         this.typeId = typeId;
114     }
115     
116     public java.util.Date JavaDoc getCreationDateTime()
117     {
118         return this.creationDateTime;
119     }
120                 
121     public void setCreationDateTime(java.util.Date JavaDoc creationDateTime)
122     {
123         this.creationDateTime = creationDateTime;
124     }
125     
126     public String JavaDoc getCreator()
127     {
128         return this.creator;
129     }
130
131     public void setCreator(String JavaDoc creator)
132     {
133         this.creator = creator;
134     }
135                     
136
137     /**
138      * @see org.infoglue.cms.entities.kernel.BaseEntityVO#getId()
139      */

140     public Integer JavaDoc getId()
141     {
142         return getPublicationDetailId();
143     }
144
145     
146     /**
147      * @see org.infoglue.cms.entities.kernel.BaseEntityVO#validate()
148      */

149     public ConstraintExceptionBuffer validate()
150     {
151         ConstraintExceptionBuffer ceb = new ConstraintExceptionBuffer();
152         
153         return ceb;
154     }
155
156
157 }
158         
159
Popular Tags