KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > infoglue > cms > entities > management > impl > simple > RolePropertiesImpl


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.impl.simple;
25
26 import java.util.Collection JavaDoc;
27
28 import org.infoglue.cms.entities.kernel.BaseEntityVO;
29 import org.infoglue.cms.entities.management.ContentTypeDefinition;
30 import org.infoglue.cms.entities.management.Language;
31 import org.infoglue.cms.entities.management.RoleProperties;
32 import org.infoglue.cms.entities.management.RolePropertiesVO;
33
34 public class RolePropertiesImpl implements RoleProperties
35 {
36     private RolePropertiesVO valueObject = new RolePropertiesVO();
37     private ContentTypeDefinition contentTypeDefinition;
38     private Language language;
39     private Collection JavaDoc digitalAssets;
40     
41     public Integer JavaDoc getId()
42     {
43         return this.getRolePropertiesId();
44     }
45
46     public Object JavaDoc getIdAsObject()
47     {
48         return getId();
49     }
50
51     public String JavaDoc toString()
52     {
53         return this.valueObject.toString();
54     }
55
56     public RolePropertiesVO getValueObject()
57     {
58         return this.valueObject;
59     }
60         
61     public void setValueObject(RolePropertiesVO valueObject)
62     {
63         this.valueObject = valueObject;
64     }
65
66     public BaseEntityVO getVO()
67     {
68         return (BaseEntityVO) getValueObject();
69     }
70
71     public void setVO(BaseEntityVO valueObject)
72     {
73         setValueObject((RolePropertiesVO) valueObject);
74     }
75     
76     public java.lang.Integer JavaDoc getRolePropertiesId()
77     {
78         return this.valueObject.getRolePropertiesId();
79     }
80             
81     public void setRolePropertiesId(java.lang.Integer JavaDoc rolePropertiesId)
82     {
83         this.valueObject.setRolePropertiesId(rolePropertiesId);
84     }
85       
86     public String JavaDoc getValue()
87     {
88         return this.valueObject.getValue();
89     }
90
91     public void setValue(String JavaDoc value)
92     {
93         this.valueObject.setValue(value);
94     }
95       
96     public String JavaDoc getRoleName()
97     {
98         return this.valueObject.getRoleName();
99     }
100             
101     public void setRoleName(String JavaDoc roleName)
102     {
103         this.valueObject.setRoleName(roleName);
104     }
105
106     public ContentTypeDefinition getContentTypeDefinition()
107     {
108         return this.contentTypeDefinition;
109     }
110             
111     public void setContentTypeDefinition(ContentTypeDefinition contentTypeDefinition)
112     {
113         if(contentTypeDefinition != null)
114             this.valueObject.setContentTypeDefinitionId(contentTypeDefinition.getContentTypeDefinitionId());
115         
116         this.contentTypeDefinition = contentTypeDefinition;
117     }
118
119     public Language getLanguage()
120     {
121         return this.language;
122     }
123             
124     public void setLanguage(Language language)
125     {
126         if(language != null)
127             this.valueObject.setLanguageId(language.getLanguageId());
128
129         this.language = language;
130     }
131     
132     public Collection JavaDoc getDigitalAssets()
133     {
134         return digitalAssets;
135     }
136     
137     public void setDigitalAssets(Collection JavaDoc digitalAssets)
138     {
139         this.digitalAssets = digitalAssets;
140     }
141 }
142
Popular Tags