Class BwEvent
- All Implemented Interfaces:
Serializable,Comparable<BwEvent>,Comparator<BwEvent>,AlarmsEntity,AttachmentsEntity,AttendeesEntity,CategorisedEntity,CommentedEntity,ConceptEntity,ContactedEntity,DescriptionEntity<BwLongString>,EventEntity,OwnedEntity,RecurrenceEntity,ResourcedEntity,ShareableEntity,StartEndComponent,SummaryEntity,XpropsEntity,org.bedework.util.logging.Logged
- Direct Known Subclasses:
BwEventAnnotation,BwEventNewWrapper,BwEventObj,BwEventProxy
Proxies and annotations are used to create an overridden instance or an annotated event. Pictorially...
***********************
| Proxy | ref | |
***********************
|
| **********************************
+-->| Annnotation | target | |
**********************************
|
| ************************
+-->| Event |
************************
The proxy class checks the annotation for a value and if absent, uses the target - or event - value.
Immutable values cannot be overridden and need to be set in the annotation object. An example is the entity type. These are usually primitive types.
Still incomplete but getting there... annotations are used to describe certain aspects of events to allow the automatic generation of proxy and annotation classes and of conversion classes, to and from ical and xml.
From RFC2445
A "VEVENT" calendar component is defined by the
following notation:
eventc = "BEGIN" ":" "VEVENT" CRLF
eventprop *alarmc
"END" ":" "VEVENT" CRLF
eventprop = *(
; the following are optional,
; but MUST NOT occur more than once
class / created / description / dtstart / geo /
last-mod / location / organizer / priority /
dtstamp / seq / status / summary / transp /
uid / url / recurid /
; either 'dtend' or 'duration' may appear in
; a 'eventprop', but 'dtend' and 'duration'
; MUST NOT occur in the same 'eventprop'
dtend / duration /
; the following are optional,
; and MAY occur more than once
attach / attendee / categories / comment /
contact / exdate / exrule / rstatus / related /
resources / rdate / rrule / x-prop
)
A "VTODO" calendar component is defined by the
following notation:
todoc = "BEGIN" ":" "VTODO" CRLF
todoprop *alarmc
"END" ":" "VTODO" CRLF
todoprop = *(
; the following are optional,
; but MUST NOT occur more than once
class / completed / created / description / dtstamp /
dtstart / geo / last-mod / location / organizer /
percent / priority / recurid / seq / status /
summary / uid / url /
; either 'due' or 'duration' may appear in
; a 'todoprop', but 'due' and 'duration'
; MUST NOT occur in the same 'todoprop'
due / duration /
; the following are optional,
; and MAY occur more than once
attach / attendee / categories / comment / contact /
exdate / exrule / rstatus / related / resources /
rdate / rrule / x-prop
)
A "VJOURNAL" calendar component is defined by the
following notation:
journalc = "BEGIN" ":" "VJOURNAL" CRLF
jourprop
"END" ":" "VJOURNAL" CRLF
jourprop = *(
; the following are optional,
; but MUST NOT occur more than once
class / created / description / dtstart / dtstamp /
last-mod / organizer / recurid / seq / status /
summary / uid / url /
; the following are optional,
; and MAY occur more than once
attach / attendee / categories / comment /
contact / exdate / exrule / related / rdate /
rrule / rstatus / x-prop
)
Properties common to event, todo and journal
attach VEVENT VTODO VJOURNAL n/a n/a VALARM
attendee VEVENT VTODO VJOURNAL VFREEBUSY n/a VALARM
categories VEVENT VTODO VJOURNAL
class VEVENT VTODO VJOURNAL
comment VEVENT VTODO VJOURNAL VFREEBUSY VTIMEZONE
contact VEVENT VTODO VJOURNAL VFREEBUSY
created VEVENT VTODO VJOURNAL
description VEVENT VTODO VJOURNAL n/a n/a VALARM
dtstamp VEVENT VTODO VJOURNAL VFREEBUSY
dtstart VEVENT VTODO VJOURNAL VFREEBUSY VTIMEZONE
exdate VEVENT VTODO VJOURNAL
exrule VEVENT VTODO VJOURNAL
lastModified VEVENT VTODO VJOURNAL n/a VTIMEZONE
organizer VEVENT VTODO VJOURNAL VFREEBUSY
rdate VEVENT VTODO VJOURNAL n/a VTIMEZONE
recurrenceId VEVENT VTODO VJOURNAL n/a VTIMEZONE
relatedTo VEVENT VTODO VJOURNAL
requestStatus VEVENT VTODO VJOURNAL VFREEBUSY
rrule VEVENT VTODO VJOURNAL n/a VTIMEZONE
sequence VEVENT VTODO VJOURNAL
status VEVENT VTODO VJOURNAL
summary VEVENT VTODO VJOURNAL n/a n/a VALARM
uid VEVENT VTODO VJOURNAL VFREEBUSY
url VEVENT VTODO VJOURNAL VFREEBUSY
Properties in one or more of event, todo (all journal fields are in common set)
completed n/a VTODO
dtend VEVENT n/a n/a VFREEBUSY
due n/a VTODO (same as dtend)
duration VEVENT VTODO n/a VFREEBUSY n/a VALARM
geo VEVENT VTODO
location VEVENT VTODO
percentComplete n/a VTODO
priority VEVENT VTODO
resources VEVENT VTODO
transp VEVENT
Alarm only:
action n/a n/a n/a n/a n/a VALARM
repeat n/a n/a n/a n/a n/a VALARM
trigger n/a n/a n/a n/a n/a VALARM
Freebusy only:
freebusy n/a n/a n/a VFREEBUSY
Timezone only:
tzid n/a n/a n/a n/a VTIMEZONE
tzname n/a n/a n/a n/a VTIMEZONE
tzoffsetfrom n/a n/a n/a n/a VTIMEZONE
tzoffsetto n/a n/a n/a n/a VTIMEZONE
tzurl n/a n/a n/a n/a VTIMEZONE
In addition, events and todos may contain alarms.
Optional:
class classification
created created
description description
dtstart dtstart
geo geo
last-mod lastmod
location location
organizer organizerId
priority priority
dtstamp dtstamp
seq sequence
status status
summary summary
transp transparency
uid uid
url link
recurid recurrenceId
One of or neither
dtend dtend
duration duration
Optional and repeatable
alarmc alarms
attach
attendee attendees
categories categories
comment comments
contact sponsor
exdate exdates
exrule exrules
rstatus requestStatus
related
resources resources
rdate rdates
rrule rrules
x-prop
Extra non-rfc fields:
private String cost;
private UserVO creator;
private boolean isPublic;
private CalendarVO calendar;
private RecurrenceVO recurrence;
private char recurrenceStatus = 'N'; // Derived from above
--------------------------------------------------------------------
Peruser data and overrides.
When events are in a shared collection some properties are private to each user with access. These are transparency and alarms. Retrieving transparency is done ona peruser basis. An x-property holds the peruser values. Alarms have an owner so we only return alarms owned by the current user. We also need to be careful not to delete other users alarms on update.
Where it gets really complex is handling recurrences. If a user adds an alarm to an instance, this creates an override specifically for that user.
On update a user will only send the instances they know about. We should preserve all other instances for which they have no peruser data.
The owner peruser data is stored directly in the instance. If the instance only differs in that respect then it is not delivered to others. Rather than attempt to compare it every time, we flag it on creation with a peruser x-property. If any other property is changed then we remove the peruser flag.
- Version:
- 1.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThis enum is used by annotations to index into a String containing T/F characters indication the absence or presence of an override value.static classNested classes/interfaces inherited from class org.bedework.calfacade.base.DumpEntity
DumpEntity.DumpType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intbusy timestatic final inttentative busy timestatic final intunavailable timestatic final String[]Standard values for busyTypestatic final intscheduling message has been sent to external usersstatic final intscheduling message has not been processedstatic final intscheduling message has been processedstatic final StringRfc value for a cancelled meetingstatic final StringRfc value for a completed taskstatic final StringRfc value for a confirmed meetingstatic final StringRfc value for a draft journalstatic final StringRfc value for a final? journalstatic final StringRfc value for an in-process taskstatic final StringNon-Rfc value for a supressed master eventstatic final StringRfc value for an incomplete taskstatic final StringRfc value for a tentative meetingstatic final StringRfc value for an unavailable time-periodFields inherited from interface org.bedework.calfacade.base.StartEndComponent
endTypeDate, endTypeDuration, endTypeNone -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidaddAttendee(BwAttendee val) voidaddAvailableUid(String val) Add as available uidbooleanaddCategory(BwCategory val) voidaddComment(String lang, String val) voidaddComment(BwString val) voidaddContact(BwContact val) voidaddDescription(String lang, String val) voidvoidaddExdate(BwDateTime val) voidvoidAdd a free/busy componentvoidaddPollItem(String val) Add vpoll itemvoidaddRdate(BwDateTime val) voidaddRecipient(String val) voidvoidaddResource(String lang, String val) voidaddResource(BwString val) voidAdd a suggested to value.voidaddSummary(String lang, String val) voidaddSummary(BwString val) voidAdd vpoll votervoidaddXproperty(BwXproperty val) voidassignGuid(String systemId) Assign a guid to this event.intCalculate a value to be used to limit quotas.voidClear all attachmentsvoidWill force updatevoidClear the vpoll itemsvoidClear the vpoll votersclone()Make visibleReturn a clone of the SetReturn a clone of the SetReturn a clone of the SetReturn a clone of the SetReturn a clone of the SetReturn a clone of the SetintintReturn a copy of the SetReturn a copy of the SetReturn a copy of the SetReturn a copy of the SetvoidCopy this objects fields into the parameterfindAttendee(String uri) Find an attendee entry for the given uri (calendar address).findDescription(String lang) findPeruserXprop(String userHref, String name) findSummary(String lang) findXproperty(String name) static intfromBusyTypeString(String val) Get the attendeesGet the attendeesGet the attendeesNOTE: these have the NoProxy annotation as we treat them specially in the proxy until we get a schema update (4.0)Get the uidsintGet the calsuite nameGet the categoriesGet the categoriesgetChangeset(String userHref) Get change set for the event.Get the event's classificationgetColor()Get the event color propertyGet the commentsTransition method - return first contact if any available.Get the contact hrefsGet the contactsgetCost()Get the event's costbooleanGet the event deleted flagGet the descriptionsgetDtend()Get the event's endGet the start time for the entityGet the duration for the entity if an event or todo, or the requested duration for a free/busy object.charget the endType flag for an event or todointbooleanGet the force UTC flagGet the free busy timesgetGeo()Get the event's geogetHref()getLink()Get the event's URLlonggetName()Get the event's name.A todo may have no start/end.intintintintintintintintintintintintGet the organizerNOTE: these have the NoProxy annotation as we treat them specially in the proxy until we get a schema update (4.0)Get the event's originatorGet the overridesReturn any parent objectGet the percentCompletegetPeruserTransparency(String userHref) Get the event's transparencyGet the acceptable poll component types in the reponsebooleanGet the event's poll item idGet the vpoll items (candidates)Get the poll modeGet the poll propertiesGet the winning item idGet the events rfc priorityGet the recipientsGet the recurrence idGet the relatedTo propertyGet the requestStatusGet the resourcesintGet the events scheduleMethodintGet the events scheduleStatebooleanintGet the events rfc sequencebooleanGet the significant change flaggetStag()Get the event's statusSuggested to values.Get the summariesbooleanWe are using the status to suppress master events - these are associated with 'detached' instances.Return all timezone ids this event uses.Get the event tombstoned flag.Get the event's transparencygetUid()Get the uidGet the vpoll items (candidates)getXicalProperties(String val) Find x-properties storing the value of the named ical propertygetXproperties(String val) getXproperty(String name) Get the single valued named propertybooleanhasCategory(BwCategory val) Check the categories for the same entitybooleanhasContact(BwContact val) Check the contacts for the same entitybooleanTrue if we have exdatesbooleanTrue if we have exrulesinthashCode()booleanTrue if we have rdatesbooleanTrue if we have rrulesstatic Stringhex4(int val) static Stringhex4FromNanos(int val) booleaninDateTimeRange(String start, String end) Returns true if the event start and end dates lie within the specified limits.booleanbooleanScheduling assistant?makeConcept(String val) Return a BwDuration populated from the String duration.Return an object holding just enough for free busy calculationbooleanremoveAlarm(BwAlarm val) booleanbooleanremoveAttendee(BwAttendee val) booleanremoveCategory(BwCategory val) booleanremoveComment(BwString val) booleanremoveContact(BwContact val) booleanbooleanremoveRecipient(String val) booleanbooleanremoveResource(BwString val) booleanremoveSummary(BwString val) intremoveXproperties(String val) Remove all instances of the named property.voidbooleanreplaceXproperty(String name, String val) voidSet the attendees SetvoidsetAttachments(Set<BwAttachment> val) Set the attendees SetvoidsetAttendees(Set<BwAttendee> val) Set the attendees SetvoidTrue if this is a valid attendee scheduling object.voidsetAvailableUids(Set<String> val) Set the available uidsvoidsetBusyType(int val) voidsetBusyTypeString(String val) voidsetCalSuite(String val) Set the calsuite namevoidsetCategories(Set<BwCategory> val) Set the categories SetvoidsetCategoryHrefs(Set<String> val) Set list of referenced categoriesvoidsetClassification(String val) Set the event's classificationvoidSet the event color propertyvoidsetComments(Set<BwString> val) Set the comments SetvoidsetCompleted(String val) todo only - UTC time completedvoidsetContact(BwContact val) Transition method - replace Set with single value.voidsetContactHrefs(Set<String> val) Set list of referenced contactsvoidsetContacts(Set<BwContact> val) Set the contacts SetvoidSet the event's costvoidsetCreated(String val) voidSet the change tokenvoidsetDeleted(boolean val) Set the event deleted flagvoidsetDescription(String val) voidsetDescriptions(Set<BwLongString> val) Set the descriptions SetvoidsetDtend(BwDateTime val) Set the end or due date for the entityvoidsetDtstamp(String val) voidsetDtstamps(Timestamp val) Set the dtstamp, lastmod and created if created is not set already.voidsetDtstart(BwDateTime val) Set the start time for the entityvoidsetDuration(String val) Set the duration for the entity if an event or todo, or the requested duration for a free/busy object.voidsetEndType(char val) Set the endType flag for an event or todovoidsetEntityType(int val) Set entity type defined in IcalDefsvoidSet the event's publish URLvoidsetExdates(Set<BwDateTime> val) voidsetExrules(Set<String> val) voidsetForceUTC(boolean val) Set the force UTC flagvoidset the free busy periodsvoidSet the event's geovoidsetLastmod(String val) voidSet the event's URLvoidsetLocation(BwLocation val) voidsetLocationHref(String val) Set href of referenced locationvoidSet the event's namevoidsetNoStart(Boolean val) A todo may have no start/end.voidsetOrganizer(BwOrganizer val) Set the organizervoidTrue if this is a valid organizer scheduling object.voidsetOriginator(String val) Set the event's originatorvoidSet the overrides collectionvoidSet parent objectvoidtodo only - Set the percentCompletesetPeruserTransparency(String userHref, String val) If this is the owner - set the real transparency, otherwise, if it differs add an x-propvoidSet the acceptable poll component types in the reponsevoidsetPollCandidate(boolean val) voidsetPollItemId(Integer val) voidsetPollMode(String val) Set the poll modevoidsetPollProperties(String val) Set the poll propertiesvoidsetPollWinner(Integer val) The poll winnervoidsetPriority(Integer val) Set the rfc priority for this eventvoidsetPublishUrl(String val) Set the event's publish URLvoidsetRdates(Set<BwDateTime> val) voidsetRecipients(Set<String> val) Set the recipients SetvoidsetRecurrenceId(String val) Set the recurrence idvoidsetRecurring(Boolean val) voidsetRelatedTo(BwRelatedTo val) Set the relatedTo propertyvoidSet the requestStatusvoidsetResources(Set<BwString> val) Set the resources SetvoidXXX Wrong - it should be a listvoidsetScheduleMethod(int val) Set the scheduleMethod for this event.voidsetScheduleState(int val) Set the scheduleState for this eventvoidsetSequence(int val) Set the rfc sequence for this eventvoidsetSignificantChange(boolean val) Set the significant change flagvoidvoidSet the event's status - must be one of CONFIRMED, TENTATIVE, or CANCELLEDvoidsetSummaries(Set<BwString> val) Set the summaries SetvoidsetSummary(String val) voidsetSuppressed(boolean val) We are using the status to suppress master events - these are associated with 'detached' instances.voidsetTombstoned(Boolean val) Set the event tombstoned flag.voidsetTransparency(String val) Set the event's transparencyvoidSet the uidvoidsetXproperties(List<BwXproperty> val) Set the x-propsbooleanif (getRecurring() == null) { return false; } return getRecurring();toString()protected voidtoStringSegment(org.bedework.util.misc.ToString ts) Add our stuff to the StringBuildervoidupdateDescriptions(String lang, String val) If description with given lang is present updates the value, otherwise adds it.voidSet the dtstamp for this event.voidSet the last mod for this event.voidupdateStag(Timestamp val) Set the stag for this event.voidupdateSummaries(String lang, String val) If summary with given lang is present updates the value, otherwise adds it.static booleanvalidTransparency(String val) Check for a valid transparency - null is invalidMethods inherited from class org.bedework.calfacade.base.BwShareableContainedDbentity
copyTo, getColPath, 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, afterDeletion, 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, setPublickMethods inherited from interface org.bedework.calfacade.base.XpropsEntity
getXnonskipProperties
-
Field Details
-
statusTentative
Rfc value for a tentative meeting- See Also:
-
statusConfirmed
Rfc value for a confirmed meeting- See Also:
-
statusCancelled
Rfc value for a cancelled meeting- See Also:
-
statusNeedsAction
Rfc value for an incomplete task- See Also:
-
statusComplete
Rfc value for a completed task- See Also:
-
statusInProcess
Rfc value for an in-process task- See Also:
-
statusDraft
Rfc value for a draft journal- See Also:
-
statusFinal
Rfc value for a final? journal- See Also:
-
statusMasterSuppressed
Non-Rfc value for a supressed master event- See Also:
-
scheduleStateNotProcessed
public static final int scheduleStateNotProcessedscheduling message has not been processed(CalDAV) Inbox state on arrival.
- See Also:
-
scheduleStateProcessed
public static final int scheduleStateProcessedscheduling message has been processed(CalDAV) Inbox state after all processing complete
- See Also:
-
scheduleStateExternalDone
public static final int scheduleStateExternalDonescheduling message has been sent to external usersOutbox state after sent to all external recipients. Internal recipients are handled immediately.
- See Also:
-
busyTypeBusy
public static final int busyTypeBusybusy time- See Also:
-
busyTypeBusyTentative
public static final int busyTypeBusyTentativetentative busy time- See Also:
-
busyTypeStrings
Standard values for busyType
-
-
Constructor Details
-
BwEvent
protected BwEvent()Constructor
-
-
Method Details
-
setEntityType
public void setEntityType(int val) Set entity type defined in IcalDefs- Parameters:
val- entity type
-
getEntityType
public int getEntityType()- Returns:
- entity type defined in IcalDefs
-
setName
Set the event's name- Parameters:
val- String event's name
-
getName
Get the event's name.- Returns:
- String event's name
-
setClassification
Set the event's classification- Parameters:
val- String event's description
-
getClassification
Get the event's classification- Returns:
- String event's classification
-
setLink
Set the event's URL- Parameters:
val- string URL
-
getLink
Get the event's URL- Returns:
- the event's URL
-
setPublishUrl
Set the event's publish URL- Parameters:
val- string URL
-
getPublishUrl
- Returns:
- the event's publish URL
-
setGeo
Set the event's geo- Parameters:
val- BwGeo
-
getGeo
Get the event's geo- Returns:
- the event's geo
-
setDeleted
public void setDeleted(boolean val) Set the event deleted flag- Parameters:
val- boolean true if the event is deleted
-
getDeleted
public boolean getDeleted()Get the event deleted flag- Returns:
- boolean true if the event is deleted
-
setTombstoned
Set the event tombstoned flag. This is distinct from the deleted flag which is a user settable flag. This flag indicated the event really is deleted but we want to retain information for synchronization purposes.Unsetting this flag may cause some odd effects
- Parameters:
val- boolean true if the event is tombstoned
-
getTombstoned
Get the event tombstoned flag. This is distinct from the deleted flag which is a user settable flag. This flag indicated the event really is deleted but we want to retain information for synchronization purposes.- Returns:
- boolean true if the event is tombstoned
-
setStatus
Set the event's status - must be one of CONFIRMED, TENTATIVE, or CANCELLED- Parameters:
val- status
-
getStatus
Get the event's status- Returns:
- String event's status
-
setCost
Set the event's cost- Parameters:
val- String event's cost
-
getCost
Get the event's cost- Returns:
- String the event's cost
-
setOrganizer
Set the organizer- Parameters:
val- BwOrganizer organizer
-
getOrganizer
Get the organizer- Returns:
- BwOrganizer the organizer
-
setDtstamp
- Parameters:
val- dtstamp
-
getDtstamp
- Returns:
- String datestamp
-
setLastmod
- Parameters:
val- last modified
-
getLastmod
- Returns:
- String lastmod
-
setCreated
- Parameters:
val- created
-
getCreated
- Returns:
- String created
-
setStag
- Parameters:
val- schedule tag
-
getStag
- Returns:
- String stag
-
setPriority
Set the rfc priority for this event- Parameters:
val- rfc priority number
-
getPriority
Get the events rfc priority- Returns:
- Integer the events rfc priority
-
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
-
setLocation
- Parameters:
val- a BwLocation object
-
getLocation
- Returns:
- BwLocation or null
-
getVlocations
-
setUid
Set the uid- Parameters:
val- String uid
-
getUid
Get the uid- Returns:
- String uid
-
setTransparency
Set the event's transparency- Parameters:
val- String event's transparency
-
getTransparency
Get the event's transparency- Returns:
- String the event's transparency
-
setPercentComplete
todo only - Set the percentComplete- Parameters:
val- percentComplete
-
getPercentComplete
Get the percentComplete- Returns:
- Integer percentComplete
-
setCompleted
todo only - UTC time completed- Parameters:
val- UTC completed time
-
getCompleted
- Returns:
- String completed
-
setScheduleMethod
public void setScheduleMethod(int val) Set the scheduleMethod for this event. Takes methodType values defined in Icalendar- Parameters:
val- scheduleMethod
-
getScheduleMethod
public int getScheduleMethod()Get the events scheduleMethod- Returns:
- int the events scheduleMethod
-
setOriginator
Set the event's originator- Parameters:
val- String event's originator
-
getOriginator
Get the event's originator- Returns:
- String the event's originator
-
setScheduleState
public void setScheduleState(int val) Set the scheduleState for this event- Parameters:
val- scheduleState
-
getScheduleState
public int getScheduleState()Get the events scheduleState- Returns:
- int the events scheduleState
-
setOrganizerSchedulingObject
True if this is a valid organizer scheduling object. (See CalDAV scheduling specification). This can be set false (and will be on copy) to suppress sending of invitations, e.g. for a draft.When the event is added this flag will be set true if the appropriate conditions are satisfied. NOTE: these have the NoProxy annotation as we treat them specially in the proxy until we get a schema update (4.0)
- Parameters:
val- Boolean True if this is a valid organizer scheduling object
-
getOrganizerSchedulingObject
NOTE: these have the NoProxy annotation as we treat them specially in the proxy until we get a schema update (4.0)- Returns:
- Boolean
-
setAttendeeSchedulingObject
True if this is a valid attendee scheduling object. (See CalDAV scheduling specification) NOTE: these have the NoProxy annotation as we treat them specially in the proxy until we get a schema update (4.0)- Parameters:
val- Boolean True if this is a valid attendee scheduling object
-
getAttendeeSchedulingObject
NOTE: these have the NoProxy annotation as we treat them specially in the proxy until we get a schema update (4.0)- Returns:
- Boolean
-
setRelatedTo
Set the relatedTo property- Parameters:
val- BwRelatedTo relatedTo property
-
getRelatedTo
Get the relatedTo property- Returns:
- BwRequestStatus the relatedTo property
-
setXproperties
Description copied from interface:XpropsEntitySet the x-props- Specified by:
setXpropertiesin interfaceXpropsEntity- Parameters:
val- x-properties
-
getXproperties
- Specified by:
getXpropertiesin interfaceXpropsEntity- Returns:
- List
-
getNumXproperties
public int getNumXproperties()- Specified by:
getNumXpropertiesin interfaceXpropsEntity- Returns:
- int
-
getXproperties
- Specified by:
getXpropertiesin interfaceXpropsEntity- Parameters:
val- - name to match- Returns:
- list of matching properties - never null
-
getXicalProperties
Find x-properties storing the value of the named ical property- Specified by:
getXicalPropertiesin interfaceXpropsEntity- Parameters:
val- - name to match- Returns:
- list of matching properties - never null
-
removeXproperties
Remove all instances of the named property.- Specified by:
removeXpropertiesin interfaceXpropsEntity- Parameters:
val- - name to match- Returns:
- number of removed proeprties
-
addXproperty
- Specified by:
addXpropertyin interfaceXpropsEntity- Parameters:
val- an x-prop
-
removeXproperty
- Specified by:
removeXpropertyin interfaceXpropsEntity- Parameters:
val- x-prop to remove
-
cloneXproperty
- Specified by:
cloneXpropertyin interfaceXpropsEntity- Returns:
- List of x-properties
-
getXproperty
Get the single valued named property- Parameters:
name- of x-prop- Returns:
- value
-
findXproperty
- Parameters:
name- of x-prop- Returns:
- first property or null
-
replaceXproperty
- Parameters:
name- of propertyval- its value or null to delete- Returns:
- true if something chnaged
-
setRequestStatuses
Set the requestStatus- Parameters:
val- BwRequestStatus requestStatus
-
getRequestStatuses
Get the requestStatus- Returns:
- Set of BwRequestStatus the requestStatus
-
getNumRequestStatuses
public int getNumRequestStatuses()- Returns:
- int
-
addRequestStatus
- Parameters:
val- request status
-
removeRequestStatus
- Parameters:
val- request status- Returns:
- boolean
-
cloneRequestStatuses
Return a clone of the Set- Returns:
- Set of request status
-
setCtoken
Set the change token- Parameters:
val- change token
-
getCtoken
- Returns:
- the change token
-
setRecurring
- Specified by:
setRecurringin interfaceRecurrenceEntity
-
getRecurring
- Specified by:
getRecurringin interfaceRecurrenceEntity- Returns:
- Boolean true if a recurring event - only relevant for master event.
-
setRecurrenceId
Description copied from interface:RecurrenceEntitySet the recurrence id- Specified by:
setRecurrenceIdin interfaceRecurrenceEntity- Parameters:
val- recurrence id
-
getRecurrenceId
Description copied from interface:RecurrenceEntityGet the recurrence id- Specified by:
getRecurrenceIdin interfaceRecurrenceEntity- Returns:
- the event's recurrence id
-
setRrules
Description copied from interface:RecurrenceEntityXXX Wrong - it should be a list- Specified by:
setRrulesin interfaceRecurrenceEntity
-
getRrules
- Specified by:
getRrulesin interfaceRecurrenceEntity- Returns:
- Set of String
-
setExrules
- Specified by:
setExrulesin interfaceRecurrenceEntity
-
getExrules
- Specified by:
getExrulesin interfaceRecurrenceEntity- Returns:
- Set of String
-
setRdates
- Specified by:
setRdatesin interfaceRecurrenceEntity
-
getRdates
- Specified by:
getRdatesin interfaceRecurrenceEntity- Returns:
- Set of String
-
setExdates
- Specified by:
setExdatesin interfaceRecurrenceEntity
-
getExdates
- Specified by:
getExdatesin interfaceRecurrenceEntity- Returns:
- Set of String
-
isRecurringEntity
public boolean isRecurringEntity()- Specified by:
isRecurringEntityin interfaceRecurrenceEntity- Returns:
- true if there is any recurring element.
-
testRecurring
public boolean testRecurring()Description copied from interface:RecurrenceEntityif (getRecurring() == null) { return false; } return getRecurring();- Specified by:
testRecurringin interfaceRecurrenceEntity- Returns:
- true if this is a recurring entity.
-
hasRrules
public boolean hasRrules()Description copied from interface:RecurrenceEntityTrue if we have rrules- Specified by:
hasRrulesin interfaceRecurrenceEntity- Returns:
- boolean
-
addRrule
- Specified by:
addRrulein interfaceRecurrenceEntity
-
hasExrules
public boolean hasExrules()Description copied from interface:RecurrenceEntityTrue if we have exrules- Specified by:
hasExrulesin interfaceRecurrenceEntity- Returns:
- boolean
-
addExrule
- Specified by:
addExrulein interfaceRecurrenceEntity
-
hasRdates
public boolean hasRdates()Description copied from interface:RecurrenceEntityTrue if we have rdates- Specified by:
hasRdatesin interfaceRecurrenceEntity- Returns:
- boolean
-
addRdate
- Specified by:
addRdatein interfaceRecurrenceEntity
-
hasExdates
public boolean hasExdates()Description copied from interface:RecurrenceEntityTrue if we have exdates- Specified by:
hasExdatesin interfaceRecurrenceEntity- Returns:
- boolean
-
addExdate
- Specified by:
addExdatein interfaceRecurrenceEntity
-
setDtstart
Description copied from interface:StartEndComponentSet the start time for the entity- Specified by:
setDtstartin interfaceStartEndComponent- Parameters:
val- Event's start
-
getDtstart
Description copied from interface:StartEndComponentGet the start time for the entity- Specified by:
getDtstartin interfaceStartEndComponent- Returns:
- The start
-
setDtend
Description copied from interface:StartEndComponentSet the end or due date for the entity- Specified by:
setDtendin interfaceStartEndComponent- Parameters:
val- end
-
getDtend
Description copied from interface:StartEndComponentGet the event's end- Specified by:
getDtendin interfaceStartEndComponent- Returns:
- The event's end
-
setEndType
public void setEndType(char val) Description copied from interface:StartEndComponentSet the endType flag for an event or todo- Specified by:
setEndTypein interfaceStartEndComponent- Parameters:
val- char endType
-
getEndType
public char getEndType()Description copied from interface:StartEndComponentget the endType flag for an event or todo- Specified by:
getEndTypein interfaceStartEndComponent- Returns:
- char end Type
-
setDuration
Description copied from interface:StartEndComponentSet the duration for the entity if an event or todo, or the requested duration for a free/busy object.- Specified by:
setDurationin interfaceStartEndComponent- Parameters:
val- string duration
-
getDuration
Description copied from interface:StartEndComponentGet the duration for the entity if an event or todo, or the requested duration for a free/busy object.- Specified by:
getDurationin interfaceStartEndComponent- Returns:
- the event's duration
-
setEstimatedDuration
Set the event's publish URL- Parameters:
val- string URL
-
getEstimatedDuration
- Returns:
- the event's publish URL
-
setNoStart
Description copied from interface:StartEndComponentA todo may have no start/end. If so it always appears in the current day until completed.- Specified by:
setNoStartin interfaceStartEndComponent
-
getNoStart
Description copied from interface:StartEndComponentA todo may have no start/end. If so it always appears in the current day until completed.- Specified by:
getNoStartin interfaceStartEndComponent- Returns:
- true for no start/end
-
setAlarms
Description copied from interface:AlarmsEntitySet the attendees Set- Specified by:
setAlarmsin interfaceAlarmsEntity- Parameters:
val- Set of alarms
-
getAlarms
Description copied from interface:AlarmsEntityGet the attendees- Specified by:
getAlarmsin interfaceAlarmsEntity- Returns:
- Set alarms list
-
getNumAlarms
public int getNumAlarms()- Specified by:
getNumAlarmsin interfaceAlarmsEntity- Returns:
- int number of alarms.
-
addAlarm
- Specified by:
addAlarmin interfaceAlarmsEntity
-
removeAlarm
- Specified by:
removeAlarmin interfaceAlarmsEntity- Returns:
- boolean true if removed.
-
cloneAlarms
Return a clone of the Set- Specified by:
cloneAlarmsin interfaceAlarmsEntity- Returns:
- Set of BwAlarm
-
setAttachments
Description copied from interface:AttachmentsEntitySet the attendees Set- Specified by:
setAttachmentsin interfaceAttachmentsEntity- Parameters:
val- Set of attachments
-
getAttachments
Description copied from interface:AttachmentsEntityGet the attendees- Specified by:
getAttachmentsin interfaceAttachmentsEntity- Returns:
- Set attachments list
-
getNumAttachments
public int getNumAttachments()- Specified by:
getNumAttachmentsin interfaceAttachmentsEntity- Returns:
- int number of attachments.
-
addAttachment
- Specified by:
addAttachmentin interfaceAttachmentsEntity- Parameters:
val- an attachment
-
removeAttachment
- Specified by:
removeAttachmentin interfaceAttachmentsEntity- Parameters:
val- an attachment- Returns:
- boolean true if removed.
-
copyAttachments
Description copied from interface:AttachmentsEntityReturn a copy of the Set- Specified by:
copyAttachmentsin interfaceAttachmentsEntity- Returns:
- Set of BwAttachment
-
cloneAttachments
Description copied from interface:AttachmentsEntityReturn a clone of the Set- Specified by:
cloneAttachmentsin interfaceAttachmentsEntity- Returns:
- Set of BwAttachment
-
clearAttachments
public void clearAttachments()Description copied from interface:AttachmentsEntityClear all attachments- Specified by:
clearAttachmentsin interfaceAttachmentsEntity
-
setAttendees
Description copied from interface:AttendeesEntitySet the attendees Set- Specified by:
setAttendeesin interfaceAttendeesEntity- Parameters:
val- Set of attendees
-
getAttendees
Description copied from interface:AttendeesEntityGet the attendees- Specified by:
getAttendeesin interfaceAttendeesEntity- Returns:
- Set attendees list
-
getNumAttendees
public int getNumAttendees()- Specified by:
getNumAttendeesin interfaceAttendeesEntity- Returns:
- int number of attendees.
-
addAttendee
- Specified by:
addAttendeein interfaceAttendeesEntity
-
removeAttendee
- Specified by:
removeAttendeein interfaceAttendeesEntity- Returns:
- boolean true if removed.
-
copyAttendees
Description copied from interface:AttendeesEntityReturn a copy of the Set- Specified by:
copyAttendeesin interfaceAttendeesEntity- Returns:
- Set of BwAttendee
-
cloneAttendees
Description copied from interface:AttendeesEntityReturn a clone of the Set- Specified by:
cloneAttendeesin interfaceAttendeesEntity- Returns:
- Set of BwAttendee
-
findAttendee
Find an attendee entry for the given uri (calendar address).- Parameters:
uri- to find- Returns:
- BwAttendee or null if none exists
-
setRecipients
Description copied from interface:AttendeesEntitySet the recipients Set- Specified by:
setRecipientsin interfaceAttendeesEntity- Parameters:
val- Set of (String)recipients
-
getRecipients
Description copied from interface:AttendeesEntityGet the recipients- Specified by:
getRecipientsin interfaceAttendeesEntity- Returns:
- Set recipients set
-
getNumRecipients
public int getNumRecipients()- Specified by:
getNumRecipientsin interfaceAttendeesEntity- Returns:
- int number of recipients.
-
addRecipient
- Specified by:
addRecipientin interfaceAttendeesEntity
-
removeRecipient
- Specified by:
removeRecipientin interfaceAttendeesEntity- Returns:
- boolean true if removed.
-
getConcepts
- Specified by:
getConceptsin interfaceConceptEntity
-
makeConcept
- Specified by:
makeConceptin interfaceConceptEntity
-
setCategories
Description copied from interface:CategorisedEntitySet the categories Set- Specified by:
setCategoriesin interfaceCategorisedEntity- Parameters:
val- Set of categories
-
getCategories
Description copied from interface:CategorisedEntityGet the categories- Specified by:
getCategoriesin interfaceCategorisedEntity- Returns:
- Set of categories
-
getNumCategories
public int getNumCategories()- Specified by:
getNumCategoriesin interfaceCategorisedEntity- Returns:
- int number of categories.
-
addCategory
- Specified by:
addCategoryin interfaceCategorisedEntity- Parameters:
val- the category to add- Returns:
- boolean true if added.
-
removeCategory
- Specified by:
removeCategoryin interfaceCategorisedEntity- Parameters:
val- the category to remove- Returns:
- boolean true if removed.
-
hasCategory
Description copied from interface:CategorisedEntityCheck the categories for the same entity- Specified by:
hasCategoryin interfaceCategorisedEntity- Parameters:
val- Category to test- Returns:
- boolean true if the event has a particular category
-
copyCategories
Description copied from interface:CategorisedEntityReturn a copy of the Set- Specified by:
copyCategoriesin interfaceCategorisedEntity- Returns:
- Set of BwCategory
-
cloneCategories
Description copied from interface:CategorisedEntityReturn a clone of the Set- Specified by:
cloneCategoriesin interfaceCategorisedEntity- Returns:
- Set of BwCategory
-
setComments
Description copied from interface:CommentedEntitySet the comments Set- Specified by:
setCommentsin interfaceCommentedEntity- Parameters:
val- Set of (BwString)comments
-
getComments
Description copied from interface:CommentedEntityGet the comments- Specified by:
getCommentsin interfaceCommentedEntity- Returns:
- Set comments set
-
getNumComments
public int getNumComments()- Specified by:
getNumCommentsin interfaceCommentedEntity- Returns:
- int number of comments.
-
addComment
- Specified by:
addCommentin interfaceCommentedEntity
-
addComment
- Specified by:
addCommentin interfaceCommentedEntity
-
removeComment
- Specified by:
removeCommentin interfaceCommentedEntity- Returns:
- boolean true if removed.
-
setContact
Transition method - replace Set with single value.- Parameters:
val- a contact
-
getContact
Transition method - return first contact if any available.- Returns:
- BwContact
-
setContacts
Description copied from interface:ContactedEntitySet the contacts Set- Specified by:
setContactsin interfaceContactedEntity- Parameters:
val- Set of contacts
-
getContacts
Description copied from interface:ContactedEntityGet the contacts- Specified by:
getContactsin interfaceContactedEntity- Returns:
- Set of contacts
-
getNumContacts
public int getNumContacts()- Specified by:
getNumContactsin interfaceContactedEntity- Returns:
- int number of contacts.
-
addContact
- Specified by:
addContactin interfaceContactedEntity
-
removeContact
- Specified by:
removeContactin interfaceContactedEntity- Returns:
- boolean true if removed.
-
hasContact
Description copied from interface:ContactedEntityCheck the contacts for the same entity- Specified by:
hasContactin interfaceContactedEntity- Parameters:
val- Contact to test- Returns:
- boolean true if the event has a particular contact
-
copyContacts
Description copied from interface:ContactedEntityReturn a copy of the Set- Specified by:
copyContactsin interfaceContactedEntity- Returns:
- Set of BwContact
-
cloneContacts
Description copied from interface:ContactedEntityReturn a clone of the Set- Specified by:
cloneContactsin interfaceContactedEntity- Returns:
- Set of BwContact
-
setDescriptions
Description copied from interface:DescriptionEntitySet the descriptions Set- Specified by:
setDescriptionsin interfaceDescriptionEntity<BwLongString>- Parameters:
val- Set of (BwString)descriptions
-
getDescriptions
Description copied from interface:DescriptionEntityGet the descriptions- Specified by:
getDescriptionsin interfaceDescriptionEntity<BwLongString>- Returns:
- Set descriptions set
-
getNumDescriptions
public int getNumDescriptions()- Specified by:
getNumDescriptionsin interfaceDescriptionEntity<BwLongString>- Returns:
- int number of descriptions.
-
addDescription
- Specified by:
addDescriptionin interfaceDescriptionEntity<BwLongString>
-
addDescription
- Specified by:
addDescriptionin interfaceDescriptionEntity<BwLongString>
-
removeDescription
- Specified by:
removeDescriptionin interfaceDescriptionEntity<BwLongString>- Returns:
- boolean true if removed.
-
updateDescriptions
Description copied from interface:DescriptionEntityIf description with given lang is present updates the value, otherwise adds it.- Specified by:
updateDescriptionsin interfaceDescriptionEntity<BwLongString>
-
findDescription
- Specified by:
findDescriptionin interfaceDescriptionEntity<BwLongString>- Returns:
- BwString with language code or default
-
setDescription
- Specified by:
setDescriptionin interfaceDescriptionEntity<BwLongString>- Parameters:
val- String default
-
getDescription
- Specified by:
getDescriptionin interfaceDescriptionEntity<BwLongString>- Returns:
- String default
-
setResources
Description copied from interface:ResourcedEntitySet the resources Set- Specified by:
setResourcesin interfaceResourcedEntity- Parameters:
val- Set of (BwString)resources
-
getResources
Description copied from interface:ResourcedEntityGet the resources- Specified by:
getResourcesin interfaceResourcedEntity- Returns:
- Set resources set
-
getNumResources
public int getNumResources()- Specified by:
getNumResourcesin interfaceResourcedEntity- Returns:
- int number of resources.
-
addResource
- Specified by:
addResourcein interfaceResourcedEntity
-
addResource
- Specified by:
addResourcein interfaceResourcedEntity
-
removeResource
- Specified by:
removeResourcein interfaceResourcedEntity- Returns:
- boolean true if removed.
-
setSummaries
Description copied from interface:SummaryEntitySet the summaries Set- Specified by:
setSummariesin interfaceSummaryEntity- Parameters:
val- Set of (BwString)summaries
-
getSummaries
Description copied from interface:SummaryEntityGet the summaries- Specified by:
getSummariesin interfaceSummaryEntity- Returns:
- Set summaries set
-
getNumSummaries
public int getNumSummaries()- Specified by:
getNumSummariesin interfaceSummaryEntity- Returns:
- int number of summaries.
-
addSummary
-
addSummary
- Specified by:
addSummaryin interfaceSummaryEntity
-
removeSummary
- Specified by:
removeSummaryin interfaceSummaryEntity- Returns:
- boolean true if removed.
-
updateSummaries
Description copied from interface:SummaryEntityIf summary with given lang is present updates the value, otherwise adds it.- Specified by:
updateSummariesin interfaceSummaryEntity
-
findSummary
- Specified by:
findSummaryin interfaceSummaryEntity- Returns:
- BwString with language code or default
-
setSummary
- Specified by:
setSummaryin interfaceSummaryEntity- Parameters:
val- String default
-
getSummary
- Specified by:
getSummaryin interfaceSummaryEntity- Returns:
- String default
-
setFreeBusyPeriods
set the free busy periods- Parameters:
val- List of BwFreeBusyComponent
-
getFreeBusyPeriods
Get the free busy times- Returns:
- Set of BwFreeBusyComponent
-
addFreeBusyPeriod
Add a free/busy component- Parameters:
val- free busy component
-
setCalSuite
Set the calsuite name- Parameters:
val- name
-
getCalSuite
Get the calsuite name- Returns:
- String name
-
setPollWinner
The poll winner- Parameters:
val- Integer id
-
getPollWinner
Get the winning item id- Returns:
- Integer item id
-
setPollItemId
-
getPollItemId
Get the event's poll item id- Returns:
- Integer event's poll item id
-
setPollMode
Set the poll mode- Parameters:
val- the mode
-
getPollMode
Get the poll mode- Returns:
- String poll mode
-
setPollProperties
Set the poll properties- Parameters:
val- list of interesting properties
-
getPollProperties
Get the poll properties- Returns:
- String list of interesting properties
-
setPollAcceptResponse
Set the acceptable poll component types in the reponse- Parameters:
val- list of acceptable poll component types in the reponse
-
getPollAcceptResponse
Get the acceptable poll component types in the reponse- Returns:
- String list of acceptable poll component types in the reponse
-
getPollItems
Get the vpoll items (candidates)- Returns:
- Set
candidates
-
clearPollItems
public void clearPollItems()Clear the vpoll items -
getVoters
Get the vpoll items (candidates)- Returns:
- Set
candidates
-
clearVoters
public void clearVoters()Clear the vpoll voters -
addVoter
Add vpoll voter- Parameters:
val- the item
-
addPollItem
Add vpoll item- Parameters:
val- the item
-
setPollCandidate
public void setPollCandidate(boolean val) - Parameters:
val- true for a poll candidate
-
getPollCandidate
public boolean getPollCandidate()- Returns:
- true for a poll candidate
-
setBusyType
public void setBusyType(int val) - Parameters:
val- int busy type
-
getBusyType
public int getBusyType()- Returns:
- int type of time
-
setAvailableUids
Set the available uids- Parameters:
val- Set
-
getAvailableUids
Get the uids- Returns:
- Set
uids
-
addAvailableUid
Add as available uid- Parameters:
val- Strign uid
-
setPeruserTransparency
If this is the owner - set the real transparency, otherwise, if it differs add an x-prop- Parameters:
userHref- user in questionval- transp value- Returns:
- non-null if x-prop is added for this user
-
getPeruserTransparency
Get the event's transparency- Parameters:
userHref- or null- Returns:
- String the event's transparency
-
findPeruserXprop
- Parameters:
userHref- of user who owns propertyname- of property- Returns:
- x-prop for this user if found
-
getSuggested
Suggested to values.- Returns:
- list of suggested to objects
-
addSuggested
Add a suggested to value.- Parameters:
val- suggested to object- Returns:
- x-property added to event
-
isSchedulingAssistant
public boolean isSchedulingAssistant()Scheduling assistant?- Returns:
- boolean
-
getBusyTypeString
- Returns:
- the String representation of the busyType
-
setBusyTypeString
- Parameters:
val- the String representation of the busyType
-
fromBusyTypeString
- Parameters:
val- the String representation of the busyType- Returns:
- corresponding internal value
-
inDateTimeRange
Returns true if the event start and end dates lie within the specified limits. Either or both of start and end may be null.- Parameters:
start- - UTC date/time or nullend- - UTC date/time or null- Returns:
- true if event satisfies the limits
-
getSchedulingObject
public boolean getSchedulingObject()- Returns:
- boolean
-
setOverrides
Set the overrides collection- Parameters:
val- Collection of overrides
-
getOverrides
Get the overrides- Returns:
- Collection overrides list
-
setColor
Set the event color property- Parameters:
val- color value
-
getColor
Get the event color property- Returns:
- String event color
-
setSignificantChange
public void setSignificantChange(boolean val) Set the significant change flag- Parameters:
val- boolean true if the event was changed in a significant manner (enough to mean we should update schedule-tag)
-
getSignificantChange
public boolean getSignificantChange()Get the significant change flag- Returns:
- boolean true if the event was changed in a significant manner (enough to mean we should update schedule-tag)
-
setForceUTC
public void setForceUTC(boolean val) Set the force UTC flag- Parameters:
val- true to force UTC
-
getForceUTC
public boolean getForceUTC()Get the force UTC flag- Returns:
- boolean
-
setParent
Set parent object- Parameters:
val- BwEvent object.
-
getParent
Return any parent object- Returns:
- BwEvent object.
-
setCategoryHrefs
Set list of referenced categories- Specified by:
setCategoryHrefsin interfaceCategorisedEntity- Parameters:
val- list of category uids
-
getCategoryHrefs
Description copied from interface:CategorisedEntityGet the categories- Specified by:
getCategoryHrefsin interfaceCategorisedEntity- Returns:
- list of category uids.
-
setContactHrefs
Set list of referenced contacts- Specified by:
setContactHrefsin interfaceContactedEntity- Parameters:
val- list of contact hrefs
-
getContactHrefs
Description copied from interface:ContactedEntityGet the contact hrefs- Specified by:
getContactHrefsin interfaceContactedEntity- Returns:
- list of contact uids.
-
setLocationHref
Set href of referenced location- Parameters:
val- location href or null
-
getLocationHref
- Returns:
- location href
-
getChangeset
Get change set for the event. The absence of a changes does not mean no changes - there may be overrides to apply.- Parameters:
userHref- needed to handle per-user properties- Returns:
- null for no changes
-
clearChangeset
public void clearChangeset()Will force update -
getHref
- Overrides:
getHrefin classBwUnversionedDbentity<BwEvent>- Returns:
- non null unique href for the entity
-
getEncodedHref
-
getTimeZoneIds
Return all timezone ids this event uses. This is used when an event is added by another user to ensure that the target user has a copy of user specific timezones.- Returns:
- Set of timezone ids.
-
updateLastmod
public void updateLastmod()Set the last mod for this event. -
updateDtstamp
public void updateDtstamp()Set the dtstamp for this event. -
updateStag
Set the stag for this event.- Parameters:
val- timestamp
-
setDtstamps
Set the dtstamp, lastmod and created if created is not set already.- Parameters:
val- timestamp
-
makeFreeBusyEvent
Return an object holding just enough for free busy calculation- Returns:
- BwEvent object.
-
makeDurationBean
Return a BwDuration populated from the String duration.- Returns:
- BwDuration
-
calculateByteSize
public int calculateByteSize()Calculate a value to be used to limit quotas.- Returns:
- int
-
toStringSegment
protected void toStringSegment(org.bedework.util.misc.ToString ts) Add our stuff to the StringBuilder- Overrides:
toStringSegmentin classBwShareableContainedDbentity<BwEvent>- Parameters:
ts- ToString object for result
-
copyTo
Copy this objects fields into the parameter- Parameters:
ev- - to copy to
-
cloneTombstone
- Returns:
- a copy suitable for tombstoning.
-
validTransparency
Check for a valid transparency - null is invalid- Parameters:
val- - possible transparency value- Returns:
- boolean true = it's OK
-
setSuppressed
public void setSuppressed(boolean val) We are using the status to suppress master events - these are associated with 'detached' instances.- Parameters:
val- true for suppressed
-
getSuppressed
public boolean getSuppressed()We are using the status to suppress master events - these are associated with 'detached' instances.- Returns:
- true if suppressed
-
assignGuid
Assign a guid to this event. A noop if this event already has a guid.- Parameters:
systemId- for the system
-
compare
- Specified by:
comparein interfaceComparator<BwEvent>
-
compareTo
- Specified by:
compareToin interfaceComparable<BwEvent>- Overrides:
compareToin classBwUnversionedDbentity<BwEvent>
-
hashCode
public int hashCode()- Overrides:
hashCodein classBwUnversionedDbentity<BwEvent>
-
toString
-
clone
Description copied from class:BwUnversionedDbentityMake visible- Overrides:
clonein classBwUnversionedDbentity<BwEvent>- Returns:
- Object of class T
-
getMicrosecsVersion
- Returns:
- a version value in microsecords.
- Throws:
CalFacadeException
-
hex4
- Parameters:
val- number to convert to hex- Returns:
- a 4 digit hex value
-
hex4FromNanos
- Parameters:
val- - nanoseconds- Returns:
- a 4 digit hex value
-