Package org.bedework.calfacade
Class BwAttendee
java.lang.Object
- All Implemented Interfaces:
Serializable,Comparable<BwAttendee>,BwCloneable,Differable<BwAttendee>,org.bedework.util.logging.Logged
public class BwAttendee
extends BwDbentity<BwAttendee>
implements BwCloneable, Differable<BwAttendee>
Represent an attendee. An attendee entry is associated with a single event
and gives the participation status of the attendee for that event.
For 3.10 the sentBy column is used to store the stay-informed, response and sent-by parameters. If the first char is not ":" or "\t" it's all sentBy
If it is ":" - it has form
- ":"
- "F" or "T"
- int string value
- ":"
- Remainder is sent-by
Additionally we assumed that the presence of the ":" indicated a voter.
If it starts with "\t" it's using the FieldSplitter
- Author:
- Mike Douglass douglm - rpi.edu
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bedework.calfacade.base.DumpEntity
DumpEntity.DumpType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intThe default type of entitystatic final intCould be a voter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanchangedBy(BwAttendee val) Only true if something changes the status of, or information about, the attendee.booleanchangedBy(BwAttendee val, boolean checkPartStat) Only true if something changes the status of, or information about, the attendee.clone()Make visibleintcompareTo(BwAttendee that) voidcopyTo(BwAttendee val) Copy this objects values into the parameter 1 *booleandiffersFrom(BwAttendee val) Return true if the entity differs in any way.Get the attendeeUrigetCn()Get the cnGet the cuTypeGet the delegatedFromGet the delegatedTogetDir()Get the dirgetEmail()Get the emailGet the languageGet the memberGet the partstatintGet the responsegetRole()Get the rolebooleangetRsvp()Get the rsvpintGet the schedule agentGet the schedule statusGet the sentByGet the sentByintGet the events rfc sequencebooleanintgetType()Get the type - attendee/voterinthashCode()voidsetAttendeeUri(String val) Set the attendeeUrivoidSet the cnvoidSet the cuTypevoidsetDelegatedFrom(String val) Set the delegatedFromvoidsetDelegatedTo(String val) Set the delegatedTovoidSet the dirvoidsetDtstamp(String val) voidSet the email paramvoidsetLanguage(String val) Set the languagevoidSet the membervoidsetPartstat(String val) Set the partstatvoidsetResponse(int val) Set the response - voter onlyvoidSet the rolevoidsetRsvp(boolean val) Set the rsvpvoidsetScheduleAgent(int val) Set the schedule agentvoidsetScheduleStatus(String val) Set the schedule statusvoidSet the sentByvoidsetSentByVal(String val) Set the sentByvoidsetSequence(int val) Set the rfc sequence for this eventvoidsetStayInformed(boolean val) voidsetType(int val) Set the typetoString()Methods inherited from class org.bedework.calfacade.base.BwDbentity
addDeletedEntity, afterDeletion, beforeDeletion, beforeSave, beforeUpdate, getByteSize, getDeletedEntities, getSeq, length, setByteSize, setSeqMethods inherited from class org.bedework.calfacade.base.BwUnversionedDbentity
equals, getHref, getId, markUnsaved, setHref, setId, toStringSegment, 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 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, warn
-
Field Details
-
typeAttendee
public static final int typeAttendeeThe default type of entity- See Also:
-
typeVoter
public static final int typeVoterCould be a voter- See Also:
-
fieldDelimiter
- See Also:
-
-
Constructor Details
-
BwAttendee
public BwAttendee()Constructor
-
-
Method Details
-
setType
public void setType(int val) Set the type- Parameters:
val- the type
-
getType
public int getType()Get the type - attendee/voter- Returns:
- int
-
setCn
Set the cn- Parameters:
val- String cn
-
getCn
Get the cn- Returns:
- String cn
-
setCuType
Set the cuType- Parameters:
val- String cuType
-
getCuType
Get the cuType- Returns:
- String cuType
-
setDelegatedFrom
Set the delegatedFrom- Parameters:
val- String delegatedFrom
-
getDelegatedFrom
Get the delegatedFrom- Returns:
- String delegatedFrom
-
setDelegatedTo
Set the delegatedTo- Parameters:
val- String delegatedTo
-
getDelegatedTo
Get the delegatedTo- Returns:
- String delegatedTo
-
setDir
Set the dir- Parameters:
val- String dir
-
getDir
Get the dir- Returns:
- String dir
-
setLanguage
Set the language- Parameters:
val- String language
-
getLanguage
Get the language- Returns:
- String language
-
setMember
Set the member- Parameters:
val- String member
-
getMember
Get the member- Returns:
- String member
-
setRsvp
public void setRsvp(boolean val) Set the rsvp- Parameters:
val- boolean rsvp
-
getRsvp
public boolean getRsvp()Get the rsvp- Returns:
- boolean rsvp
-
setRole
Set the role- Parameters:
val- String role
-
getRole
Get the role- Returns:
- String role
-
setPartstat
Set the partstat- Parameters:
val- String partstat
-
getPartstat
Get the partstat- Returns:
- String partstat
-
setSentBy
Set the sentBy- Parameters:
val- String sentBy
-
getSentBy
Get the sentBy- Returns:
- String sentBy
-
setEmail
Set the email param- Parameters:
val- String email
-
getEmail
Get the email- Returns:
- String email
-
setSentByVal
Set the sentBy- Parameters:
val- String sentBy
-
getSentByVal
Get the sentBy- Returns:
- String sentBy
-
setAttendeeUri
Set the attendeeUri- Parameters:
val- String attendeeUri
-
getAttendeeUri
Get the attendeeUri- Returns:
- String attendeeUri
-
setSequence
public void setSequence(int val) Set the rfc sequence for this event- Parameters:
val- rfc sequence number
-
getSequence
public int getSequence()Get the events rfc sequence- Returns:
- int the events rfc sequence
-
setDtstamp
- Parameters:
val- the dtstamp
-
getDtstamp
- Returns:
- String datestamp
-
setScheduleAgent
public void setScheduleAgent(int val) Set the schedule agent- Parameters:
val- schedule agent
-
getScheduleAgent
public int getScheduleAgent()Get the schedule agent- Returns:
- int schedule agent
-
setScheduleStatus
Set the schedule status- Parameters:
val- schedule status
-
getScheduleStatus
Get the schedule status- Returns:
- String schedule status
-
setResponse
public void setResponse(int val) Set the response - voter only- Parameters:
val- response for voter
-
getResponse
public int getResponse()Get the response- Returns:
- int
-
setStayInformed
public void setStayInformed(boolean val) - Parameters:
val- true/false for stay-informed
-
getStayInformed
public boolean getStayInformed()- Returns:
- boolean
-
copyTo
Copy this objects values into the parameter 1 *- Parameters:
val- to copy
-
changedBy
Only true if something changes the status of, or information about, the attendee.- Parameters:
val- incoming value- Returns:
- true for significant change
-
changedBy
Only true if something changes the status of, or information about, the attendee.- Parameters:
val- incoming valuecheckPartStat- - true if we check the partstat- Returns:
- true for significant change
-
differsFrom
Description copied from interface:DifferableReturn true if the entity differs in any way.- Specified by:
differsFromin interfaceDifferable<BwAttendee>- Returns:
- boolean
-
hashCode
public int hashCode()- Overrides:
hashCodein classBwUnversionedDbentity<BwAttendee>
-
compareTo
- Specified by:
compareToin interfaceComparable<BwAttendee>- Overrides:
compareToin classBwUnversionedDbentity<BwAttendee>
-
toString
-
clone
Description copied from class:BwUnversionedDbentityMake visible- Specified by:
clonein interfaceBwCloneable- Overrides:
clonein classBwUnversionedDbentity<BwAttendee>- Returns:
- Object of class T
-