View Javadoc
1   /*
2    * Copyright (c) 2002-2017, Mairie de Paris
3    * All rights reserved.
4    *
5    * Redistribution and use in source and binary forms, with or without
6    * modification, are permitted provided that the following conditions
7    * are met:
8    *
9    *  1. Redistributions of source code must retain the above copyright notice
10   *     and the following disclaimer.
11   *
12   *  2. Redistributions in binary form must reproduce the above copyright notice
13   *     and the following disclaimer in the documentation and/or other materials
14   *     provided with the distribution.
15   *
16   *  3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its
17   *     contributors may be used to endorse or promote products derived from
18   *     this software without specific prior written permission.
19   *
20   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23   * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
24   * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25   * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26   * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27   * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28   * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30   * POSSIBILITY OF SUCH DAMAGE.
31   *
32   * License 1.0
33   */
34  package fr.paris.lutece.plugins.archive.business;
35  
36  import java.io.Serializable;
37  
38  
39  /**
40   *
41   * ArchiveItem
42   *
43   */
44  public class ArchiveItem implements Serializable
45  {
46      private static final long serialVersionUID = 7661692993251106127L;
47      private int _nIdArchiveItem;
48      private String _strFolderToArchive;
49      private String _strArchiveDestination;
50      private String _strArchiveName;
51      private String _strState;
52      private String _strArchiveType;
53      private String _strArchiveMimeType;
54  
55      /**
56       * Get the folder to archive
57       * @return the folder to archive
58       */
59      public String getFolderToArchive(  )
60      {
61          return _strFolderToArchive;
62      }
63  
64      /**
65       * Set the folder to archive
66       * @param strFolderToArchive the folder to archive
67       */
68      public void setFolderToArchive( String strFolderToArchive )
69      {
70          _strFolderToArchive = strFolderToArchive;
71      }
72  
73      /**
74       * Get the archive destination
75       * @return the archive destination
76       */
77      public String getArchiveDestination(  )
78      {
79          return _strArchiveDestination;
80      }
81  
82      /**
83       * Set the archive destination
84       * @param strArchiveDestination archive destination
85       */
86      public void setArchiveDestination( String strArchiveDestination )
87      {
88          _strArchiveDestination = strArchiveDestination;
89      }
90  
91      /**
92       * Get the archive name
93       * @return the archive name
94       */
95      public String getArchiveName(  )
96      {
97          return _strArchiveName;
98      }
99  
100     /**
101      * Set the archive name
102      * @param strArchiveName the archive name
103      */
104     public void setArchiveName( String strArchiveName )
105     {
106         _strArchiveName = strArchiveName;
107     }
108 
109     /**
110      * Set the id archive item
111      * @param nIdArchiveItem the id archive item
112      */
113     public void setIdArchiveItem( int nIdArchiveItem )
114     {
115         _nIdArchiveItem = nIdArchiveItem;
116     }
117 
118     /**
119      * Get the id archive item
120      * @return the id archive item
121      */
122     public int getIdArchiveItem(  )
123     {
124         return _nIdArchiveItem;
125     }
126 
127     /**
128      * Set the state
129      * @param strState the state
130      */
131     public void setState( String strState )
132     {
133         _strState = strState;
134     }
135 
136     /**
137      * Get the state
138      * @return the state
139      */
140     public String getState(  )
141     {
142         return _strState;
143     }
144 
145     /**
146      * Set the archive type
147      * @param strArchiveType the archive type
148      */
149     public void setArchiveType( String strArchiveType )
150     {
151         _strArchiveType = strArchiveType;
152     }
153 
154     /**
155      * Get the archive type
156      * @return the archive type
157      */
158     public String getArchiveType(  )
159     {
160         return _strArchiveType;
161     }
162 
163     /**
164      * Set the archive mime type
165      * @param strArchiveMimeType the archive mime type
166      */
167     public void setArchiveMimeType( String strArchiveMimeType )
168     {
169         _strArchiveMimeType = strArchiveMimeType;
170     }
171 
172     /**
173      * Get the archive mime type
174      * @return the archive mime type
175      */
176     public String getArchiveMimeType(  )
177     {
178         return _strArchiveMimeType;
179     }
180 }