Package org.cyclos.entities.users
Class Contact
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- org.cyclos.entities.users.Contact
-
- All Implemented Interfaces:
Cloneable,HasNetwork,ProcessableForProxying,EntityWithCustomValues<ContactCustomField,ContactCustomFieldPossibleValueCategory,ContactCustomFieldPossibleValue,ContactCustomFieldValue>,IEntity
@Entity public class Contact extends BaseEntity implements EntityWithCustomValues<ContactCustomField,ContactCustomFieldPossibleValueCategory,ContactCustomFieldPossibleValue,ContactCustomFieldValue>
A contact is a relation between 2 users, generating a contact list. It can have custom fields and custom operations.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Constructor Summary
Constructors Constructor Description Contact()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UsergetContact()Class<ContactCustomField>getCustomFieldClass()Returns custom field the class on this entityClass<ContactCustomFieldValue>getCustomFieldValueClass()Returns the class for storing custom field valuesCollection<ContactCustomFieldValue>getCustomValues()Returns all custom field valuesNetworkgetNetwork()Returns the network this entity belongs toUsergetOwner()voidsetContact(User contact)voidsetCustomValues(Set<ContactCustomFieldValue> customValues)voidsetOwner(User owner)-
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
-
getContact
public User getContact()
-
getCustomFieldClass
public Class<ContactCustomField> getCustomFieldClass()
Description copied from interface:EntityWithCustomValuesReturns custom field the class on this entity
-
getCustomFieldValueClass
public Class<ContactCustomFieldValue> getCustomFieldValueClass()
Description copied from interface:EntityWithCustomValuesReturns the class for storing custom field values
-
getCustomValues
public Collection<ContactCustomFieldValue> getCustomValues()
Description copied from interface:EntityWithCustomValuesReturns all custom field values
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to- Specified by:
getNetworkin interfaceHasNetwork
-
getOwner
public User getOwner()
-
setContact
public void setContact(User contact)
-
setCustomValues
public void setCustomValues(Set<ContactCustomFieldValue> customValues)
-
setOwner
public void setOwner(User owner)
-
-