com.jalios.jcms.calendar
Interface CalendarEventInterface

All Known Implementing Classes:
AbstractCalendarEvent

public interface CalendarEventInterface


Method Summary
 TreeSet<Member> getAllAttendingMembersSet()
          Return a set containing all the members attending this event.
 TreeSet<Member> getAllAttendingMembersSet(boolean checkReadRight)
          Return a set containing all the members attending this event checking for readright or not.
 Group[] getAttendingGroups()
           
 Member[] getAttendingMembers()
           
 TreeSet<Member> getAttendingMemberSet()
          Retrieve the attending members as a Set, with the author included.
 boolean getAuthorAttendee()
           
 boolean getDayEventFlag()
           
 String getDescription(String lang)
           
 FileDocument[] getDocuments()
           
 Date getEndDate()
           
 long getEventDuration()
          Returns the event duration
 boolean getFreeSignUp()
           
 String getHtmlIcon()
          Compute html icon for this event
 String getImportanceLevel()
           
 String getLocation()
           
 String getLocation(String lang)
           
 String getPeriodicity()
           
 Date getPeriodicityEndDate()
           
 boolean getPrivateFlag()
           
 Date getReminderDate()
           
 long getReminderDuration()
           
 AbstractEventResource[] getResources()
           
 boolean getSendEventUpdateMail()
           
 Date getStartDate()
           
 boolean isAttendee(Member mbr)
          Check if a given member attends this calendar event (Warning: read right are not checked), either because he is in a group attending the event or else if he is in the list of attendees
 boolean isAttendee(Member mbr, boolean checkReadRight)
          Check if a given member attends this calendar event, either because he is in a group attending the event or else if he is in the list of attendees
 boolean isReminderEnabled()
           
 boolean overlapWith(CalendarEventInterface ev)
          Check if calendar event overlap with another one
 boolean overlapWith(Date startDate, Date endDate)
          Check if calendar event overlap with given interval
 void remind()
          remind author and attendees of event
 boolean removeAttendee(Member mbr)
          Remove given member from the attending members, updates the all member set.
 void setAttendingGroups(Group[] v)
           
 void setAttendingMembers(Member[] v)
           
 void setAuthorAttendee(boolean b)
           
 void setDocuments(FileDocument[] v)
           
 void setEndDate(Date date)
           
 void setFreeSignUp(boolean v)
           
 void setLocation(String v)
           
 void setPeriodicity(String v)
           
 void setPeriodicityEndDate(Date v)
           
 void setPrivateFlag(boolean v)
           
 void setReminderDuration(long v)
           
 void setResources(AbstractEventResource[] v)
           
 void setSendEventUpdateMail(boolean v)
           
 void setStartDate(Date date)
           
 void updateAllAttendingMembersSet()
          Clear and update the transient cache of all attending member set.
 

Method Detail

getStartDate

Date getStartDate()

getEndDate

Date getEndDate()

getImportanceLevel

String getImportanceLevel()

getAuthorAttendee

boolean getAuthorAttendee()

setAuthorAttendee

void setAuthorAttendee(boolean b)

getDayEventFlag

boolean getDayEventFlag()

setStartDate

void setStartDate(Date date)

setEndDate

void setEndDate(Date date)

getReminderDuration

long getReminderDuration()

setReminderDuration

void setReminderDuration(long v)

getAttendingMembers

Member[] getAttendingMembers()

setAttendingMembers

void setAttendingMembers(Member[] v)

getAttendingGroups

Group[] getAttendingGroups()

setAttendingGroups

void setAttendingGroups(Group[] v)

getLocation

String getLocation()

setLocation

void setLocation(String v)

getPeriodicity

String getPeriodicity()

setPeriodicity

void setPeriodicity(String v)

getPeriodicityEndDate

Date getPeriodicityEndDate()

setPeriodicityEndDate

void setPeriodicityEndDate(Date v)

getPrivateFlag

boolean getPrivateFlag()

setPrivateFlag

void setPrivateFlag(boolean v)

getResources

AbstractEventResource[] getResources()

setResources

void setResources(AbstractEventResource[] v)

getDocuments

FileDocument[] getDocuments()

setDocuments

void setDocuments(FileDocument[] v)

getSendEventUpdateMail

boolean getSendEventUpdateMail()

setSendEventUpdateMail

void setSendEventUpdateMail(boolean v)

getFreeSignUp

boolean getFreeSignUp()

setFreeSignUp

void setFreeSignUp(boolean v)

getLocation

String getLocation(String lang)

getDescription

String getDescription(String lang)

getEventDuration

long getEventDuration()
Returns the event duration

Returns:
the event duration or -1 if start date or end date is null

overlapWith

boolean overlapWith(CalendarEventInterface ev)
Check if calendar event overlap with another one

Parameters:
ev - the other calendar event
Returns:
true if they overlap, false otherwise
Since:
jcms-4.1.1

overlapWith

boolean overlapWith(Date startDate,
                    Date endDate)
Check if calendar event overlap with given interval

Parameters:
startDate - the start date of the interval to check
endDate - the end date of the interval to check
Returns:
true if event overlap with given interval, false otherwise
Since:
jcms-4.1.1

isAttendee

boolean isAttendee(Member mbr)
Check if a given member attends this calendar event (Warning: read right are not checked), either because he is in a group attending the event or else if he is in the list of attendees

Parameters:
mbr - the member to check
Returns:
true if the member attends the event, false otherwise

isAttendee

boolean isAttendee(Member mbr,
                   boolean checkReadRight)
Check if a given member attends this calendar event, either because he is in a group attending the event or else if he is in the list of attendees

Parameters:
mbr - the member to check
checkReadRight - set to true if read right should be checked (in which case a member is considered attendee only when is can read the event), set to false if read right should not be checked (in which case a member is considered attendee event if he cannot read the event)
Returns:
true if the member attends the event, false otherwise
Since:
jcms-6.1.3

isReminderEnabled

boolean isReminderEnabled()
Returns:
true if reminder is enabled, false otherwise
Since:
jcms-4.1.1

getReminderDate

Date getReminderDate()
Returns:
the reminder date
Since:
jcms-4.1.1

getAllAttendingMembersSet

TreeSet<Member> getAllAttendingMembersSet()
Return a set containing all the members attending this event. Contains all members from the attendees groups and the attendees member, who can read this calendar event (this set is built and cached on create/update of event).

Returns:
a TreeSet of all member attending to this event
Since:
jcms-5.0.0

getAllAttendingMembersSet

TreeSet<Member> getAllAttendingMembersSet(boolean checkReadRight)
Return a set containing all the members attending this event checking for readright or not. Contains all members from the attendees groups and the attendees member, (this set is built and cached on create/update of event).

Parameters:
checkReadRight - set to true if read right should be checked, false if all attendee should be included even Member not able to read the event
Returns:
a TreeSet of all member attending to this event
Since:
jcms-6.1.3

getAttendingMemberSet

TreeSet<Member> getAttendingMemberSet()
Retrieve the attending members as a Set, with the author included.

Returns:
the set of attending members corresponding to attenginmembers with author added, never return null
Since:
jcms-6.1.1

removeAttendee

boolean removeAttendee(Member mbr)
Remove given member from the attending members, updates the all member set. Note: Does not perform update in store, this method must be called on the clone to be updated.

Parameters:
mbr - the Member to remove
Returns:
true if a modification was made
Since:
jcms-5.0.0

updateAllAttendingMembersSet

void updateAllAttendingMembersSet()
Clear and update the transient cache of all attending member set.

Since:
jcms-5.0.1

remind

void remind()
remind author and attendees of event

Since:
jcms-4.1.1

getHtmlIcon

String getHtmlIcon()
Compute html icon for this event

Returns:
the html string of the icon


Copyright © 2001-2010 Jalios SA. All Rights Reserved.