KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > infoglue > cms > entities > workflow > impl > simple > EventImpl


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.workflow.impl.simple;
25
26 import org.infoglue.cms.entities.kernel.BaseEntityVO;
27 import org.infoglue.cms.entities.workflow.Event;
28 import org.infoglue.cms.entities.workflow.EventVO;
29
30 public class EventImpl implements Event
31 {
32     private EventVO valueObject = new EventVO();
33     private org.infoglue.cms.entities.management.impl.simple.RepositoryImpl repository;
34      
35     public EventVO getValueObject()
36     {
37         return this.valueObject;
38     }
39         
40     public Object JavaDoc getIdAsObject()
41     {
42         return getId();
43     }
44
45     public void setValueObject(EventVO valueObject)
46     {
47         this.valueObject = valueObject;
48     }
49     
50     public java.lang.Integer JavaDoc getEventId()
51     {
52         return this.valueObject.getEventId();
53     }
54             
55     public void setEventId(java.lang.Integer JavaDoc eventId)
56     {
57         this.valueObject.setEventId(eventId);
58     }
59       
60     public java.lang.String JavaDoc getName()
61     {
62         return this.valueObject.getName();
63     }
64             
65     public void setName(java.lang.String JavaDoc name)
66     {
67         this.valueObject.setName(name);
68     }
69
70     public java.lang.String JavaDoc getDescription()
71     {
72         return this.valueObject.getDescription();
73     }
74             
75     public void setDescription(java.lang.String JavaDoc description)
76     {
77         this.valueObject.setDescription(description);
78     }
79
80     public java.lang.String JavaDoc getEntityClass()
81     {
82         return this.valueObject.getEntityClass();
83     }
84             
85     public void setEntityClass(java.lang.String JavaDoc entityClass)
86     {
87         this.valueObject.setEntityClass(entityClass);
88     }
89
90     public java.lang.Integer JavaDoc getEntityId()
91     {
92         return this.valueObject.getEntityId();
93     }
94             
95     public void setEntityId(java.lang.Integer JavaDoc entityId)
96     {
97         this.valueObject.setEntityId(entityId);
98     }
99
100     public java.lang.Integer JavaDoc getTypeId()
101     {
102         return this.valueObject.getTypeId();
103     }
104             
105     public void setTypeId(java.lang.Integer JavaDoc typeId)
106     {
107         this.valueObject.setTypeId(typeId);
108     }
109       
110     public java.util.Date JavaDoc getCreationDateTime()
111     {
112         return this.valueObject.getCreationDateTime();
113     }
114             
115     public void setCreationDateTime(java.util.Date JavaDoc creationDateTime)
116     {
117         this.valueObject.setCreationDateTime(creationDateTime);
118     }
119              
120     public String JavaDoc getCreator()
121     {
122         return this.valueObject.getCreator();
123     }
124             
125     public void setCreator (String JavaDoc creator)
126     {
127         this.valueObject.setCreator(creator);
128     }
129
130     public org.infoglue.cms.entities.management.impl.simple.RepositoryImpl getRepository()
131     {
132         return this.repository;
133     }
134             
135     public void setRepository (org.infoglue.cms.entities.management.impl.simple.RepositoryImpl repository)
136     {
137         this.repository = repository;
138     }
139       
140
141
142     /**
143      * @see org.infoglue.cms.entities.kernel.BaseEntity#getVO()
144      */

145     public BaseEntityVO getVO()
146     {
147         return (BaseEntityVO) getValueObject();
148     }
149
150     /**
151      * @see org.infoglue.cms.entities.kernel.BaseEntity#setVO(BaseEntityVO)
152      */

153     public void setVO(BaseEntityVO valueObject)
154     {
155         setValueObject((EventVO) valueObject);
156     }
157  
158     /**
159      * @see org.infoglue.cms.entities.kernel.BaseEntity#getId()
160      */

161     public Integer JavaDoc getId()
162     {
163         return getEventId();
164     }
165
166   }
167
Popular Tags