Package com.agiletec.plugins.jpcalendar.aps.system.services.calendar

Examples of com.agiletec.plugins.jpcalendar.aps.system.services.calendar.CalendarConfig


    }
  }
 
  public String edit() {
    try {
      CalendarConfig config = this.getCalendarManager().getConfig();
      if (null != config && null != this.getContentManager().getSmallContentTypesMap().get(config.getContentTypeCode())) {
        this.setContentType(config.getContentTypeCode());
        this.setStartDateAttributeName(config.getStartAttributeName());
        this.setEndDateAttributeName(config.getEndAttributeName());
      }
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "edit");
      return FAILURE;
    }
View Full Code Here


    return SUCCESS;
  }
 
  public String save() {
    try {
      CalendarConfig config = new CalendarConfig();
      config.setContentTypeCode(this.getContentType());
      config.setStartAttributeName(this.getStartDateAttributeName());
      config.setEndAttributeName(this.getEndDateAttributeName());
      this.getCalendarManager().updateConfig(config);
      this.addActionMessage(this.getText("message.calendarConfig.updated"));
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "save");
      return FAILURE;
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jpcalendar.aps.system.services.calendar.CalendarConfig

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.