Package org.bedework.calfacade.svc
Class ScheduleMessage
java.lang.Object
- All Implemented Interfaces:
Serializable,Comparable<ScheduleMessage>,org.bedework.util.logging.Logged
Messages relating to automatic and implicit scheduling. Each message refers
to an event placed in the inbox or outbox.
Inbox messages are inbound and the result of some scheduling activity initiated by another user.
Outbox messages are message to be sent to a remote address, either through iSchedule or some other process like iMip.
- Author:
- Mike Douglass douglm bedework.edu
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bedework.calfacade.base.DumpEntity
DumpEntity.DumpType -
Constructor Summary
ConstructorsConstructorDescriptionConstructorScheduleMessage(boolean inBox, String principalHref, String eventName, String rid) Constructor -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ScheduleMessage that) Comapre this and another objectGet the namebooleangetInBox()getRid()Get the ridintGet the sequenceinthashCode()voidsetEventName(String val) Set the namevoidsetInBox(boolean val) voidsetLastProcessed(String val) voidsetPrincipalHref(String val) voidSet the ridvoidsetSequence(int val) Set the sequencevoidsetTimestamp(String val) toString()voidUpdate last mod fieldsMethods 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
clone, 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
-
Constructor Details
-
ScheduleMessage
public ScheduleMessage()Constructor -
ScheduleMessage
Constructor- Parameters:
inBox- true for inbox eventprincipalHref- principal referenceeventName- namerid- recurrence id
-
-
Method Details
-
setTimestamp
- Parameters:
val- timestamp
-
getTimestamp
- Returns:
- String timestamp
-
setSequence
public void setSequence(int val) Set the sequence- Parameters:
val- sequence number
-
getSequence
public int getSequence()Get the sequence- Returns:
- int the sequence
-
setLastProcessed
- Parameters:
val- last processed
-
getLastProcessed
- Returns:
- String last processed
-
setInBox
public void setInBox(boolean val) - Parameters:
val- inBox flag
-
getInBox
public boolean getInBox()- Returns:
- true for inbox event
-
setPrincipalHref
- Parameters:
val- principal reference
-
getPrincipalHref
- Returns:
- String principal reference
-
setEventName
Set the name- Parameters:
val- String name
-
getEventName
Get the name- Returns:
- String name
-
setRid
Set the rid- Parameters:
val- String rid
-
getRid
Get the rid- Returns:
- String rid
-
updateTimestamp
public void updateTimestamp()Update last mod fields -
compareTo
Comapre this and another object- Specified by:
compareToin interfaceComparable<ScheduleMessage>- Overrides:
compareToin classBwUnversionedDbentity<ScheduleMessage>- Parameters:
that- object to compare.- Returns:
- int -1, 0, 1
-
hashCode
public int hashCode()- Overrides:
hashCodein classBwUnversionedDbentity<ScheduleMessage>
-
toString
-