Package org.cyclos.model.users.contacts
Class ContactDTO
- java.lang.Object
-
- org.cyclos.model.Bean
-
- org.cyclos.model.EntityModel
-
- org.cyclos.model.EntityDTO
-
- org.cyclos.model.users.contacts.ContactDTO
-
- All Implemented Interfaces:
Serializable,IEntity,ModelWithCustomValues<CustomFieldValueDTO>
public class ContactDTO extends EntityDTO implements ModelWithCustomValues<CustomFieldValueDTO>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLASS_NAMEstatic BasicProperty<UserVO,ContactDTO>CONTACTstatic ListProperty<CustomFieldValueDTO,ContactDTO>CUSTOM_VALUESstatic BasicProperty<UserVO,ContactDTO>OWNER-
Fields inherited from class org.cyclos.model.EntityModel
ID
-
-
Constructor Summary
Constructors Constructor Description ContactDTO()ContactDTO(Long id)ContactDTO(Property<T,? super ContactDTO> property, T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringclassName()protected List<Property<?,?>>doGetProperties()UserVOgetContact()List<CustomFieldValueDTO>getCustomValues()UserVOgetOwner()voidsetContact(UserVO contact)voidsetCustomValues(List<CustomFieldValueDTO> customValues)voidsetOwner(UserVO owner)-
Methods inherited from class org.cyclos.model.EntityDTO
getVersion, isPersistent, isTransient, setVersion
-
Methods inherited from class org.cyclos.model.Bean
addPropertyChangeListener, addPropertyChangeListener, attributeNames, backup, changes, clearAttributes, copyPropertiesTo, copyPropertiesTo, copyPropertiesTo, dataAccessor, firePropertyChange, get, getAttribute, initDataAccessor, properties, property, propertyMap, removeAttribute, removePropertyChangeListener, removePropertyChangeListener, restore, set, set, setAttribute, setWithPropagationId, values
-
-
-
-
Field Detail
-
CLASS_NAME
public static final String CLASS_NAME
-
CONTACT
public static final BasicProperty<UserVO,ContactDTO> CONTACT
-
CUSTOM_VALUES
public static final ListProperty<CustomFieldValueDTO,ContactDTO> CUSTOM_VALUES
-
OWNER
public static final BasicProperty<UserVO,ContactDTO> OWNER
-
-
Constructor Detail
-
ContactDTO
public ContactDTO()
-
ContactDTO
public ContactDTO(Long id)
-
ContactDTO
public ContactDTO(Property<T,? super ContactDTO> property, T value)
-
-
Method Detail
-
doGetProperties
protected List<Property<?,?>> doGetProperties()
- Overrides:
doGetPropertiesin classEntityDTO
-
getContact
public UserVO getContact()
-
setContact
public void setContact(UserVO contact)
-
getCustomValues
public List<CustomFieldValueDTO> getCustomValues()
- Specified by:
getCustomValuesin interfaceModelWithCustomValues<CustomFieldValueDTO>
-
setCustomValues
public void setCustomValues(List<CustomFieldValueDTO> customValues)
- Specified by:
setCustomValuesin interfaceModelWithCustomValues<CustomFieldValueDTO>
-
getOwner
public UserVO getOwner()
-
setOwner
public void setOwner(UserVO owner)
-
-