public CaleventUpdateCommand(String id, int flags) {
super(id, flags);
}
protected void process(AuRequest request) {
final Calendars cmp = (Calendars) request.getComponent();
if (cmp == null)
throw new UiException(MZk.ILLEGAL_REQUEST_COMPONENT_REQUIRED, this);
final String[] data = request.getData();
if (data == null || data.length != 7)
throw new UiException(MZk.ILLEGAL_REQUEST_WRONG_DATA, new Object[] {
Objects.toString(data), this });
CalendarEvent ce = cmp.getCalendarEventById(data[0]);
TimeZone tz = cmp.getDefaultTimeZone();
Date eventBegin = new Date(Long.parseLong(data[1]));
Date eventEnd = new Date(Long.parseLong(data[2]));
if (tz.inDaylightTime(eventBegin))
eventBegin = new Date(eventBegin.getTime() - tz.getDSTSavings());
if (tz.inDaylightTime(eventEnd))