All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sakaiproject.component.app.scheduler.jobs.SpringInitialJobSchedule Maven / Gradle / Ivy

The newest version!
/**
 * Copyright (c) 2003-2010 The Apereo Foundation
 *
 * Licensed under the Educational Community License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *             http://opensource.org/licenses/ecl2
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.sakaiproject.component.app.scheduler.jobs;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: duffy
 * Date: Sep 20, 2010
 * Time: 3:36:40 PM
 * To change this template use File | Settings | File Templates.
 */
public class SpringInitialJobSchedule
{
    private SpringJobBeanWrapper jobWrapper;
    private String name;
    private String triggerName;
    private String cronExpression;
    private Map  configuration = new HashMap();

    public void setJobBeanWrapper (SpringJobBeanWrapper jobWrapper)
    {
        this.jobWrapper = jobWrapper;
    }

    public SpringJobBeanWrapper getJobBeanWrapper()
    {
        return jobWrapper;
    }

    public void setJobName (String name)
    {
        this.name = name;
    }

    public String getJobName()
    {
        return name;
    }

    public void setTriggerName (String tName)
    {
        this.triggerName = tName;
    }

    public String getTriggerName()
    {
        return triggerName;
    }

    public void setCronExpression (String exp)
    {
        this.cronExpression = exp;
    }

    public String getCronExpression ()
    {
        return cronExpression;
    }

    public void setConfiguration (Map conf)
    {
        configuration.clear();

        if (conf != null)
            configuration.putAll(conf);
    }

    public Map getConfiguration()
    {
        return configuration;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy