/*! * This program is free software; you can redistribute it and/or modify it under the * terms of the GNU Lesser General Public License, version 2.1 as published by the Free Software * Foundation. * * You should have received a copy of the GNU Lesser General Public License along with this * program; if not, you can obtain a copy at http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html * or from the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU Lesser General Public License for more details. * * Copyright (c) 2002-2013 Pentaho Corporation.. All rights reserved. */ package org.pentaho.platform.web.http.api.resources; import javax.xml.bind.annotation.XmlRootElement; import java.util.Date; @XmlRootElement public class ComplexJobTriggerProxy { int[] daysOfWeek = new int[0]; int[] daysOfMonth = new int[0]; int[] weeksOfMonth = new int[0]; int[] monthsOfYear = new int[0]; int[] years = new int[0]; Date startTime; Date endTime; String uiPassParam; String cronString; public Date getStartTime() { return startTime; } public void setStartTime( Date startTime ) { this.startTime = startTime; } public Date getEndTime() { return endTime; } public void setEndTime( Date endTime ) { this.endTime = endTime; } public int[] getDaysOfWeek() { return daysOfWeek; } public void setDaysOfWeek( int[] daysOfWeek ) { if ( ( daysOfWeek != null ) && ( daysOfWeek.length > 0 ) ) { setDaysOfMonth( null ); } this.daysOfWeek = daysOfWeek == null ? new int[0] : daysOfWeek; } public int[] getDaysOfMonth() { return daysOfMonth; } public void setDaysOfMonth( int[] daysOfMonth ) { if ( ( daysOfMonth != null ) && ( daysOfMonth.length > 0 ) ) { setDaysOfWeek( null ); } this.daysOfMonth = daysOfMonth == null ? new int[0] : daysOfMonth; } public int[] getWeeksOfMonth() { return weeksOfMonth; } public void setWeeksOfMonth( int[] weeksOfMonth ) { this.weeksOfMonth = weeksOfMonth == null ? new int[0] : weeksOfMonth; } public int[] getMonthsOfYear() { return monthsOfYear; } public void setMonthsOfYear( int[] monthsOfYear ) { this.monthsOfYear = monthsOfYear == null ? new int[0] : monthsOfYear; } public int[] getYears() { return years; } public void setYears( int[] years ) { this.years = years == null ? new int[0] : years; } public String getUiPassParam() { return uiPassParam; } public void setUiPassParam( String uiPassParam ) { this.uiPassParam = uiPassParam; } public String getCronString() { return cronString; } public void setCronString( String cronString ) { this.cronString = cronString; } }