Package org.bedework.calfacade
Class SchedulingInfo
java.lang.Object
org.bedework.calfacade.SchedulingInfo
Handle component participants which represent attendees or
organizer/owner.
User: mike Date: 9/10/24 Time: 13:40
Currently, we have the complication of having attendee only, participant only, or both. Also, participants are stored as x-properties mixed in with others.
The approach taken is to load all the participants from the x-properties into the bwparticipants set on creation of this class. That set is updated as the result of various operations and the onSave() method updates th ex-properties to reflect the changes.
User: mike Date: 9/10/24 Time: 13:40
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddUpdateParticipant(net.fortuna.ical4j.model.component.Participant part) if the participant is not in the set then a new object is added to the set.voidif there is no participant with the same uri then a copy will be added and returned.findParticipant(String calAddr) intorg.bedework.util.misc.response.GetEntityResponse<Participant>getParticipantsWithRoles(String... roles) makeParticipant(BwAttendee att, BwParticipant part) Create a Participant 'like' the parameter in that, if the param has a BwAttendee then so does the result.voidnewParticipant(net.fortuna.ical4j.model.component.Participant part) The new object is added to the set.newSchedulingOwner(String calendarAddress) newSchedulingOwner(BwOrganizer organizer, BwParticipant powner) voidonSave()voidvoidsetOnlyParticipant(Participant participant)
-
Constructor Details
-
SchedulingInfo
-
-
Method Details
-
getParent
-
getSchedulingOwner
- Returns:
- the SchedulingOwner - organizer in 5545 terms.
-
newSchedulingOwner
- Parameters:
calendarAddress- of owner- Returns:
- new owner with calendar address and role set.
-
newSchedulingOwner
-
copySchedulingOwner
-
getParticipants
- Returns:
- unmodifiable set of all Participant objects
-
getNumParticipants
public int getNumParticipants()- Returns:
- number of participant objects
-
getParticipantAddrs
-
clearParticipants
public void clearParticipants() -
setOnlyParticipant
- Parameters:
participant- we want left
-
getOnlyParticipant
-
findParticipant
-
makeParticipant
-
removeRecipientParticipant
-
addParticipant
-
copyParticipant
if there is no participant with the same uri then a copy will be added and returned.Otherwise the values in the parameter will be copied to the existing participant.
- Parameters:
val- participant to copy- Returns:
- copied attende
-
makeParticipant
-
makeParticipantLike
Create a Participant 'like' the parameter in that, if the param has a BwAttendee then so does the result. Ditto for participant. No values are copied.- Parameters:
val- template Participant- Returns:
- new Participant
-
newParticipant
The new object is added to the set. getParticipants must be called to get new updated set.- Returns:
- a new Participant enclosing the ical object
-
addUpdateParticipant
if the participant is not in the set then a new object is added to the set. Otherwise, the exisiting object is updated from the parameter. getParticipants must be called to get new updated set.- Returns:
- a new Participant enclosing the ical object
-
getParticipantsWithRoles
-
getRecipientParticipants
- Returns:
- unmodifiable set of Participant objects that should receive scheduling messages
-
markChanged
public void markChanged() -
onSave
public void onSave() -
copyFor
-