/* * * Copyright 2013 Entando S.r.l. (http://www.entando.com) All rights reserved. * * This file is part of Entando software. * Entando is a free software; * You can redistribute it and/or modify it * under the terms of the GNU General Public License (GPL) as published by the Free Software Foundation; version 2. * * See the file License for the specific language governing permissions * and limitations under the License * * * * Copyright 2013 Entando S.r.l. (http://www.entando.com) All rights reserved. * */ package com.agiletec.plugins.jpcontentworkflow.aps.system.services.notifier.model; import java.util.Date; /** * @author E.Santoboni */ public class NotifierConfig implements Cloneable { @Override public NotifierConfig clone() { NotifierConfig config = new NotifierConfig(); config.setActive(this.isActive()); config.setStartScheduler(this.getStartScheduler()); config.setHoursDelay(this.getHoursDelay()); config.setSenderCode(this.getSenderCode()); //config.setMailAttrName(this.getMailAttrName()); config.setHtml(this.isHtml()); config.setSubject(this.getSubject()); config.setHeader(this.getHeader()); config.setTemplate(this.getTemplate()); config.setFooter(this.getFooter()); return config; } public boolean isActive() { return _active; } public void setActive(boolean active) { this._active = active; } public int getHoursDelay() { return _hoursDelay; } public void setHoursDelay(int hoursDelay) { this._hoursDelay = hoursDelay; } public Date getStartScheduler() { return _startScheduler; } public void setStartScheduler(Date startScheduler) { this._startScheduler = startScheduler; } public String getSenderCode() { return _senderCode; } public void setSenderCode(String senderCode) { this._senderCode = senderCode; } /* public String getMailAttrName() { return _mailAttrName; } public void setMailAttrName(String mailAttrName) { this._mailAttrName = mailAttrName; } */ public boolean isHtml() { return _html; } public void setHtml(boolean html) { this._html = html; } public String getSubject() { return _subject; } public void setSubject(String subject) { this._subject = subject; } public String getHeader() { return _header; } public void setHeader(String header) { this._header = header; } public String getTemplate() { return _template; } public void setTemplate(String template) { this._template = template; } public String getFooter() { return _footer; } public void setFooter(String footer) { this._footer = footer; } private boolean _active = false; private Date _startScheduler = new Date(); private int _hoursDelay; private String _senderCode; //private String _mailAttrName; private boolean _html; private String _subject = ""; private String _header = ""; private String _template = ""; private String _footer = ""; }