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.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 digitalAssets; 40 41 public Integer getId() 42 { 43 return this.getRolePropertiesId(); 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 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 getRolePropertiesId() 77 { 78 return this.valueObject.getRolePropertiesId(); 79 } 80 81 public void setRolePropertiesId(java.lang.Integer rolePropertiesId) 82 { 83 this.valueObject.setRolePropertiesId(rolePropertiesId); 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 getRoleName() 97 { 98 return this.valueObject.getRoleName(); 99 } 100 101 public void setRoleName(String 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 getDigitalAssets() 133 { 134 return digitalAssets; 135 } 136 137 public void setDigitalAssets(Collection digitalAssets) 138 { 139 this.digitalAssets = digitalAssets; 140 } 141 } 142 | Popular Tags |