@Service public class CalendarEventEditionServiceImpl extends CalendarServiceImpl implements CalendarEventEditionService
CalendarServiceImpl,
CalendarEventEditionService| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.ApplicationContext |
applicationContext
Application context.
|
protected static String |
ATTACHMENT_TEMPORARY_FILE_PREFIX
Attachment temporary file prefix.
|
protected static String |
CREATION_PORTLET_TITLE_KEY
Creation portlet title internationalization key.
|
protected static String |
DATE_FORMAT_SEPARATOR
Date format separator.
|
protected DateFormat |
dateFormat
Date format.
|
protected DateFormat |
dateTimeFormat
Date time format.
|
protected static String |
EDITION_PORTLET_TITLE_KEY
Edition portlet title internationalization key.
|
protected org.apache.commons.logging.Log |
log
Log.
|
protected static String |
PORTLET_TITLE_KEY_PREFIX
Portlet title internationalization key prefix.
|
TEMPORARY_FILE_SUFFIXCOLOR_PROPERTY, DATE_FORMAT_PATTERN, PORTLET_INSTANCE, TIME_FORMAT_PATTERNCREATION_PROPERTY| Constructor and Description |
|---|
CalendarEventEditionServiceImpl()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(org.osivia.portal.api.context.PortalControllerContext portalControllerContext)
Cancel.
|
void |
deleteAttachment(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
CalendarCommonEventForm form,
int index)
Delete attachment.
|
protected CalendarColor |
getCalendarColor(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
CalendarEditionOptions options) |
CalendarColorPropertyEditor |
getCalendarColorPropertyEditor()
Get calendar color property editor
|
CalendarCommonEventForm |
getForm(org.osivia.portal.api.context.PortalControllerContext portalControllerContext)
Get calendar event edition form.
|
protected String |
getPortletTitle(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
boolean creation)
Get portlet title.
|
void |
restoreAttachment(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
CalendarCommonEventForm form,
int index)
Restore attachment.
|
void |
save(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
CalendarEditionOptions options,
CalendarCommonEventForm form)
Save.
|
protected void |
updateFormDates(CalendarCommonEventForm form)
Update calendar event dates.
|
void |
uploadAttachments(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
CalendarCommonEventForm form)
Upload attachments.
|
getCalendarColor, getEditionOptions, getOptionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCalendarColor, getEditionOptions, getOptionsprotected static final String PORTLET_TITLE_KEY_PREFIX
protected static final String CREATION_PORTLET_TITLE_KEY
protected static final String EDITION_PORTLET_TITLE_KEY
protected static final String DATE_FORMAT_SEPARATOR
protected static final String ATTACHMENT_TEMPORARY_FILE_PREFIX
@Autowired protected org.springframework.context.ApplicationContext applicationContext
protected final org.apache.commons.logging.Log log
protected final DateFormat dateFormat
protected final DateFormat dateTimeFormat
public CalendarEventEditionServiceImpl()
protected String getPortletTitle(org.osivia.portal.api.context.PortalControllerContext portalControllerContext, boolean creation) throws javax.portlet.PortletException
getPortletTitle in class CalendarServiceImplportalControllerContext - portal controller contextcreation - creation indicatorjavax.portlet.PortletExceptionpublic CalendarCommonEventForm getForm(org.osivia.portal.api.context.PortalControllerContext portalControllerContext) throws javax.portlet.PortletException
getForm in interface CalendarEventEditionServiceportalControllerContext - portal controller contextjavax.portlet.PortletExceptionpublic void uploadAttachments(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
CalendarCommonEventForm form)
throws javax.portlet.PortletException,
IOException
uploadAttachments in interface CalendarEventEditionServiceportalControllerContext - portal controller contextform - calendar event edition formjavax.portlet.PortletExceptionIOExceptionpublic void deleteAttachment(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
CalendarCommonEventForm form,
int index)
throws javax.portlet.PortletException,
IOException
deleteAttachment in interface CalendarEventEditionServiceportalControllerContext - portal controller contextform - calendar event edition formindex - attachment indexjavax.portlet.PortletExceptionIOExceptionpublic void restoreAttachment(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
CalendarCommonEventForm form,
int index)
throws javax.portlet.PortletException,
IOException
restoreAttachment in interface CalendarEventEditionServiceportalControllerContext - portal controller contextform - calendar event edition formindex - attachment indexjavax.portlet.PortletExceptionIOExceptionpublic void save(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
CalendarEditionOptions options,
CalendarCommonEventForm form)
throws javax.portlet.PortletException,
IOException
save in interface CalendarEventEditionServiceportalControllerContext - portal controller contextoptions - calendar edition optionsform - calendar event edition formjavax.portlet.PortletExceptionIOExceptionpublic void cancel(org.osivia.portal.api.context.PortalControllerContext portalControllerContext)
throws javax.portlet.PortletException,
IOException
cancel in interface CalendarEventEditionServiceportalControllerContext - portal controller contextjavax.portlet.PortletExceptionIOExceptionpublic CalendarColorPropertyEditor getCalendarColorPropertyEditor()
getCalendarColorPropertyEditor in interface CalendarEventEditionServiceprotected void updateFormDates(CalendarCommonEventForm form)
form - calendar event edition formprotected CalendarColor getCalendarColor(org.osivia.portal.api.context.PortalControllerContext portalControllerContext, CalendarEditionOptions options) throws javax.portlet.PortletException
javax.portlet.PortletExceptionCopyright © 2020 OSIVIA. All rights reserved.