|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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
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, Data.DeletableSelector, Data.ImportSelector, Data.MdateSelector, Data.OpAuthorComparator |
Nested classes/interfaces inherited from class com.jalios.jstore.BasicStorable |
---|
BasicStorable.CdateComparator, BasicStorable.IdComparator, BasicStorable.MdateComparator |
Field Summary | |
---|---|
static String |
REVISION
|
Fields inherited from class com.jalios.jcms.Publication |
---|
adate, authorizedGroupSet, authorizedMemberSet, categories, categorySet, CTRL_TOPIC_ADVANCED, CTRL_TOPIC_CATEGORIES, CTRL_TOPIC_WORKFLOW, edate, friendlyURLSet, indexMgr, isTracked, mainInstance, mainLanguage, majorVersion, mergeDate, mergeId, minorVersion, pdate, pstatus, roleMap, sdate, templates, title, titleML, udate, updateGroupSet, updateMemberSet, wfExpressAlarmEntry, wfReminderAlarmEntry, workspace |
Fields inherited from class com.jalios.jcms.Data |
---|
author, channel, DISPLAY_URL_EXTRA_INFO, extension, extraDataMap, extraDBDataMapToSaveOnOp, importMap, lockDate, lockMember, 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 |
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 |
getAllAttendingMembersSet()
Return a set containing all the members attending this event. |
abstract Group[] |
getAttendingGroups()
|
abstract Member[] |
getAttendingMembers()
|
static AbstractCalendarEvent.CalendarEventAttendeeSelector |
getCalendarEventAttendeeSelector(Member mbr)
|
static AbstractCalendarEvent.CalendarEventDateSelector |
getCalendarEventDateSelector(Date startDate,
Date endDate)
|
abstract Date |
getEndDate()
|
abstract String |
getImportanceLevel()
|
Date |
getReminderDate()
|
abstract long |
getReminderDuration()
|
abstract Date |
getStartDate()
|
static AbstractCalendarEvent.StartDateComparator |
getStartDateComparator()
|
boolean |
isAttendee(Member mbr)
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(AbstractCalendarEvent 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 |
setReminderDuration(long v)
|
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, getDdate, getId, getMdate, 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 |
Field Detail |
---|
public static final String REVISION
Constructor Detail |
---|
public AbstractCalendarEvent()
public AbstractCalendarEvent(Content other)
Method Detail |
---|
public abstract Date getStartDate()
public abstract Date getEndDate()
public abstract String getImportanceLevel()
public boolean overlapWith(AbstractCalendarEvent ev)
ev
- the other calendar event
public boolean overlapWith(Date startDate, Date endDate)
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.StartDateComparator getStartDateComparator()
public boolean isAttendee(Member mbr)
mbr
- the member to check
public static AbstractCalendarEvent.CalendarEventAttendeeSelector getCalendarEventAttendeeSelector(Member mbr)
public abstract long getReminderDuration()
public abstract void setReminderDuration(long v)
public abstract Member[] getAttendingMembers()
public abstract void setAttendingMembers(Member[] v)
public abstract Group[] getAttendingGroups()
public abstract void setAttendingGroups(Group[] v)
public boolean isReminderEnabled()
public Date getReminderDate()
public TreeSet getAllAttendingMembersSet()
public boolean removeAttendee(Member mbr)
mbr
- the Member to remove
public void updateAllAttendingMembersSet()
public void remind()
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |