Package com.jalios.jcms.calendar
Class AbstractCalendarEvent
- java.lang.Object
-
- com.jalios.jstore.BasicStorable
-
- com.jalios.jcms.Data
-
- com.jalios.jcms.Publication
-
- com.jalios.jcms.Content
-
- com.jalios.jcms.calendar.AbstractCalendarEvent
-
- All Implemented Interfaces:
CalendarEventInterface
,EditableData
,JcmsConstants
,ImportConstants
,MashupConstants
,StrongLockable
,Searchable
,Storable
,JaliosConstants
,LangPropertyArgument
,TreeNode
,java.lang.Cloneable
,java.lang.Comparable<BasicStorable>
public abstract class AbstractCalendarEvent extends Content implements CalendarEventInterface
This abstract class provides a superclass to every calendar event and base methods for their manipulation- Since:
- jcms-4.1.1
- Version:
- $Revision: 119110 $
- Author:
- Olivier Jaquemet
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description 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 datestatic 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.Publication
Publication.AdateComparator<T extends Publication>, Publication.AdateSelector, Publication.AudienceRightComparator<T extends Publication>, Publication.AudienceRightSelector, Publication.AuthorComparator<T extends Publication>, Publication.AuthorizedSelector, Publication.CanWorkOnSelector, Publication.DdateComparator<T extends Publication>, Publication.EdateComparator<T extends Publication>, Publication.EdateSelector, Publication.PdateComparator<T extends Publication>, Publication.PdateSelector, Publication.PopularityComparator<T extends Publication>, Publication.PstatusComparator<T extends Publication>, Publication.PstatusSelector, Publication.ReaderComparator<T extends Publication>, Publication.ReadRightSelector, Publication.RelatedCategoryComparator<T extends Publication>, Publication.RightComparator<T extends Publication>, Publication.SdateComparator<T extends Publication>, Publication.SdateSelector, Publication.TitleComparator<T extends Publication>, Publication.TrackedSelector, Publication.TypeComparator<T extends Publication>, Publication.UdateComparator<T extends Publication>, Publication.UdateSelector, Publication.UserContentSelector, Publication.VisibleStateSelector, Publication.VoteScoreComparator<T extends Publication>, Publication.WorkspaceAuthorSelector, Publication.WorkspaceComparator<T extends Publication>, Publication.WorkspaceSelector
-
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>
-
Nested classes/interfaces inherited from interface com.jalios.jcms.calendar.CalendarEventInterface
CalendarEventInterface.IconSize
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
REMINDER_ALERT
static java.lang.String
REVISION
-
Fields inherited from class com.jalios.jcms.Publication
ACL_CAN_ATTACH_WS, adate, attachWorkspaceSet, authorizedGroupSet, authorizedMemberSet, authorizedMemberSetDBID, categories, categorySet, CTRL_TOPIC_ADVANCED, CTRL_TOPIC_CATEGORIES, CTRL_TOPIC_WORKFLOW, CTX_PSTATUS_UPDATE, dbFriendlyURLSet, dbFriendlyURLSetInit, edate, friendlyURLSet, hasAttachWS, hasNoReadRightsDBData, hasNoReadRightsDBDataInitialized, indexMgr, isTracked, mainInstance, mainInstanceId, mainLanguage, majorVersion, mergeDate, mergeId, minorVersion, pdate, pstatus, PUBLICATION_WFNOTE, readAck, readerCount, restrictUpdateRights, roleMap, sdate, SYNC_ATTACH_WORKSPACE_MEDIA_ENABLED_PROP, templates, title, titleML, udate, updateGroupSet, updateMemberSet, voteCount, voteScore, weakDataImage, wfExpressAlarmEntry, wfReminderAlarmEntry, workflowId, workspace, workspaceId
-
Fields inherited from class com.jalios.jcms.Data
author, authorDBID, channel, DISPLAY_URL_EXTRA_INFO, extension, extraDataMap, extraDBDataMapToSaveOnOp, importMap, opAuthor, opDelegate, WRITE_IN_PROGRESS_EXTRA_INFO
-
Fields inherited from class com.jalios.jstore.BasicStorable
cdate, ddate, id, isStoreCache, 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.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
-
Fields inherited from interface com.jalios.jcms.JcmsConstants
ADATE_SEARCH, ADMIN_NOTES_PROP, ADVANCED_TAB, AJAX_MODE_ATTR, ARCHIVES_DIR, ASCII_WIDTH, CATEGORY_TAB, CDATE_SEARCH, CLASS_PROPERTY, COMMON_ALARM, CONTENT_TAB, COOKIE_MAX_AGE, COUNTRY_SPRITE, CS_TYPOLOGY_ROOT_CAT_VID, CTRL_TOPIC_INTERNAL, CTRL_TOPIC_REF, CTRL_TOPIC_VALUE, CTRL_TOPIC_WRITE, CUSTOM_PROP, DEFAULT_PHOTO_PROP, DOCCHOOSER_HEIGHT, DOCCHOOSER_WIDTH, DOCS_DIR, EDATE_SEARCH, EMAIL_REGEXP, ERROR_MSG, FORBIDDEN_FILE_ACCESS, FORBIDDEN_REDIRECT, FORCE_REDIRECT, GLYPH_ICON_PREFIX, ICON_ARCHIVE, ICON_ICON_PREFIX, ICON_LOCK, ICON_LOCK_STRONG, ICON_PREFIX_PROP, ICON_WARN, ICON_WH_BOOK_CLOSED, ICON_WH_BOOK_OPEN, INFORMATION_MSG, IS_IN_FRONT_OFFICE, JALIOS_JUNIT_PROP, JCMS_CADDY, JCMS_MSG_LIST, JCMS_TOASTR_COLLECTION, JSYNC_DOWNLOAD_DIR, JSYNC_SYNC_ALARM, LANG_SPRITE, LOG_FILE, LOG_TOPIC_SECURITY, LOGGER_PROP, LOGGER_XMLPROP, MBR_PHOTO_DIR, MDATE_SEARCH, MONITOR_XML, OP_CREATE, OP_CREATE_STR, OP_DEEP_COPY, OP_DEEP_COPY_STR, OP_DEEP_DELETE, OP_DEEP_DELETE_STR, OP_DELETE, OP_DELETE_STR, OP_MERGE, OP_MERGE_STR, OP_UPDATE, OP_UPDATE_STR, ORGANIZATION_ROOT_GROUP_PROP, PDATE_SEARCH, PHOTO_DIR, PHOTO_ICON, PHOTO_ICON_HEIGHT, PHOTO_ICON_PROP_PREFIX, PHOTO_ICON_WIDTH, PHOTO_LARGE, PHOTO_LARGE_HEIGHT, PHOTO_LARGE_PROP_PREFIX, PHOTO_LARGE_WIDTH, PHOTO_NORMAL, PHOTO_NORMAL_HEIGHT, PHOTO_NORMAL_PROP_PREFIX, PHOTO_NORMAL_WIDTH, PHOTO_SMALL, PHOTO_SMALL_HEIGHT, PHOTO_SMALL_PROP_PREFIX, PHOTO_SMALL_WIDTH, PHOTO_TINY, PHOTO_TINY_HEIGHT, PHOTO_TINY_PROP_PREFIX, PHOTO_TINY_WIDTH, PREVIOUS_TAB, PRINT_VIEW, PRIVATE_FILE_ACCESS, PUBLIC_FILE_ACCESS, RAW_CONTENT_ICON_PREFIX, READ_RIGHT_TAB, SDATE_SEARCH, SEARCHENGINE_ALARM, SECURITY_LOG_FILE, SESSION_AUTHORIZED_FILENAMES_SET, SPRITE_ICON_PREFIX, STATS_REPORT_DIR, STATUS_PROP, STORE_XML, SUCCESS_MSG, SVG_ICON_PREFIX, SVGINLINE_ICON_PREFIX, TEMPLATE_TAB, THUMBNAIL_LARGE_HEIGHT, THUMBNAIL_LARGE_WIDTH, THUMBNAIL_SMALL_HEIGHT, THUMBNAIL_SMALL_WIDTH, TTCARD_MEDIA_HEIGHT, TTCARD_MEDIA_WIDTH, TYPES_ICON_ALT_PROP, TYPES_ICON_SUFFIX_PROP, TYPES_ICON_TITLE_PROP, TYPES_PREFIX_PROP, TYPES_THUMB_SUFFIX_PROP, UDATE_SEARCH, UPDATE_RIGHT_TAB, UPLOAD_DIR, UPLOAD_PERMISSION_COUNT_PROP_PREFIX, UPLOAD_PERMISSION_SIZE_PROP_PREFIX, URL_REGEXP, VID_LOGGED_MEMBER, WARNING_MSG, WEBAPP_PROP, WFEXPRESS_ALARM, WFREMINDER_ALARM, WORKFLOW_TAB, WORKFLOW_XML
-
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
-
-
Constructor Summary
Constructors Constructor Description AbstractCalendarEvent()
AbstractCalendarEvent(Content other)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ControllerStatus
checkAttendeesIntegrity(AbstractCalendarEvent event, Member[] attendees)
ControllerStatus
checkIntegrity()
Checks whether or not data integrity constraints are respected.java.util.TreeSet<Member>
getAllAttendingMembersSet()
Return a set containing all the members attending this event.java.util.TreeSet<Member>
getAllAttendingMembersSet(boolean checkReadRight)
Return a set containing all the members attending this event checking for readright or not.static DataSelector
getAttendeeSelector(CalendarEventInterface event, boolean checkReadRights)
Get AttendeeDataSelector
Return true is user is enabled and can read event (if checkReadRights parameter is true)abstract Group[]
getAttendingGroups()
abstract Member[]
getAttendingMembers()
java.util.TreeSet<Member>
getAttendingMemberSet()
Retrieve the attending members as a Set, with the author included.abstract boolean
getAuthorAttendee()
static AbstractCalendarEvent.CalendarEventAttendeeSelector
getCalendarEventAttendeeListSelector(java.util.List<Member> mbrList)
static AbstractCalendarEvent.CalendarEventAttendeeSelector
getCalendarEventAttendeeListSelector(java.util.List<Member> mbrList, boolean checkReadRight)
static AbstractCalendarEvent.CalendarEventAttendeeSelector
getCalendarEventAttendeeSelector(Member mbr)
static AbstractCalendarEvent.CalendarEventAttendeeSelector
getCalendarEventAttendeeSelector(Member mbr, boolean checkReadRight)
static AbstractCalendarEvent.CalendarEventDateSelector
getCalendarEventDateSelector(java.util.Date startDate, java.util.Date endDate)
static AbstractCalendarEvent.CalendarEventDateSelector
getCalendarEventDateSelector(java.util.Date startDate, java.util.Date endDate, boolean dayEventFlag)
Create aDataSelector
forAbstractCalendarEvent
java.lang.String
getDataIcon()
Returns source information for the icon associated to this Data, either a relative path or sprite classes name.protected java.lang.String
getDataIcon(CalendarEventInterface.IconSize size)
java.lang.String
getDataIconHtml(java.lang.String lang, CalendarEventInterface.IconSize size)
Compute html icon for this event by specifying a size in parameter.abstract boolean
getDayEventFlag()
abstract java.lang.String
getDescription(java.lang.String lang)
abstract FileDocument[]
getDocuments()
abstract java.util.Date
getEndDate()
long
getEventDuration()
Returns the event durationabstract boolean
getFreeSignUp()
abstract java.lang.String
getImportanceLevel()
abstract java.lang.String
getLocation()
abstract java.lang.String
getLocation(java.lang.String lang)
abstract java.util.Set<Member>
getNotDeclinedAttendeeSet()
Retrieves the Set of attendees which has not declined (accepted ou pending attendees)abstract java.lang.String
getPeriodicity()
abstract boolean
getPrivateFlag()
java.util.Date
getReminderDate()
abstract long
getReminderDuration()
abstract AbstractEventResource[]
getResources()
abstract boolean
getSendEventUpdateMail()
abstract java.util.Date
getStartDate()
static AbstractCalendarEvent.StartDateComparator<CalendarEventInterface>
getStartDateComparator()
boolean
getUseFrontOfficeCalendarEditionModal()
Whether we use the Calendar edition modal in Front Office.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 attendeesboolean
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 attendeesboolean
isReminderEnabled()
boolean
overlapWith(CalendarEventInterface ev)
Check if calendar event overlap with another oneboolean
overlapWith(java.util.Date startDate, java.util.Date endDate)
Check if calendar event overlap with given intervalvoid
performCreate(Member mbr, java.util.Map context)
Performs additionnal task during creation of CalendarEvent.void
performUpdate(Member mbr, java.util.Map context)
Performs additionnal task during update of CalendarEvent.void
remind()
Deprecated.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(java.util.Date date)
abstract void
setFreeSignUp(boolean v)
abstract void
setLocation(java.lang.String v)
abstract void
setPeriodicity(java.lang.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(java.util.Date date)
void
updateAllAttendingMembersSet()
Clear and update the transient cache of all attending member set.-
Methods inherited from class com.jalios.jcms.Publication
ackRead, addAuthorizedGroup, addAuthorizedMember, addCategory, addFollower, addWeakReferrer, addWFExpressAlarm, addWFReminderAlarm, assignCommonPublicationFields, assignRole, assignRole, attachPublication, attachTo, canBeArchived, canBeArchived, canBeAttachedBy, canBeAttachedTo, canBeDetachedFrom, canBeEditedFieldByField, canBeFollowedBy, canBeReadBy, canBeReadBy, canBeReadBy, canBeReadBy, canBeVotedBy, canCreateCopy, canCreateCopy, canCreateWorkCopy, canMergeWorkCopy, canRequestUnlock, checkAndPerformTrash, checkAndPerformUntrash, checkCreate, checkDelete, checkLang, checkMember, checkMerge, checkStateChange, checkStateChange, checkTemplateEntry, checkTrash, checkUntrash, checkUpdate, checkWrite, cleanHybridCollections, clearTransientIndex, cloneDBDataCollections, computeSignature, computeSignature, containsCategory, createCopy, createCopy, createWFNote, createWFNote, createWorkCopy, createWorkCopy, detachFrom, discardCopy, exportXmlField, getAbstract, getAbstract, getAbstract, getAbstractAsText, getAbstractML, getAccessCount, getAdate, getAdateComparator, getAdateSelector, getAllCatIdSet, getAllFilePath, getAllWikiText, getAllWysiwygText, getAttachWorkspaceSet, getAttachWSIdSet, getAudiencedRightsString, getAudienceRightComparator, getAudienceRightSelector, getAuthGrpIdSet, getAuthMbrIdSet, getAuthorizedGroupSet, getAuthorizedMemberSet, getAuthorizedMemberSet, getAuthorizedMemberSetDBID, getAuthorizedSelector, getCanWorkOnSelector, getCategories, getCategories, getCategorySet, getCatIdSet, getComparator, getComparator, getComparator, getCSVHeader, getDataIconTitle, getDataImage, getDataName, getDate, getDate, getDateSelector, getDBDataRevision, getDbFriendlyURLSet, getDdateComparator, getDefaultTemplateUsage, getDescendantCategorySet, getDescendantCategorySet, getDescendantCategorySet, getDisplayTemplateFile, getDocumentLinkSet, getEdate, getEdateComparator, getEdateSelector, getEstimatedReminderCount, getExternalLinkSet, getFieldInMainLanguage, getFieldValue, getFirstDescendantCategory, getFirstDescendantCategory, getFirstDescendantCategory, getFollowerList, getFriendlyURLSet, getGenericThumbnail, getHasAttachWS, getHasNoReadRights, getImportConflictCopy, getImportVersion, getIndexingDate, getInternalWorkflow, getLinkDataSet, getMainInstance, getMainInstanceId, getMainLanguage, getMajorVersion, getMemberSetAssignedToRole, getMergeDate, getMergeId, getMinorVersion, getNextWFStateSet, getPdate, getPdateComparator, getPdateSelector, getPopularity, getPopularityComparator, getPstatus, getPstatusAlarmEntry, getPstatusComparator, getPstatusSelector, getPstatusSelector, getQueryTemplateFile, getReadAck, getReadAckCount, getReaderComparator, getReaderCount, getReaderTracker, getReaderTrackerList, getReadRightSelector, getReadRightsString, getReferrerSet, getRestrictUpdateRights, getRightComparator, getRoleMap, getRoleMapStr, getSdate, getSdateComparator, getSdateSelector, getSearchStrings, getTemplate, getTemplateEntry, getTemplateEntry, getTemplateEntrySet, getTemplatePath, getTemplatePath, getTemplates, getTitle, getTitle, getTitle, getTitleComparator, getTitleComparator, getTitleML, getTitleMLE, getTrackedSelector, getTreeChildren, getTreeParent, getTreeRoot, getTypeComparator, getTypeFieldLabel, getTypeLabel, getUdate, getUdateComparator, getUdateSelector, getUpdateGroupSet, getUpdateGrpIdSet, getUpdateMbrIdSet, getUpdateMemberSet, getVersionString, getVisibleStateSelector, getVoteCount, getVoteScore, getVoteScoreComparator, getVoteValue, getWeakReferrerSet, getWFNoteList, getWFState, getWFStateLabel, getWFStateLabelHtml, getWorkCopySet, getWorkflow, getWorkflowId, getWorkspace, getWorkspaceAuthorSelector, getWorkspaceComparator, getWorkspaceId, getWorkspaceSelector, getWSTypeEntry, getWSTypeEntry, hasAlreadyVoted, hasAnyReadRights, hasBeenReadAckBy, hasBeenReadBy, hasCategory, hasImportConflict, hasNoReadRights, hasWeakReferrers, importConvertToLocal, importMarkAsMerged, importOverrideAndUpdate, importXml, init, initCopy, initializeDBDataCollections, internalCanBeReadBy, invalidateWeakDataImage, isAudienced, isDefaultTemplate, isFollowedBy, isImportConflictCopy, isInRole, isInVisibleState, isPublic, isRoleAssigned, isTracked, isTrashed, isTreeLeaf, isTreeNode, isUserContent, isUserContentType, isVersioned, isVotable, isWorkCopy, majorUpdate, notifyFollowers, performAfterWrite, performBeforeWrite, performDelete, performMerge, performMerge, performTrash, performUntrash, prepareMergeCopy, putPstatusAlarmEntry, recomputeScore, removeAllDescendants, removeAllFollowers, removeAllReaderTracker, removeAuthorizedGroup, removeAuthorizedMember, removeCategory, removeDataSet, removeFollower, removeImportMetadata, removePstatusAlarmEntry, removeWeakReferrer, removeWFExpressAlarm, removeWFReminderAlarm, resolveTypeTemplateEntry, setAbstract, setAbstract, setAdate, setAllCatIdSet, setAttachWorkspaceSet, setAttachWSIdSet, setAuthGrpIdSet, setAuthMbrIdSet, setAuthorizedGroupSet, setAuthorizedMemberSet, setAuthorizedMemberSetDBID, setCategories, setCategorySet, setCatIdSet, setCdate, setDbFriendlyURLSet, setEdate, setFieldValue, setFriendlyURLSet, setHasAttachWS, setHasNoReadRights, setImportConflictCopy, setImportVersion, setMainInstance, setMainInstanceId, setMainLanguage, setMajorVersion, setMergeDate, setMergeId, setMinorVersion, setPdate, setPstatus, setReadAck, setReaderCount, setRestrictUpdateRights, setRoleMap, setRoleMapStr, setRoleMemberSetMap, setSdate, setTemplate, setTemplates, setTitle, setTitle, setTitleML, setTitleMLE, setTracked, setUdate, setUpdateGroupSet, setUpdateGrpIdSet, setUpdateMbrIdSet, setUpdateMemberSet, setVoteCount, setVoteScore, setWorkflow, setWorkflowId, setWorkspace, setWorkspaceId, splitHybridCollections, toCSV, toFullString, toString, trackReader, trackReader, unassignMember, unassignRole, updateDisplayLinkCss, updateDisplayLinkDataAttribute, updatePstatus, updateTemplate
-
Methods inherited from class com.jalios.jcms.Data
canBeReadBy, canBeUnlockedBy, checkAndPerformCreate, checkAndPerformCreate, checkAndPerformDelete, checkAndPerformDelete, checkAndPerformUpdate, checkAndPerformUpdate, checkCreate, checkDelete, checkIntegrity, checkLockMember, checkStrongLockMember, checkStrongLockMember, checkUpdate, cleanHybridCollection, cleanHybridCollection, cleanHybridCollection, clone, computeDBIDArray, computeDBIDList, computeDBIDSet, exportXml, exportXml, exportXml, exportXml, exportXmlRelated, exportXmlRelated, fillExportXmlFieldAttributes, getAllReferrerSet, getAllReferrerSet, getAllTypeFieldEntry, getAuthor, getAuthor, getAuthorComparator, getAuthorDBID, getAuthorId, getAuthorSelector, getBooleanFieldValue, getBooleanFieldValue, getCaddyComparator, getCategoryFieldValue, getCategoryFieldValue, getCdateSelector, getDataIconAlt, getDataIconCSS, getDataIconHtml, getDataIconHtml, getDataImage, getDataImage, getDataNameComparator, getDeletableSelector, getDisplayLink, getDisplayLink, getDisplayLink, getDisplayLinkCss, getDisplayLinkDataAttribute, getDisplayLinkHtmlAttributes, getDisplayUrl, getDoubleFieldValue, getDoubleFieldValue, getExportXmlDataValue, getExtension, getExtraData, getExtraDataMap, getExtraDBData, getExtraDBDataMap, getExtraInfo, getExtraInfoMap, getFieldStatusMap, getFieldValue, getFieldValue, getFieldValue, getGenericThumbnail, getImportAuthor, getImportBatch, getImportDate, getImportDisplayUrl, getImportId, getImportMap, getImportMdate, getImportSelector, getImportSignature, getImportSource, getImportSourceUrl, getImportUrl, getIntFieldValue, getIntFieldValue, getLangPropertyValue, getLinkCount, getLinkIndexedDataSet, getLinkIndexedDataSet, getLockDate, getLockInfo, getLockMember, getLongFieldValue, getLongFieldValue, getMdateSelector, getNewDefaultExtraDataMap, getNewDefaultExtraDataMap, getNewDefaultExtraDataMap, getNewDefaultExtraDataMap, getNewDefaultExtraDBDataMap, getNewDefaultExtraDBDataMap, getNewDefaultExtraDBDataMap, getNewDefaultExtraDBDataMap, getOpAuthor, getOpAuthorComparator, getOpAuthorId, getOpDelegate, getReadAuthorizedSelector, getReferrerSet, getRowId, getRowIdComparator, getStrongLock, getStrongLockContext, getStrongLockContextData, getStrongLockDate, getStrongLockInfo, getStrongLockMember, getStrongLockSelector, getTypeEntry, getTypeFieldsEntries, getUpdateInstance, getVirtualIDSet, importXmlFieldsWithReferences, importXmlFiles, importXmlReferences, isDBData, isImported, isImportUpdated, isInDatabase, isLocked, isPersisted, isStrongLocked, lock, markNewImport, mergeHybridLink, mergeHybridLink, performCreate, performDelete, performUpdate, prepareUpdateContext, printDataName, printDisplayLinkEnd, printDisplayLinkStart, printDisplayLinkStart, printDisplayUrl, printDisplayUrl, putStrongLock, putStrongLock, releaseStrongLock, releaseStrongLock, removeExtraData, removeExtraDBData, removeExtraInfo, setAuthor, setAuthorDBID, setAuthorId, setBooleanFieldValue, setCategoryFieldValue, setDoubleFieldValue, setExtension, setExtraData, setExtraDataMap, setExtraDBData, setExtraDBDataMap, setExtraDBDataMap, setExtraInfo, setFieldValue, setId, setImportAuthor, setImportBatch, setImportDate, setImportDisplayUrl, setImportId, setImportMap, setImportMdate, setImportSignature, setImportSource, setImportSourceUrl, setImportUpdated, setIntFieldValue, setLongFieldValue, setMdate, setOpAuthor, setOpAuthorId, setOpDelegate, setRowId, unlock, unlock, unmarkNewImport, updateDisplayLinkHtmlAttributes, updateExtraDataMap, updateExtraDBDataMap, updateIndexTreeSet
-
Methods inherited from class com.jalios.jstore.BasicStorable
clearId, compareTo, equals, getAttribute, getAttributes, getCdate, getCdateComparator, getDdate, getId, getIdComparator, getMdate, getMdateComparator, getStore, getUrid, hasBeenUpdated, hashCode, isStored, resetInternalCaches, resolveAtt, resolveVal, setAttributes, setAttributes, setDdate, 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
getDataIconHtml, getPeriodicityEndDate, setPeriodicityEndDate
-
-
-
-
Field Detail
-
REVISION
public static final java.lang.String REVISION
- See Also:
- Constant Field Values
-
REMINDER_ALERT
public static final java.lang.String REMINDER_ALERT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractCalendarEvent
public AbstractCalendarEvent()
-
AbstractCalendarEvent
public AbstractCalendarEvent(Content other)
-
-
Method Detail
-
getStartDate
public abstract java.util.Date getStartDate()
- Specified by:
getStartDate
in interfaceCalendarEventInterface
-
getEndDate
public abstract java.util.Date getEndDate()
- Specified by:
getEndDate
in interfaceCalendarEventInterface
-
getImportanceLevel
public abstract java.lang.String getImportanceLevel()
- Specified by:
getImportanceLevel
in interfaceCalendarEventInterface
-
getAuthorAttendee
public abstract boolean getAuthorAttendee()
- Specified by:
getAuthorAttendee
in interfaceCalendarEventInterface
-
setAuthorAttendee
public abstract void setAuthorAttendee(boolean b)
- Specified by:
setAuthorAttendee
in interfaceCalendarEventInterface
-
getDayEventFlag
public abstract boolean getDayEventFlag()
- Specified by:
getDayEventFlag
in interfaceCalendarEventInterface
-
setStartDate
public abstract void setStartDate(java.util.Date date)
- Specified by:
setStartDate
in interfaceCalendarEventInterface
-
setEndDate
public abstract void setEndDate(java.util.Date date)
- Specified by:
setEndDate
in interfaceCalendarEventInterface
-
getEventDuration
public long getEventDuration()
Description copied from interface:CalendarEventInterface
Returns the event duration- Specified by:
getEventDuration
in interfaceCalendarEventInterface
- Returns:
- the event duration or -1 if start date or end date is null
-
overlapWith
public boolean overlapWith(CalendarEventInterface ev)
Description copied from interface:CalendarEventInterface
Check if calendar event overlap with another one- Specified by:
overlapWith
in interfaceCalendarEventInterface
- Parameters:
ev
- the other calendar event- Returns:
- true if they overlap, false otherwise
-
overlapWith
public boolean overlapWith(java.util.Date startDate, java.util.Date endDate)
Description copied from interface:CalendarEventInterface
Check if calendar event overlap with given interval- Specified by:
overlapWith
in interfaceCalendarEventInterface
- Parameters:
startDate
- the start date of the interval to checkendDate
- the end date of the interval to check- Returns:
- true if event overlap with given interval, false otherwise
-
getCalendarEventDateSelector
public static AbstractCalendarEvent.CalendarEventDateSelector getCalendarEventDateSelector(java.util.Date startDate, java.util.Date endDate)
-
getCalendarEventDateSelector
public static AbstractCalendarEvent.CalendarEventDateSelector getCalendarEventDateSelector(java.util.Date startDate, java.util.Date endDate, boolean dayEventFlag)
Create aDataSelector
forAbstractCalendarEvent
- Parameters:
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- Returns:
- the
AbstractCalendarEvent.CalendarEventDateSelector
-
getStartDateComparator
public static AbstractCalendarEvent.StartDateComparator<CalendarEventInterface> getStartDateComparator()
- Returns:
- a new instance of StartDateComparator
-
isAttendee
public boolean isAttendee(Member mbr)
Description copied from interface:CalendarEventInterface
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- Specified by:
isAttendee
in interfaceCalendarEventInterface
- Parameters:
mbr
- the member to check- Returns:
- true if the member attends the event, false otherwise
-
isAttendee
public boolean isAttendee(Member mbr, boolean checkReadRight)
Description copied from interface:CalendarEventInterface
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- Specified by:
isAttendee
in interfaceCalendarEventInterface
- Parameters:
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)- Returns:
- true if the member attends the event, false otherwise
-
getCalendarEventAttendeeListSelector
public static AbstractCalendarEvent.CalendarEventAttendeeSelector getCalendarEventAttendeeListSelector(java.util.List<Member> mbrList)
- Parameters:
mbrList
- the memberList
to select the calendar event- Returns:
- a new instance of CalendarEventAttendeeSelector initialiazed with the given member
- Since:
- jcms-9.0
-
getCalendarEventAttendeeListSelector
public static AbstractCalendarEvent.CalendarEventAttendeeSelector getCalendarEventAttendeeListSelector(java.util.List<Member> mbrList, boolean checkReadRight)
- Parameters:
mbrList
- the memberList
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- Returns:
- a new instance of CalendarEventAttendeeSelector initialiazed with the given member
- Since:
- jcms-9.0
-
getCalendarEventAttendeeSelector
public static AbstractCalendarEvent.CalendarEventAttendeeSelector getCalendarEventAttendeeSelector(Member mbr)
- Parameters:
mbr
- the member to select the calendar event- Returns:
- a new instance of CalendarEventAttendeeSelector initialiazed with the given member
-
getCalendarEventAttendeeSelector
public static AbstractCalendarEvent.CalendarEventAttendeeSelector getCalendarEventAttendeeSelector(Member mbr, boolean checkReadRight)
- Parameters:
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- Returns:
- a new instance of CalendarEventAttendeeSelector initialiazed with the given member
- Since:
- jcms-6.1.3, jcms-7.0
-
getReminderDuration
public abstract long getReminderDuration()
- Specified by:
getReminderDuration
in interfaceCalendarEventInterface
-
setReminderDuration
public abstract void setReminderDuration(long v)
- Specified by:
setReminderDuration
in interfaceCalendarEventInterface
-
getAttendingMembers
public abstract Member[] getAttendingMembers()
- Specified by:
getAttendingMembers
in interfaceCalendarEventInterface
-
setAttendingMembers
public abstract void setAttendingMembers(Member[] v)
- Specified by:
setAttendingMembers
in interfaceCalendarEventInterface
-
getAttendingGroups
public abstract Group[] getAttendingGroups()
- Specified by:
getAttendingGroups
in interfaceCalendarEventInterface
-
setAttendingGroups
public abstract void setAttendingGroups(Group[] v)
- Specified by:
setAttendingGroups
in interfaceCalendarEventInterface
-
isReminderEnabled
public boolean isReminderEnabled()
- Specified by:
isReminderEnabled
in interfaceCalendarEventInterface
- Returns:
- true if reminder is enabled, false otherwise
-
getReminderDate
public java.util.Date getReminderDate()
- Specified by:
getReminderDate
in interfaceCalendarEventInterface
- Returns:
- the reminder date
-
getAllAttendingMembersSet
public java.util.TreeSet<Member> getAllAttendingMembersSet()
Description copied from interface:CalendarEventInterface
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).- Specified by:
getAllAttendingMembersSet
in interfaceCalendarEventInterface
- Returns:
- a TreeSet of all member attending to this event
-
getAllAttendingMembersSet
public java.util.TreeSet<Member> getAllAttendingMembersSet(boolean checkReadRight)
Description copied from interface:CalendarEventInterface
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).- Specified by:
getAllAttendingMembersSet
in interfaceCalendarEventInterface
- 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
-
getAttendingMemberSet
public java.util.TreeSet<Member> getAttendingMemberSet()
Description copied from interface:CalendarEventInterface
Retrieve the attending members as a Set, with the author included.- Specified by:
getAttendingMemberSet
in interfaceCalendarEventInterface
- Returns:
- the set of attending members corresponding to attenginmembers with author added, never return null
-
removeAttendee
public boolean removeAttendee(Member mbr)
Description copied from interface:CalendarEventInterface
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.- Specified by:
removeAttendee
in interfaceCalendarEventInterface
- Parameters:
mbr
- the Member to remove- Returns:
- true if a modification was made
-
updateAllAttendingMembersSet
public void updateAllAttendingMembersSet()
Description copied from interface:CalendarEventInterface
Clear and update the transient cache of all attending member set.- Specified by:
updateAllAttendingMembersSet
in interfaceCalendarEventInterface
-
remind
@Deprecated public void remind()
Deprecated.Description copied from interface:CalendarEventInterface
remind author and attendees of event- Specified by:
remind
in interfaceCalendarEventInterface
-
checkIntegrity
public ControllerStatus checkIntegrity()
Checks whether or not data integrity constraints are respected.- Overrides:
checkIntegrity
in classPublication
- Returns:
- a ControllerStatus
- Since:
- jcms-5.0.0
-
checkAttendeesIntegrity
public static ControllerStatus checkAttendeesIntegrity(AbstractCalendarEvent event, Member[] attendees)
-
performCreate
public void performCreate(Member mbr, java.util.Map context)
Performs additionnal task during creation of CalendarEvent. - Synchronize the SDate with the StartDate.- Overrides:
performCreate
in classPublication
- Parameters:
mbr
- the member which requests the write operationcontext
- a map which contains context parameters (may be null)- Since:
- jcms-5.5.0
-
performUpdate
public void performUpdate(Member mbr, java.util.Map context)
Performs additionnal task during update of CalendarEvent. - Synchronize the SDate with the StartDate.- Overrides:
performUpdate
in classPublication
- Parameters:
mbr
- the member which requests the write operationcontext
- a map which contains context parameters (may be null)- Since:
- jcms-5.5.0
-
setFreeSignUp
public abstract void setFreeSignUp(boolean v)
- Specified by:
setFreeSignUp
in interfaceCalendarEventInterface
-
getFreeSignUp
public abstract boolean getFreeSignUp()
- Specified by:
getFreeSignUp
in interfaceCalendarEventInterface
-
setSendEventUpdateMail
public abstract void setSendEventUpdateMail(boolean v)
- Specified by:
setSendEventUpdateMail
in interfaceCalendarEventInterface
-
getSendEventUpdateMail
public abstract boolean getSendEventUpdateMail()
- Specified by:
getSendEventUpdateMail
in interfaceCalendarEventInterface
-
setDocuments
public abstract void setDocuments(FileDocument[] v)
- Specified by:
setDocuments
in interfaceCalendarEventInterface
-
getDocuments
public abstract FileDocument[] getDocuments()
- Specified by:
getDocuments
in interfaceCalendarEventInterface
-
setResources
public abstract void setResources(AbstractEventResource[] v)
- Specified by:
setResources
in interfaceCalendarEventInterface
-
getResources
public abstract AbstractEventResource[] getResources()
- Specified by:
getResources
in interfaceCalendarEventInterface
-
setPrivateFlag
public abstract void setPrivateFlag(boolean v)
- Specified by:
setPrivateFlag
in interfaceCalendarEventInterface
-
getPrivateFlag
public abstract boolean getPrivateFlag()
- Specified by:
getPrivateFlag
in interfaceCalendarEventInterface
-
setPeriodicity
public abstract void setPeriodicity(java.lang.String v)
- Specified by:
setPeriodicity
in interfaceCalendarEventInterface
-
getPeriodicity
public abstract java.lang.String getPeriodicity()
- Specified by:
getPeriodicity
in interfaceCalendarEventInterface
-
setLocation
public abstract void setLocation(java.lang.String v)
- Specified by:
setLocation
in interfaceCalendarEventInterface
-
getLocation
public abstract java.lang.String getLocation()
- Specified by:
getLocation
in interfaceCalendarEventInterface
-
getLocation
public abstract java.lang.String getLocation(java.lang.String lang)
- Specified by:
getLocation
in interfaceCalendarEventInterface
-
getDescription
public abstract java.lang.String getDescription(java.lang.String lang)
- Specified by:
getDescription
in interfaceCalendarEventInterface
-
getUseFrontOfficeCalendarEditionModal
public boolean getUseFrontOfficeCalendarEditionModal()
Description copied from interface:CalendarEventInterface
Whether we use the Calendar edition modal in Front Office.- Specified by:
getUseFrontOfficeCalendarEditionModal
in interfaceCalendarEventInterface
- Returns:
true
if we use the Calendar edition modal.
-
getDataIcon
public java.lang.String getDataIcon()
Description copied from class:Data
Returns source information for the icon associated to this Data, either a relative path or sprite classes name.If this method behavior has not been overriden by subclass, the default icon can be declared using property
types.{Type}.icon
, where{Type}
is the short class name of the type concerned.- Either by specifying a relative image path :
types.Article.icon: images/jalios/icon/abstract.gif
- or else by using a sprite icon :
types.Article.icon: ss_sprite ss_date
- Overrides:
getDataIcon
in classPublication
- Returns:
- a relative path (eg
images/jalios/icon/abstract.gif
) or sprite classes name (egss_sprite ss_date
). - See Also:
Data.getDataIconHtml(String)
- Either by specifying a relative image path :
-
getDataIcon
protected java.lang.String getDataIcon(CalendarEventInterface.IconSize size)
-
getDataIconHtml
public java.lang.String getDataIconHtml(java.lang.String lang, CalendarEventInterface.IconSize size)
Description copied from interface:CalendarEventInterface
Compute html icon for this event by specifying a size in parameter.- Specified by:
getDataIconHtml
in interfaceCalendarEventInterface
- Parameters:
lang
- the user language.size
- icon size- Returns:
- the html string of the icon
-
getNotDeclinedAttendeeSet
public abstract java.util.Set<Member> getNotDeclinedAttendeeSet()
Retrieves the Set of attendees which has not declined (accepted ou pending attendees)- Returns:
- the Set of attendees which has not declined
-
getAttendeeSelector
public static DataSelector getAttendeeSelector(CalendarEventInterface event, boolean checkReadRights)
Get AttendeeDataSelector
Return true is user is enabled and can read event (if checkReadRights parameter is true)- Parameters:
event
- the event used to check rightscheckReadRights
- true if the read rights should be checked.- Returns:
- the
DataSelector
-
-