Package org.bedework.calfacade
Class BwContact
java.lang.Object
- All Implemented Interfaces:
Serializable,Comparable<BwContact>,Comparator<BwContact>,CollatableEntity,OwnedEntity,ShareableEntity,SizedEntity,org.bedework.util.logging.Logged
public class BwContact
extends BwEventProperty<BwContact>
implements CollatableEntity, Comparator<BwContact>, SizedEntity
Class representing rfc contact information. The phone and email is additional
for the web clients.
- Version:
- 1.0
- Author:
- Mike Douglass
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bedework.calfacade.base.DumpEntity
DumpEntity.DumpType -
Field Summary
Fields inherited from class org.bedework.calfacade.BwEventProperty
statusDeleted -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled after delete from the dbclone()Make visibleintintvoidDelete the contact's name - this must be called rather than setting the value to null.getCn()Get the nameGet the value to collate withgetEmail()getLink()getPhone()static org.bedework.util.xml.FromXmlCallbackintgetSize()Size to use for quotas.inthashCode()static BwContactvoidSet the namevoidvoidSet the sponsor's URLvoidvoidtoString()booleanupdateFrom(BwContact ent) Methods inherited from class org.bedework.calfacade.BwEventProperty
copyTo, getColPath, getDeleted, getHref, getScore, getUid, initUid, setScore, setUid, toStringSegmentMethods inherited from class org.bedework.calfacade.base.BwShareableContainedDbentity
copyTo, setColPath, setColPath, shallowCopyToMethods inherited from class org.bedework.calfacade.base.BwShareableDbentity
copyTo, getAccess, getCreatorEnt, getCreatorHref, setAccess, setCreatorEnt, setCreatorHref, shallowCopyToMethods inherited from class org.bedework.calfacade.base.BwOwnedDbentity
copyTo, getOwnerHref, getPublick, setOwnerHref, setPublick, shallowCopyToMethods inherited from class org.bedework.calfacade.base.BwDbentity
addDeletedEntity, beforeDeletion, beforeSave, beforeUpdate, getByteSize, getDeletedEntities, getSeq, length, setByteSize, setSeqMethods inherited from class org.bedework.calfacade.base.BwUnversionedDbentity
equals, getId, markUnsaved, setHref, setId, unsavedMethods inherited from class org.bedework.calfacade.base.DumpEntity
dump, dump, getLogger, hasDumpValueMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongMethods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, trace, warnMethods inherited from interface org.bedework.calfacade.base.OwnedEntity
getOwnerHref, getPublick, setOwnerHref, setPublick
-
Constructor Details
-
BwContact
public BwContact()Constructor
-
-
Method Details
-
setCn
Set the name- Parameters:
val- BwString name
-
getCn
Get the name- Returns:
- BwString name
-
setPhone
- Parameters:
val- phone number
-
getPhone
- Returns:
- String phone number
-
setEmail
- Parameters:
val- email
-
getEmail
- Returns:
- String email
-
setLink
Set the sponsor's URL- Parameters:
link- String URL
-
getLink
- Returns:
- String url
-
makeContact
- Returns:
- contact with uid filled in.
-
deleteName
public void deleteName()Delete the contact's name - this must be called rather than setting the value to null. -
setStatus
-
getStatus
- Specified by:
getStatusin classBwEventProperty<BwContact>- Returns:
- String
-
getFinderKeyValue
- Specified by:
getFinderKeyValuein classBwEventProperty<BwContact>- Returns:
- Finder Key value from this object.
-
getCollateValue
Description copied from interface:CollatableEntityGet the value to collate with- Specified by:
getCollateValuein interfaceCollatableEntity- Returns:
- String collation value
-
afterDeletion
public void afterDeletion()Description copied from class:BwDbentityCalled after delete from the db- Overrides:
afterDeletionin classBwDbentity<BwContact>
-
getSize
public int getSize()Size to use for quotas.- Specified by:
getSizein interfaceSizedEntity- Returns:
- int
-
updateFrom
-
getRestoreCallback
public static org.bedework.util.xml.FromXmlCallback getRestoreCallback() -
compare
- Specified by:
comparein interfaceComparator<BwContact>
-
compareTo
- Specified by:
compareToin interfaceComparable<BwContact>- Overrides:
compareToin classBwUnversionedDbentity<BwContact>
-
hashCode
public int hashCode()- Overrides:
hashCodein classBwUnversionedDbentity<BwContact>
-
toString
-
clone
Description copied from class:BwUnversionedDbentityMake visible- Overrides:
clonein classBwUnversionedDbentity<BwContact>- Returns:
- Object of class T
-