View Javadoc

1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 1.7,
3   // any modifications will be overwritten.
4   // ==============================================================
5   
6   package org.apache.archiva.configuration;
7   
8   /**
9    * Class RepositoryGroupConfiguration.
10   * 
11   * @version $Revision$ $Date$
12   */
13  @SuppressWarnings( "all" )
14  public class RepositoryGroupConfiguration
15      implements java.io.Serializable
16  {
17  
18        //--------------------------/
19       //- Class/Member Variables -/
20      //--------------------------/
21  
22      /**
23       * The id of the repository group.
24       */
25      private String id;
26  
27      /**
28       * The path of the merged index.
29       */
30      private String mergedIndexPath = "/.indexer";
31  
32      /**
33       * The time to live of the merged index of the repository group.
34       */
35      private int mergedIndexTtl = 30;
36  
37      /**
38       * Field repositories.
39       */
40      private java.util.List<String> repositories;
41  
42  
43        //-----------/
44       //- Methods -/
45      //-----------/
46  
47      /**
48       * Method addRepository.
49       * 
50       * @param string
51       */
52      public void addRepository( String string )
53      {
54          getRepositories().add( string );
55      } //-- void addRepository( String )
56  
57      /**
58       * Get the id of the repository group.
59       * 
60       * @return String
61       */
62      public String getId()
63      {
64          return this.id;
65      } //-- String getId()
66  
67      /**
68       * Get the path of the merged index.
69       * 
70       * @return String
71       */
72      public String getMergedIndexPath()
73      {
74          return this.mergedIndexPath;
75      } //-- String getMergedIndexPath()
76  
77      /**
78       * Get the time to live of the merged index of the repository
79       * group.
80       * 
81       * @return int
82       */
83      public int getMergedIndexTtl()
84      {
85          return this.mergedIndexTtl;
86      } //-- int getMergedIndexTtl()
87  
88      /**
89       * Method getRepositories.
90       * 
91       * @return List
92       */
93      public java.util.List<String> getRepositories()
94      {
95          if ( this.repositories == null )
96          {
97              this.repositories = new java.util.ArrayList<String>();
98          }
99  
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 }