|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jstore.BasicStorable com.jalios.jcms.Data com.jalios.jcms.Publication com.jalios.jcms.Content com.jalios.jcms.calendar.AbstractCalendarEvent
public abstract class AbstractCalendarEvent
This abstract class provides a superclass to every calendar event and base methods for their manipulation
Nested Class Summary | |
---|---|
static class |
AbstractCalendarEvent.CalendarEventAttendeeSelector
This DataSelector selects all the CalendarEvent of which the given member is an attendee (either because he is the author or he is in the list of attendees). |
static class |
AbstractCalendarEvent.CalendarEventDateSelector
This DataSelector selects all the CalendarEvent taking place in between the given date |
static class |
AbstractCalendarEvent.StartDateComparator<T extends CalendarEventInterface>
This comparator allow sorting of calendar event in chronological order using only their start date |
Nested classes/interfaces inherited from class com.jalios.jcms.Data |
---|
Data.AuthorSelector, Data.CdateSelector, Data.DataNameComparator<T extends Data>, Data.DeletableSelector, Data.ImportSelector, Data.MdateSelector, Data.OpAuthorComparator<T extends Data>, Data.RowIdComparator<T extends Data>, Data.StrongLockSelector |
Nested classes/interfaces inherited from class com.jalios.jstore.BasicStorable |
---|
BasicStorable.CdateComparator<T extends Storable>, BasicStorable.IdComparator<T extends Storable>, BasicStorable.MdateComparator<T extends Storable> |
Field Summary | |
---|---|
static String |
REVISION
|
Fields inherited from class com.jalios.jcms.Data |
---|
author, authorDBID, channel, DISPLAY_URL_EXTRA_INFO, extension, extraDataMap, extraDBDataMapToSaveOnOp, importMap, opAuthor, opDelegate |
Fields inherited from class com.jalios.jstore.BasicStorable |
---|
cdate, ddate, id, mdate, store |
Fields inherited from interface com.jalios.jcms.mashup.ImportConstants |
---|
IMPORT_ALARM_MGR, IMPORT_AUTHOR_PROP, IMPORT_CATEGORY_DEFAULT, IMPORT_DC_ATTR, IMPORT_DC_STEP, IMPORT_DIR, IMPORT_ENABLED, IMPORT_JDOM_ELEMENT, IMPORT_LOG_FILE, IMPORT_LOG_MAX, IMPORT_OPTIONS, IMPORT_OPTIONS_DC_CONTEXT, IMPORT_ROOT_PROP, IMPORT_SOURCE_FILE, IMPORT_SOURCE_PREFIX_PROP, IMPORT_SOURCES_DIR, IMPORT_STEP_CLEAN, IMPORT_STEP_IMPORT, IMPORT_STEP_UPDATE_REF, IMPORT_WS_PROP |
Fields inherited from interface com.jalios.jcms.mashup.MashupConstants |
---|
DATA_TAG, DATASET_TAG, FIELD_CLASS, FIELD_ENTRY, FIELD_ITEM, FIELD_KEY, FIELD_NAME, FIELD_TAG, FIELD_VALUE, FILE_FIELD, FILE_ID, FILE_MTIME, FILE_SIZE, FILE_TAG, FILE_TICKET, FILESET_TAG, RELATED_TAG |
Fields inherited from interface com.jalios.util.JaliosConstants |
---|
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR |
Constructor Summary | |
---|---|
AbstractCalendarEvent()
|
|
AbstractCalendarEvent(Content other)
|
Method Summary | |
---|---|
ControllerStatus |
checkIntegrity()
Checks whether or not data integrity constraints are respected. |
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. |
abstract Group[] |
getAttendingGroups()
|
abstract Member[] |
getAttendingMembers()
|
TreeSet<Member> |
getAttendingMemberSet()
Retrieve the attending members as a Set, with the author included. |
abstract boolean |
getAuthorAttendee()
|
static AbstractCalendarEvent.CalendarEventAttendeeSelector |
getCalendarEventAttendeeSelector(Member mbr)
|
static AbstractCalendarEvent.CalendarEventAttendeeSelector |
getCalendarEventAttendeeSelector(Member mbr,
boolean checkReadRight)
|
static AbstractCalendarEvent.CalendarEventDateSelector |
getCalendarEventDateSelector(Date startDate,
Date endDate)
|
static AbstractCalendarEvent.CalendarEventDateSelector |
getCalendarEventDateSelector(Date startDate,
Date endDate,
boolean dayEventFlag)
Create a DataSelector for AbstractCalendarEvent |
abstract boolean |
getDayEventFlag()
|
abstract String |
getDescription(String lang)
|
abstract FileDocument[] |
getDocuments()
|
abstract Date |
getEndDate()
|
long |
getEventDuration()
Returns the event duration |
abstract boolean |
getFreeSignUp()
|
String |
getHtmlIcon()
Compute html icon for this event |
abstract String |
getImportanceLevel()
|
abstract String |
getLocation()
|
abstract String |
getLocation(String lang)
|
abstract String |
getPeriodicity()
|
abstract boolean |
getPrivateFlag()
|
Date |
getReminderDate()
|
abstract long |
getReminderDuration()
|
abstract AbstractEventResource[] |
getResources()
|
abstract boolean |
getSendEventUpdateMail()
|
abstract Date |
getStartDate()
|
static AbstractCalendarEvent.StartDateComparator<CalendarEventInterface> |
getStartDateComparator()
|
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 |
performCreate(Member mbr,
Map context)
Performs additionnal task during creation of CalendarEvent. |
void |
performUpdate(Member mbr,
Map context)
Performs additionnal task during update of CalendarEvent. |
void |
remind()
remind author and attendees of event |
boolean |
removeAttendee(Member mbr)
Remove given member from the attending members, updates the all member set. |
abstract void |
setAttendingGroups(Group[] v)
|
abstract void |
setAttendingMembers(Member[] v)
|
abstract void |
setAuthorAttendee(boolean b)
|
abstract void |
setDocuments(FileDocument[] v)
|
abstract void |
setEndDate(Date date)
|
abstract void |
setFreeSignUp(boolean v)
|
abstract void |
setLocation(String v)
|
abstract void |
setPeriodicity(String v)
|
abstract void |
setPrivateFlag(boolean v)
|
abstract void |
setReminderDuration(long v)
|
abstract void |
setResources(AbstractEventResource[] v)
|
abstract void |
setSendEventUpdateMail(boolean v)
|
abstract void |
setStartDate(Date date)
|
void |
updateAllAttendingMembersSet()
Clear and update the transient cache of all attending member set. |
Methods inherited from class com.jalios.jstore.BasicStorable |
---|
clearId, compareTo, equals, getAttribute, getAttributes, getCdate, getCdateComparator, getDdate, getId, getIdComparator, getMdate, getMdateComparator, getStore, getUrid, hasBeenUpdated, isStored, resolveAtt, resolveVal, setAttributes, setDdate, setId, setStore, toXml |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.jalios.jcms.calendar.CalendarEventInterface |
---|
getPeriodicityEndDate, setPeriodicityEndDate |
Field Detail |
---|
public static final String REVISION
Constructor Detail |
---|
public AbstractCalendarEvent()
public AbstractCalendarEvent(Content other)
Method Detail |
---|
public abstract Date getStartDate()
getStartDate
in interface CalendarEventInterface
public abstract Date getEndDate()
getEndDate
in interface CalendarEventInterface
public abstract String getImportanceLevel()
getImportanceLevel
in interface CalendarEventInterface
public abstract boolean getAuthorAttendee()
getAuthorAttendee
in interface CalendarEventInterface
public abstract void setAuthorAttendee(boolean b)
setAuthorAttendee
in interface CalendarEventInterface
public abstract boolean getDayEventFlag()
getDayEventFlag
in interface CalendarEventInterface
public abstract void setStartDate(Date date)
setStartDate
in interface CalendarEventInterface
public abstract void setEndDate(Date date)
setEndDate
in interface CalendarEventInterface
public long getEventDuration()
CalendarEventInterface
getEventDuration
in interface CalendarEventInterface
public boolean overlapWith(CalendarEventInterface ev)
CalendarEventInterface
overlapWith
in interface CalendarEventInterface
ev
- the other calendar event
public boolean overlapWith(Date startDate, Date endDate)
CalendarEventInterface
overlapWith
in interface CalendarEventInterface
startDate
- the start date of the interval to checkendDate
- the end date of the interval to check
public static AbstractCalendarEvent.CalendarEventDateSelector getCalendarEventDateSelector(Date startDate, Date endDate)
public static AbstractCalendarEvent.CalendarEventDateSelector getCalendarEventDateSelector(Date startDate, Date endDate, boolean dayEventFlag)
DataSelector
for AbstractCalendarEvent
startDate
- the start date of selectionendDate
- the end date of selectiondayEventFlag
- true if only day event should be selected, false if only standard
event is selected
AbstractCalendarEvent.CalendarEventDateSelector
public static AbstractCalendarEvent.StartDateComparator<CalendarEventInterface> getStartDateComparator()
public boolean isAttendee(Member mbr)
CalendarEventInterface
isAttendee
in interface CalendarEventInterface
mbr
- the member to check
public boolean isAttendee(Member mbr, boolean checkReadRight)
CalendarEventInterface
isAttendee
in interface CalendarEventInterface
mbr
- the member to checkcheckReadRight
- 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)
public static AbstractCalendarEvent.CalendarEventAttendeeSelector getCalendarEventAttendeeSelector(Member mbr)
mbr
- the member to select the calendar event
public static AbstractCalendarEvent.CalendarEventAttendeeSelector getCalendarEventAttendeeSelector(Member mbr, boolean checkReadRight)
mbr
- the member to select the calendar eventcheckReadRight
- set to true if read right should be checked, false if all CalendarEvent should be included even if Member is not able to read the event
public abstract long getReminderDuration()
getReminderDuration
in interface CalendarEventInterface
public abstract void setReminderDuration(long v)
setReminderDuration
in interface CalendarEventInterface
public abstract Member[] getAttendingMembers()
getAttendingMembers
in interface CalendarEventInterface
public abstract void setAttendingMembers(Member[] v)
setAttendingMembers
in interface CalendarEventInterface
public abstract Group[] getAttendingGroups()
getAttendingGroups
in interface CalendarEventInterface
public abstract void setAttendingGroups(Group[] v)
setAttendingGroups
in interface CalendarEventInterface
public boolean isReminderEnabled()
isReminderEnabled
in interface CalendarEventInterface
public Date getReminderDate()
getReminderDate
in interface CalendarEventInterface
public TreeSet<Member> getAllAttendingMembersSet()
CalendarEventInterface
getAllAttendingMembersSet
in interface CalendarEventInterface
public TreeSet<Member> getAllAttendingMembersSet(boolean checkReadRight)
CalendarEventInterface
getAllAttendingMembersSet
in interface CalendarEventInterface
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
public TreeSet<Member> getAttendingMemberSet()
CalendarEventInterface
getAttendingMemberSet
in interface CalendarEventInterface
public boolean removeAttendee(Member mbr)
CalendarEventInterface
removeAttendee
in interface CalendarEventInterface
mbr
- the Member to remove
public void updateAllAttendingMembersSet()
CalendarEventInterface
updateAllAttendingMembersSet
in interface CalendarEventInterface
public void remind()
CalendarEventInterface
remind
in interface CalendarEventInterface
public ControllerStatus checkIntegrity()
checkIntegrity
in class Publication
public void performCreate(Member mbr, Map context)
performCreate
in class Publication
mbr
- the member which requests the write operationcontext
- a map which contains context parameters (may be null)public void performUpdate(Member mbr, Map context)
performUpdate
in class Publication
mbr
- the member which requests the write operationcontext
- a map which contains context parameters (may be null)public abstract void setFreeSignUp(boolean v)
setFreeSignUp
in interface CalendarEventInterface
public abstract boolean getFreeSignUp()
getFreeSignUp
in interface CalendarEventInterface
public abstract void setSendEventUpdateMail(boolean v)
setSendEventUpdateMail
in interface CalendarEventInterface
public abstract boolean getSendEventUpdateMail()
getSendEventUpdateMail
in interface CalendarEventInterface
public abstract void setDocuments(FileDocument[] v)
setDocuments
in interface CalendarEventInterface
public abstract FileDocument[] getDocuments()
getDocuments
in interface CalendarEventInterface
public abstract void setResources(AbstractEventResource[] v)
setResources
in interface CalendarEventInterface
public abstract AbstractEventResource[] getResources()
getResources
in interface CalendarEventInterface
public abstract void setPrivateFlag(boolean v)
setPrivateFlag
in interface CalendarEventInterface
public abstract boolean getPrivateFlag()
getPrivateFlag
in interface CalendarEventInterface
public abstract void setPeriodicity(String v)
setPeriodicity
in interface CalendarEventInterface
public abstract String getPeriodicity()
getPeriodicity
in interface CalendarEventInterface
public abstract void setLocation(String v)
setLocation
in interface CalendarEventInterface
public abstract String getLocation()
getLocation
in interface CalendarEventInterface
public abstract String getLocation(String lang)
getLocation
in interface CalendarEventInterface
public abstract String getDescription(String lang)
getDescription
in interface CalendarEventInterface
public String getHtmlIcon()
CalendarEventInterface
getHtmlIcon
in interface CalendarEventInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |