001    // =================== DO NOT EDIT THIS FILE ====================
002    // Generated by Modello 1.7,
003    // any modifications will be overwritten.
004    // ==============================================================
005    
006    package org.apache.archiva.configuration;
007    
008    /**
009     * Class RepositoryGroupConfiguration.
010     * 
011     * @version $Revision$ $Date$
012     */
013    @SuppressWarnings( "all" )
014    public 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         * Field repositories.
039         */
040        private java.util.List<String> repositories;
041    
042    
043          //-----------/
044         //- Methods -/
045        //-----------/
046    
047        /**
048         * Method addRepository.
049         * 
050         * @param string
051         */
052        public void addRepository( String string )
053        {
054            getRepositories().add( string );
055        } //-- void addRepository( String )
056    
057        /**
058         * Get the id of the repository group.
059         * 
060         * @return String
061         */
062        public String getId()
063        {
064            return this.id;
065        } //-- String getId()
066    
067        /**
068         * Get the path of the merged index.
069         * 
070         * @return String
071         */
072        public String getMergedIndexPath()
073        {
074            return this.mergedIndexPath;
075        } //-- String getMergedIndexPath()
076    
077        /**
078         * Get the time to live of the merged index of the repository
079         * group.
080         * 
081         * @return int
082         */
083        public int getMergedIndexTtl()
084        {
085            return this.mergedIndexTtl;
086        } //-- int getMergedIndexTtl()
087    
088        /**
089         * Method getRepositories.
090         * 
091         * @return List
092         */
093        public java.util.List<String> getRepositories()
094        {
095            if ( this.repositories == null )
096            {
097                this.repositories = new java.util.ArrayList<String>();
098            }
099    
100            return this.repositories;
101        } //-- java.util.List<String> getRepositories()
102    
103        /**
104         * Method removeRepository.
105         * 
106         * @param string
107         */
108        public void removeRepository( String string )
109        {
110            getRepositories().remove( string );
111        } //-- void removeRepository( String )
112    
113        /**
114         * Set the id of the repository group.
115         * 
116         * @param id
117         */
118        public void setId( String id )
119        {
120            this.id = id;
121        } //-- void setId( String )
122    
123        /**
124         * Set the path of the merged index.
125         * 
126         * @param mergedIndexPath
127         */
128        public void setMergedIndexPath( String mergedIndexPath )
129        {
130            this.mergedIndexPath = mergedIndexPath;
131        } //-- void setMergedIndexPath( String )
132    
133        /**
134         * Set the time to live of the merged index of the repository
135         * group.
136         * 
137         * @param mergedIndexTtl
138         */
139        public void setMergedIndexTtl( int mergedIndexTtl )
140        {
141            this.mergedIndexTtl = mergedIndexTtl;
142        } //-- void setMergedIndexTtl( int )
143    
144        /**
145         * Set the list of repository ids under the group.
146         * 
147         * @param repositories
148         */
149        public void setRepositories( java.util.List<String> repositories )
150        {
151            this.repositories = repositories;
152        } //-- void setRepositories( java.util.List )
153    
154    }