it.sistematica.isharedoc.model.isddp
Class Contact

java.lang.Object
  extended by it.sistematica.isharedoc.model.isddp.Contact
All Implemented Interfaces:
it.neverworks.application.data.tracking.Loggable, it.neverworks.application.model.CreationAuditable, it.neverworks.application.model.ModificationAuditable, PartitionAttribute, java.io.Serializable

public class Contact
extends java.lang.Object
implements java.io.Serializable, it.neverworks.application.model.ModificationAuditable, PartitionAttribute, it.neverworks.application.data.tracking.Loggable

See Also:
Serialized Form

Field Summary
protected  AddressBook addressBook
           
protected  java.util.List<ContactAttribute> attributes
           
protected  java.lang.Boolean company
           
protected  java.lang.String companyName
           
protected  java.util.Date created
           
protected  it.neverworks.security.User createdBy
           
protected  java.lang.String deprecatedEmail
          Deprecated. 
protected  java.lang.String externalId
           
protected  java.lang.String firstName
           
protected  java.lang.Long id
           
protected  java.lang.String lastName
           
protected  java.util.List<LocationAttribute> locations
           
protected  java.util.Date modified
           
protected  it.neverworks.security.User modifiedBy
           
protected  java.lang.String note
           
protected  Partition partition
           
protected  java.lang.String tags
           
 
Constructor Summary
Contact()
           
 
Method Summary
 void addAttribute(ContactAttribute attribute)
           
 void addLocation(LocationAttribute location)
           
 void createContact()
           
 boolean equals(java.lang.Object obj)
           
 AddressBook getAddressBook()
           
 java.util.List<ContactAttribute> getAttributes()
           
 java.lang.Boolean getCompany()
           
 java.lang.String getCompanyName()
           
 java.util.Date getCreated()
           
 it.neverworks.security.User getCreatedBy()
           
 java.lang.String getDefaultEmail()
           
 LocationAttribute getDefaultLocation(java.lang.Class clazz)
           
 java.lang.Boolean getDeleted()
           
 java.lang.String getDeprecatedEmail()
          Deprecated. 
 java.lang.String getExternalId()
           
 java.lang.String getFirstName()
           
 java.lang.String getFullEmailName()
           
 java.lang.String getFullEmailName(boolean onlyValidEmail)
           
 java.lang.String getFullName()
           
 java.lang.String getFullNameOrCompanyName()
           
 java.lang.Long getId()
           
 java.lang.String getLastName()
           
 java.util.List<LocationAttribute> getLocations()
           
 java.util.List<LocationAttribute> getLocationsOfClass(java.lang.Class clazz)
           
 java.util.Date getModified()
           
 it.neverworks.security.User getModifiedBy()
           
 java.lang.String getNote()
           
 Partition getPartition()
           
 java.lang.String getTags()
           
 int hashCode()
           
 void recalculate()
           
 void removeAttribute(ContactAttribute attribute)
           
 void removeLocation(LocationAttribute location)
           
 void saveContact()
           
 void setAddressBook(AddressBook addressBook)
           
 void setAttributes(java.util.List<ContactAttribute> attributes)
           
 void setCompany(java.lang.Boolean company)
           
 void setCompanyName(java.lang.String companyName)
           
 void setCreated(java.util.Date created)
           
 void setCreatedBy(it.neverworks.security.User createdBy)
           
 void setDeleted(java.lang.Boolean deleted)
           
 void setDeprecatedEmail(java.lang.String deprecatedEmail)
          Deprecated. 
 void setExternalId(java.lang.String externalId)
           
 void setFirstName(java.lang.String firstName)
           
 void setId(java.lang.Long id)
           
 void setLastName(java.lang.String lastName)
           
 void setLocations(java.util.List<LocationAttribute> locations)
           
 void setModified(java.util.Date modified)
           
 void setModifiedBy(it.neverworks.security.User modifiedBy)
           
 void setNote(java.lang.String note)
           
 void setPartition(Partition partition)
           
 void setTags(java.lang.String tags)
           
 it.neverworks.application.data.tracking.Log toLog()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected java.lang.Long id

created

protected java.util.Date created

createdBy

protected it.neverworks.security.User createdBy

modified

protected java.util.Date modified

modifiedBy

protected it.neverworks.security.User modifiedBy

partition

protected Partition partition

addressBook

protected AddressBook addressBook

company

protected java.lang.Boolean company

companyName

protected java.lang.String companyName

firstName

protected java.lang.String firstName

lastName

protected java.lang.String lastName

deprecatedEmail

@Deprecated
protected java.lang.String deprecatedEmail
Deprecated. 

note

protected java.lang.String note

tags

protected java.lang.String tags

externalId

protected java.lang.String externalId

locations

protected java.util.List<LocationAttribute> locations

attributes

protected java.util.List<ContactAttribute> attributes
Constructor Detail

Contact

public Contact()
Method Detail

toLog

public it.neverworks.application.data.tracking.Log toLog()
Specified by:
toLog in interface it.neverworks.application.data.tracking.Loggable

getId

public java.lang.Long getId()

setId

public void setId(java.lang.Long id)

getCreated

public java.util.Date getCreated()
Specified by:
getCreated in interface it.neverworks.application.model.CreationAuditable

setCreated

public void setCreated(java.util.Date created)
Specified by:
setCreated in interface it.neverworks.application.model.CreationAuditable

getCreatedBy

public it.neverworks.security.User getCreatedBy()
Specified by:
getCreatedBy in interface it.neverworks.application.model.CreationAuditable

setCreatedBy

public void setCreatedBy(it.neverworks.security.User createdBy)
Specified by:
setCreatedBy in interface it.neverworks.application.model.CreationAuditable

getModified

public java.util.Date getModified()
Specified by:
getModified in interface it.neverworks.application.model.ModificationAuditable

setModified

public void setModified(java.util.Date modified)
Specified by:
setModified in interface it.neverworks.application.model.ModificationAuditable

getModifiedBy

public it.neverworks.security.User getModifiedBy()
Specified by:
getModifiedBy in interface it.neverworks.application.model.ModificationAuditable

setModifiedBy

public void setModifiedBy(it.neverworks.security.User modifiedBy)
Specified by:
setModifiedBy in interface it.neverworks.application.model.ModificationAuditable

getPartition

public Partition getPartition()
Specified by:
getPartition in interface PartitionAttribute

setPartition

public void setPartition(Partition partition)
Specified by:
setPartition in interface PartitionAttribute

getAddressBook

public AddressBook getAddressBook()

setAddressBook

public void setAddressBook(AddressBook addressBook)

getCompany

public java.lang.Boolean getCompany()

setCompany

public void setCompany(java.lang.Boolean company)

getCompanyName

public java.lang.String getCompanyName()

setCompanyName

public void setCompanyName(java.lang.String companyName)

getFirstName

public java.lang.String getFirstName()

setFirstName

public void setFirstName(java.lang.String firstName)

getLastName

public java.lang.String getLastName()

setLastName

public void setLastName(java.lang.String lastName)

getNote

public java.lang.String getNote()

setNote

public void setNote(java.lang.String note)

getExternalId

public java.lang.String getExternalId()

setExternalId

public void setExternalId(java.lang.String externalId)

getDeprecatedEmail

@Deprecated
public java.lang.String getDeprecatedEmail()
Deprecated. 


setDeprecatedEmail

@Deprecated
public void setDeprecatedEmail(java.lang.String deprecatedEmail)
Deprecated. 


getDefaultEmail

public java.lang.String getDefaultEmail()

getDefaultLocation

public LocationAttribute getDefaultLocation(java.lang.Class clazz)

getLocations

public java.util.List<LocationAttribute> getLocations()

getLocationsOfClass

public java.util.List<LocationAttribute> getLocationsOfClass(java.lang.Class clazz)

setLocations

public void setLocations(java.util.List<LocationAttribute> locations)

addLocation

public void addLocation(LocationAttribute location)

removeLocation

public void removeLocation(LocationAttribute location)

getAttributes

public java.util.List<ContactAttribute> getAttributes()

setAttributes

public void setAttributes(java.util.List<ContactAttribute> attributes)

addAttribute

public void addAttribute(ContactAttribute attribute)

removeAttribute

public void removeAttribute(ContactAttribute attribute)

getFullNameOrCompanyName

public java.lang.String getFullNameOrCompanyName()

getFullName

public java.lang.String getFullName()

getFullEmailName

public java.lang.String getFullEmailName()

getFullEmailName

public java.lang.String getFullEmailName(boolean onlyValidEmail)

getTags

public java.lang.String getTags()

setTags

public void setTags(java.lang.String tags)

getDeleted

public java.lang.Boolean getDeleted()

setDeleted

public void setDeleted(java.lang.Boolean deleted)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

createContact

public void createContact()

saveContact

public void saveContact()

recalculate

public void recalculate()