Package org.cyclos.entities.users
Class UserAddress
-
- All Implemented Interfaces:
Cloneable,HasNetwork,ProcessableForProxying,IEntity,INamedEntity,IAddress
@Entity public class UserAddress extends GeoLocatedAddress
An address which belongs to a user
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Constructor Summary
Constructors Constructor Description UserAddress()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddContactInfo(ContactInfo contactInfo)AddressContactInfogetContactInfo()Set<ContactInfo>getContactInfos()DategetLastModified()AddressNaturegetNature()NetworkgetNetwork()Returns the network this entity belongs toUsergetUser()booleanisDefaultAddress()booleanisHidden()voidremoveContactInfo(ContactInfo contactInfo)voidsetContactInfo(AddressContactInfo contactInfo)voidsetDefaultAddress(boolean defaultAddress)voidsetHidden(boolean hidden)voidsetLastModified(Date lastModified)voidsetUser(User user)-
Methods inherited from class org.cyclos.entities.users.GeoLocatedAddress
getLocation, getName, isGeocodeFailed, isLocated, setGeocodeFailed, setLocation, setName
-
Methods inherited from class org.cyclos.entities.users.Address
getAddressLine1, getAddressLine2, getBuildingNumber, getCity, getComplement, getCountry, getNeighborhood, getPoBox, getRegion, getStreet, getZip, setAddressLine1, setAddressLine2, setBuildingNumber, setCity, setComplement, setCountry, setNeighborhood, setPoBox, setRegion, setStreet, setZip
-
Methods inherited from class org.cyclos.entities.BaseEntity
getDataTranslationType, getVersion
-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
equals, getId, hashCode, id, ids, isPersistent, isTransient, register, setId, toShortString, toString, uniqueIds, uniqueIds
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.entities.ProcessableForProxying
getProxyClass
-
-
-
-
Method Detail
-
addContactInfo
public boolean addContactInfo(ContactInfo contactInfo)
-
getContactInfo
public AddressContactInfo getContactInfo()
-
getContactInfos
public Set<ContactInfo> getContactInfos()
-
getLastModified
public Date getLastModified()
-
getNature
public AddressNature getNature()
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to
-
getUser
public User getUser()
-
isDefaultAddress
public boolean isDefaultAddress()
-
isHidden
public boolean isHidden()
-
removeContactInfo
public void removeContactInfo(ContactInfo contactInfo)
-
setContactInfo
public void setContactInfo(AddressContactInfo contactInfo)
-
setDefaultAddress
public void setDefaultAddress(boolean defaultAddress)
-
setHidden
public void setHidden(boolean hidden)
-
setLastModified
public void setLastModified(Date lastModified)
-
setUser
public void setUser(User user)
-
-