Package de.forsthaus.backend.model

Examples of de.forsthaus.backend.model.MyCalendarEvent


    ce.setTitle(txtb_title.getValue());
    ce.setContent(ppcnt.getValue());
    ce.setLocked(pplocked.isChecked());

    // prepare the backend Bean
    MyCalendarEvent calEvt = getCalendarEventService().getNewCalendarEvent();
    calEvt.setId(ce.getId());
    calEvt.setSecUser(ce.getUser());
    calEvt.setVersion(ce.getVersion());
    calEvt.setTitle(ce.getTitle());
    calEvt.setContent(ce.getContent());
    calEvt.setBeginDate(ce.getBeginDate());
    calEvt.setEndDate(ce.getEndDate());
    calEvt.setHeaderColor(ce.getHeaderColor());
    calEvt.setContentColor(ce.getContentColor());

    // Save the calendar event to database
    try {

      getCalendarEventService().saveOrUpdate(calEvt);
View Full Code Here


      private void deleteBean() {
        // delete from modell
        MySimpleCalendarEvent ce = (MySimpleCalendarEvent) editEventWindow.getAttribute("ce");

        // prepare the backend Bean
        MyCalendarEvent calEvt = getCalendarEventService().getNewCalendarEvent();
        calEvt.setId(ce.getId());
        calEvt.setTitle(ce.getTitle());
        calEvt.setContent(ce.getContent());
        calEvt.setBeginDate(ce.getBeginDate());
        calEvt.setEndDate(ce.getEndDate());
        calEvt.setContentColor(ce.getContentColor());
        calEvt.setVersion(ce.getVersion());

        // delete from db
        try {
          getCalendarEventService().delete(calEvt);
          syncModel();
View Full Code Here

    sce.setEndDate(evt.getEndDate());
    // update the model
    // m.update(sce); <-- if activated, later an error occurs

    // prepare the backend Bean
    MyCalendarEvent calEvt = getCalendarEventService().getNewCalendarEvent();
    calEvt.setId(sce.getId());
    calEvt.setSecUser(sce.getUser());
    calEvt.setVersion(sce.getVersion());
    calEvt.setTitle(sce.getTitle());
    calEvt.setContent(sce.getContent());
    calEvt.setBeginDate(sce.getBeginDate());
    calEvt.setEndDate(sce.getEndDate());
    calEvt.setHeaderColor(sce.getHeaderColor());
    calEvt.setContentColor(sce.getContentColor());
    // Save the calendar event to database
    try {
      getCalendarEventService().saveOrUpdate(calEvt);
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here

    ppet.setSelectedIndex(0);

    final SecUser user = ((UserImpl) SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getSecUser();

    // prepare the backend Bean
    MyCalendarEvent calEvt = getCalendarEventService().getNewCalendarEvent();
    calEvt.setSecUser(user);
    calEvt.setTitle(ce.getTitle());
    calEvt.setContent(ce.getContent());
    calEvt.setBeginDate(ce.getBeginDate());
    calEvt.setEndDate(ce.getEndDate());
    calEvt.setHeaderColor(colors[0]);
    calEvt.setContentColor(ce.getContentColor());

    // Save the calendar event to database
    try {
      getCalendarEventService().saveOrUpdate(calEvt);
      syncModel();
View Full Code Here

@Repository
public class MyCalendarEventDAOImpl extends BasisDAO<MyCalendarEvent> implements MyCalendarEventDAO {

  @Override
  public MyCalendarEvent getNewCalendarEvent() {
    return new MyCalendarEvent();
  }
View Full Code Here

TOP

Related Classes of de.forsthaus.backend.model.MyCalendarEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.