Package org.cyclos.model.users.addresses
Class UserAddressDTO
- java.lang.Object
-
- org.cyclos.model.Bean
-
- org.cyclos.model.EntityModel
-
- org.cyclos.model.EntityDTO
-
- org.cyclos.model.users.addresses.AddressDTO
-
- org.cyclos.model.users.addresses.GeoLocatedAddressDTO
-
- org.cyclos.model.users.addresses.UserAddressDTO
-
- All Implemented Interfaces:
Serializable,IEntity,INamedEntity,IAddress
public class UserAddressDTO extends GeoLocatedAddressDTO
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLASS_NAMEstatic BasicProperty<AddressContactInfoDTO,UserAddressDTO>CONTACT_INFOstatic BasicProperty<Boolean,UserAddressDTO>DEFAULT_ADDRESSstatic BasicProperty<Boolean,UserAddressDTO>HIDDENstatic BasicProperty<UserVO,UserAddressDTO>USER-
Fields inherited from class org.cyclos.model.users.addresses.GeoLocatedAddressDTO
LOCATED, LOCATION, NAME
-
Fields inherited from class org.cyclos.model.users.addresses.AddressDTO
ADDRESS_LINE_1, ADDRESS_LINE_2, BUILDING_NUMBER, CITY, COMPLEMENT, COUNTRY, NEIGHBORHOOD, PO_BOX, REGION, STREET, ZIP
-
Fields inherited from class org.cyclos.model.EntityModel
ID
-
-
Constructor Summary
Constructors Constructor Description UserAddressDTO()UserAddressDTO(Long id)UserAddressDTO(Property<T,? super UserAddressDTO> property, T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringclassName()protected List<Property<?,?>>doGetProperties()AddressContactInfoDTOgetContactInfo()UserVOgetUser()booleanisDefaultAddress()booleanisHidden()voidsetContactInfo(AddressContactInfoDTO contactInfo)voidsetDefaultAddress(boolean defaultAddress)voidsetHidden(boolean hidden)voidsetUser(UserVO user)-
Methods inherited from class org.cyclos.model.users.addresses.GeoLocatedAddressDTO
getLocation, getName, isLocated, setLocated, setLocation, setName
-
Methods inherited from class org.cyclos.model.users.addresses.AddressDTO
getAddressLine1, getAddressLine2, getBuildingNumber, getCity, getComplement, getCountry, getNeighborhood, getPoBox, getRegion, getStreet, getZip, setAddressLine1, setAddressLine2, setBuildingNumber, setCity, setComplement, setCountry, setNeighborhood, setPoBox, setRegion, setStreet, setZip, toString
-
Methods inherited from class org.cyclos.model.EntityDTO
getVersion, isPersistent, isTransient, setVersion
-
Methods inherited from class org.cyclos.model.EntityModel
equals, getId, hashCode, setId
-
Methods inherited from class org.cyclos.model.Bean
addPropertyChangeListener, addPropertyChangeListener, attributeNames, changes, clearAttributes, copyPropertiesTo, dataAccessor, firePropertyChange, get, getAttribute, initDataAccessor, properties, property, propertyMap, removeAttribute, removePropertyChangeListener, removePropertyChangeListener, set, set, setAttribute, setWithPropagationId
-
-
-
-
Field Detail
-
CLASS_NAME
public static final String CLASS_NAME
-
CONTACT_INFO
public static final BasicProperty<AddressContactInfoDTO,UserAddressDTO> CONTACT_INFO
-
DEFAULT_ADDRESS
public static final BasicProperty<Boolean,UserAddressDTO> DEFAULT_ADDRESS
-
HIDDEN
public static final BasicProperty<Boolean,UserAddressDTO> HIDDEN
-
USER
public static final BasicProperty<UserVO,UserAddressDTO> USER
-
-
Constructor Detail
-
UserAddressDTO
public UserAddressDTO()
-
UserAddressDTO
public UserAddressDTO(Long id)
-
UserAddressDTO
public UserAddressDTO(Property<T,? super UserAddressDTO> property, T value)
-
-
Method Detail
-
doGetProperties
protected List<Property<?,?>> doGetProperties()
- Overrides:
doGetPropertiesin classGeoLocatedAddressDTO
-
getContactInfo
public AddressContactInfoDTO getContactInfo()
-
setContactInfo
public void setContactInfo(AddressContactInfoDTO contactInfo)
-
isDefaultAddress
public boolean isDefaultAddress()
-
setDefaultAddress
public void setDefaultAddress(boolean defaultAddress)
-
isHidden
public boolean isHidden()
-
setHidden
public void setHidden(boolean hidden)
-
getUser
public UserVO getUser()
-
setUser
public void setUser(UserVO user)
-
className
public String className()
- Overrides:
classNamein classGeoLocatedAddressDTO
-
-