Package org.cyclos.entities.users
Class BaseContactInfo
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- org.cyclos.entities.NamedEntity
-
- org.cyclos.entities.users.BaseContactInfo
-
- All Implemented Interfaces:
Cloneable,Comparable<NamedEntity>,HasNetwork,ProcessableForProxying,EntityWithCustomValues<ContactInfoField,ContactInfoFieldPossibleValueCategory,ContactInfoFieldPossibleValue,ContactInfoFieldValue>,IEntity,INamedEntity,IContactInfo
- Direct Known Subclasses:
AddressContactInfo,ContactInfo
@Entity public abstract class BaseContactInfo extends NamedEntity implements IContactInfo, EntityWithCustomValues<ContactInfoField,ContactInfoFieldPossibleValueCategory,ContactInfoFieldPossibleValue,ContactInfoFieldValue>
Stores contact information
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Constructor Summary
Constructors Constructor Description BaseContactInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserAddressgetAddress()Class<ContactInfoField>getCustomFieldClass()Returns custom field the class on this entityClass<ContactInfoFieldValue>getCustomFieldValueClass()Returns the class for storing custom field valuesCollection<ContactInfoFieldValue>getCustomValues()Returns all custom field valuesStringgetEmail()StringgetLandLineExtension()StringgetLandLinePhone()StringgetMobilePhone()NetworkgetNetwork()Returns the network this entity belongs toUsergetUser()voidsetAddress(UserAddress address)voidsetCustomValues(Set<ContactInfoFieldValue> customValues)voidsetEmail(String email)voidsetLandLineExtension(String landLineExtension)voidsetLandLinePhone(String landLinePhone)voidsetMobilePhone(String mobilePhone)voidsetUser(User user)-
Methods inherited from class org.cyclos.entities.NamedEntity
compareTo, getName, getNames, setName, toShortString, toString
-
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, 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
-
getAddress
public UserAddress getAddress()
-
getCustomFieldClass
public Class<ContactInfoField> getCustomFieldClass()
Description copied from interface:EntityWithCustomValuesReturns custom field the class on this entity- Specified by:
getCustomFieldClassin interfaceEntityWithCustomValues<ContactInfoField,ContactInfoFieldPossibleValueCategory,ContactInfoFieldPossibleValue,ContactInfoFieldValue>
-
getCustomFieldValueClass
public Class<ContactInfoFieldValue> getCustomFieldValueClass()
Description copied from interface:EntityWithCustomValuesReturns the class for storing custom field values
-
getCustomValues
public Collection<ContactInfoFieldValue> getCustomValues()
Description copied from interface:EntityWithCustomValuesReturns all custom field values- Specified by:
getCustomValuesin interfaceEntityWithCustomValues<ContactInfoField,ContactInfoFieldPossibleValueCategory,ContactInfoFieldPossibleValue,ContactInfoFieldValue>
-
getEmail
public String getEmail()
- Specified by:
getEmailin interfaceIContactInfo
-
getLandLineExtension
public String getLandLineExtension()
- Specified by:
getLandLineExtensionin interfaceIContactInfo
-
getLandLinePhone
public String getLandLinePhone()
- Specified by:
getLandLinePhonein interfaceIContactInfo
-
getMobilePhone
public String getMobilePhone()
- Specified by:
getMobilePhonein interfaceIContactInfo
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to- Specified by:
getNetworkin interfaceHasNetwork
-
getUser
public User getUser()
-
setAddress
public void setAddress(UserAddress address)
-
setCustomValues
public void setCustomValues(Set<ContactInfoFieldValue> customValues)
-
setEmail
public void setEmail(String email)
- Specified by:
setEmailin interfaceIContactInfo
-
setLandLineExtension
public void setLandLineExtension(String landLineExtension)
- Specified by:
setLandLineExtensionin interfaceIContactInfo
-
setLandLinePhone
public void setLandLinePhone(String landLinePhone)
- Specified by:
setLandLinePhonein interfaceIContactInfo
-
setMobilePhone
public void setMobilePhone(String mobilePhone)
- Specified by:
setMobilePhonein interfaceIContactInfo
-
setUser
public void setUser(User user)
-
-