1 23 24 package org.infoglue.cms.entities.management.impl.simple; 25 26 import java.util.Collection ; 27 28 import org.infoglue.cms.entities.kernel.BaseEntityVO; 29 import org.infoglue.cms.entities.management.ContentTypeDefinition; 30 import org.infoglue.cms.entities.management.GroupProperties; 31 import org.infoglue.cms.entities.management.GroupPropertiesVO; 32 import org.infoglue.cms.entities.management.Language; 33 34 public class GroupPropertiesImpl implements GroupProperties 35 { 36 private GroupPropertiesVO valueObject = new GroupPropertiesVO(); 37 private ContentTypeDefinition contentTypeDefinition; 38 private Language language; 39 private Collection digitalAssets; 40 41 public Integer getId() 42 { 43 return this.getGroupPropertiesId(); 44 } 45 46 public Object getIdAsObject() 47 { 48 return getId(); 49 } 50 51 public String toString() 52 { 53 return this.valueObject.toString(); 54 } 55 56 public GroupPropertiesVO getValueObject() 57 { 58 return this.valueObject; 59 } 60 61 public void setValueObject(GroupPropertiesVO 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((GroupPropertiesVO) valueObject); 74 } 75 76 public java.lang.Integer getGroupPropertiesId() 77 { 78 return this.valueObject.getGroupPropertiesId(); 79 } 80 81 public void setGroupPropertiesId(java.lang.Integer groupPropertiesId) 82 { 83 this.valueObject.setGroupPropertiesId(groupPropertiesId); 84 } 85 86 public String getValue() 87 { 88 return this.valueObject.getValue(); 89 } 90 91 public void setValue(String value) 92 { 93 this.valueObject.setValue(value); 94 } 95 96 public String getGroupName() 97 { 98 return this.valueObject.getGroupName(); 99 } 100 101 public void setGroupName(String groupName) 102 { 103 this.valueObject.setGroupName(groupName); 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 getDigitalAssets() 133 { 134 return digitalAssets; 135 } 136 137 public void setDigitalAssets(Collection digitalAssets) 138 { 139 this.digitalAssets = digitalAssets; 140 } 141 } 142 | Popular Tags |