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 RepositoryGroupConfiguration.
010 * 
011 * @version $Revision$ $Date$
012 */
013@SuppressWarnings( "all" )
014public class RepositoryGroupConfiguration
015    implements java.io.Serializable
016{
017
018      //--------------------------/
019     //- Class/Member Variables -/
020    //--------------------------/
021
022    /**
023     * The id of the repository group.
024     */
025    private String id;
026
027    /**
028     * The path of the merged index.
029     */
030    private String mergedIndexPath = "/.indexer";
031
032    /**
033     * The time to live of the merged index of the repository group.
034     */
035    private int mergedIndexTtl = 30;
036
037    /**
038     * 
039     *           When to run the index merging for this group.
040     *           No default value.
041     *           
042     */
043    private String cronExpression = "";
044
045    /**
046     * Field repositories.
047     */
048    private java.util.List<String> repositories;
049
050
051      //-----------/
052     //- Methods -/
053    //-----------/
054
055    /**
056     * Method addRepository.
057     * 
058     * @param string
059     */
060    public void addRepository( String string )
061    {
062        getRepositories().add( string );
063    } //-- void addRepository( String )
064
065    /**
066     * Get when to run the index merging for this group.
067     *           No default value.
068     * 
069     * @return String
070     */
071    public String getCronExpression()
072    {
073        return this.cronExpression;
074    } //-- String getCronExpression()
075
076    /**
077     * Get the id of the repository group.
078     * 
079     * @return String
080     */
081    public String getId()
082    {
083        return this.id;
084    } //-- String getId()
085
086    /**
087     * Get the path of the merged index.
088     * 
089     * @return String
090     */
091    public String getMergedIndexPath()
092    {
093        return this.mergedIndexPath;
094    } //-- String getMergedIndexPath()
095
096    /**
097     * Get the time to live of the merged index of the repository
098     * group.
099     * 
100     * @return int
101     */
102    public int getMergedIndexTtl()
103    {
104        return this.mergedIndexTtl;
105    } //-- int getMergedIndexTtl()
106
107    /**
108     * Method getRepositories.
109     * 
110     * @return List
111     */
112    public java.util.List<String> getRepositories()
113    {
114        if ( this.repositories == null )
115        {
116            this.repositories = new java.util.ArrayList<String>();
117        }
118
119        return this.repositories;
120    } //-- java.util.List<String> getRepositories()
121
122    /**
123     * Method removeRepository.
124     * 
125     * @param string
126     */
127    public void removeRepository( String string )
128    {
129        getRepositories().remove( string );
130    } //-- void removeRepository( String )
131
132    /**
133     * Set when to run the index merging for this group.
134     *           No default value.
135     * 
136     * @param cronExpression
137     */
138    public void setCronExpression( String cronExpression )
139    {
140        this.cronExpression = cronExpression;
141    } //-- void setCronExpression( String )
142
143    /**
144     * Set the id of the repository group.
145     * 
146     * @param id
147     */
148    public void setId( String id )
149    {
150        this.id = id;
151    } //-- void setId( String )
152
153    /**
154     * Set the path of the merged index.
155     * 
156     * @param mergedIndexPath
157     */
158    public void setMergedIndexPath( String mergedIndexPath )
159    {
160        this.mergedIndexPath = mergedIndexPath;
161    } //-- void setMergedIndexPath( String )
162
163    /**
164     * Set the time to live of the merged index of the repository
165     * group.
166     * 
167     * @param mergedIndexTtl
168     */
169    public void setMergedIndexTtl( int mergedIndexTtl )
170    {
171        this.mergedIndexTtl = mergedIndexTtl;
172    } //-- void setMergedIndexTtl( int )
173
174    /**
175     * Set the list of repository ids under the group.
176     * 
177     * @param repositories
178     */
179    public void setRepositories( java.util.List<String> repositories )
180    {
181        this.repositories = repositories;
182    } //-- void setRepositories( java.util.List )
183
184}