KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > infoglue > cms > entities > management > RegistryVO


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.management;
25
26 import org.infoglue.cms.entities.kernel.BaseEntityVO;
27 import org.infoglue.cms.util.ConstraintExceptionBuffer;
28
29 public class RegistryVO implements BaseEntityVO
30 {
31     public final static Integer JavaDoc INLINE_LINK = new Integer JavaDoc(0);
32     public final static Integer JavaDoc INLINE_ASSET = new Integer JavaDoc(1);
33     public final static Integer JavaDoc PAGE_COMPONENT = new Integer JavaDoc(2);
34     public final static Integer JavaDoc PAGE_COMPONENT_BINDING = new Integer JavaDoc(3);
35     public final static Integer JavaDoc PAGE_BINDING = new Integer JavaDoc(4);
36     public final static Integer JavaDoc INLINE_SITE_NODE_RELATION = new Integer JavaDoc(5);
37     public final static Integer JavaDoc INLINE_CONTENT_RELATION = new Integer JavaDoc(6);
38     
39     private Integer JavaDoc registryId;
40     private String JavaDoc entityName;
41     private String JavaDoc entityId;
42     private Integer JavaDoc referenceType;
43     private String JavaDoc referencingEntityName;
44     private String JavaDoc referencingEntityId;
45     private String JavaDoc referencingEntityCompletingName;
46     private String JavaDoc referencingEntityCompletingId;
47         
48     /**
49      * @see org.infoglue.cms.entities.kernel.BaseEntityVO#getId()
50      */

51     
52     public Integer JavaDoc getId()
53     {
54         return getRegistryId();
55     }
56
57     public Integer JavaDoc getRegistryId()
58     {
59         return registryId;
60     }
61     
62     public void setRegistryId(Integer JavaDoc registryId)
63     {
64         this.registryId = registryId;
65     }
66
67     public String JavaDoc getEntityId()
68     {
69         return entityId;
70     }
71     
72     public void setEntityId(String JavaDoc entityId)
73     {
74         this.entityId = entityId;
75     }
76     
77     public String JavaDoc getEntityName()
78     {
79         return entityName;
80     }
81     
82     public void setEntityName(String JavaDoc entityName)
83     {
84         this.entityName = entityName;
85     }
86     
87     public Integer JavaDoc getReferenceType()
88     {
89         return referenceType;
90     }
91     
92     public void setReferenceType(Integer JavaDoc referenceType)
93     {
94         this.referenceType = referenceType;
95     }
96     
97     public String JavaDoc getReferencingEntityId()
98     {
99         return referencingEntityId;
100     }
101     
102     public void setReferencingEntityId(String JavaDoc referencingEntityId)
103     {
104         this.referencingEntityId = referencingEntityId;
105     }
106     
107     public String JavaDoc getReferencingEntityName()
108     {
109         return referencingEntityName;
110     }
111     
112     public void setReferencingEntityName(String JavaDoc referencingEntityName)
113     {
114         this.referencingEntityName = referencingEntityName;
115     }
116
117     public String JavaDoc getReferencingEntityCompletingId()
118     {
119         return referencingEntityCompletingId;
120     }
121
122     public void setReferencingEntityCompletingId(String JavaDoc referencingEntityCompletingId)
123     {
124         this.referencingEntityCompletingId = referencingEntityCompletingId;
125     }
126     
127     public String JavaDoc getReferencingEntityCompletingName()
128     {
129         return referencingEntityCompletingName;
130     }
131     
132     public void setReferencingEntityCompletingName(String JavaDoc referencingEntityCompletingName)
133     {
134         this.referencingEntityCompletingName = referencingEntityCompletingName;
135     }
136
137     public String JavaDoc toString()
138     {
139         return entityName;
140     }
141
142     /**
143      * @see org.infoglue.cms.entities.kernel.BaseEntityVO#validate()
144      */

145     public ConstraintExceptionBuffer validate()
146     {
147         ConstraintExceptionBuffer ceb = new ConstraintExceptionBuffer();
148         
149         return ceb;
150     }
151
152 }
153         
154
Popular Tags