This project has retired. For details please refer to its Attic page.
Source code
001// =================== DO NOT EDIT THIS FILE ====================
002// Generated by Modello 1.7,
003// any modifications will be overwritten.
004// ==============================================================
005
006package org.apache.archiva.configuration;
007
008/**
009 * Class SyncConnectorConfiguration.
010 * 
011 * @version $Revision$ $Date$
012 */
013@SuppressWarnings( "all" )
014public class SyncConnectorConfiguration
015    extends AbstractRepositoryConnectorConfiguration
016    implements java.io.Serializable
017{
018
019      //--------------------------/
020     //- Class/Member Variables -/
021    //--------------------------/
022
023    /**
024     * When to run the sync mechanism. Default is every hour on the
025     * hour.
026     */
027    private String cronExpression = "0 0 * * * ?";
028
029    /**
030     * The type of synchronization to use.
031     */
032    private String method = "rsync";
033
034
035      //-----------/
036     //- Methods -/
037    //-----------/
038
039    /**
040     * Get when to run the sync mechanism. Default is every hour on
041     * the hour.
042     * 
043     * @return String
044     */
045    public String getCronExpression()
046    {
047        return this.cronExpression;
048    } //-- String getCronExpression()
049
050    /**
051     * Get the type of synchronization to use.
052     * 
053     * @return String
054     */
055    public String getMethod()
056    {
057        return this.method;
058    } //-- String getMethod()
059
060    /**
061     * Set when to run the sync mechanism. Default is every hour on
062     * the hour.
063     * 
064     * @param cronExpression
065     */
066    public void setCronExpression( String cronExpression )
067    {
068        this.cronExpression = cronExpression;
069    } //-- void setCronExpression( String )
070
071    /**
072     * Set the type of synchronization to use.
073     * 
074     * @param method
075     */
076    public void setMethod( String method )
077    {
078        this.method = method;
079    } //-- void setMethod( String )
080
081}