View Javadoc

1   /*
2    * #%L
3    * Bitrepository Audit Trail Service
4    * %%
5    * Copyright (C) 2010 - 2012 The State and University Library, The Royal Library and The State Archives, Denmark
6    * %%
7    * This program is free software: you can redistribute it and/or modify
8    * it under the terms of the GNU Lesser General Public License as 
9    * published by the Free Software Foundation, either version 2.1 of the 
10   * License, or (at your option) any later version.
11   * 
12   * This program is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15   * GNU General Lesser Public License for more details.
16   * 
17   * You should have received a copy of the GNU General Lesser Public 
18   * License along with this program.  If not, see
19   * <http://www.gnu.org/licenses/lgpl-2.1.html>.
20   * #L%
21   */
22  package org.bitrepository.audittrails.store;
23  
24  import java.util.Date;
25  
26  import org.bitrepository.bitrepositoryelements.FileAction;
27  
28  /**
29   * Container for the extraction of data from the audit trail database.
30   */
31  class ExtractModel {
32      /** @see #getFileId(). */
33      private String fileId;
34      /** @see #getCollectionId(). */
35      private String collectionId;
36      /** @see #getContributorId(). */
37      private String contributorId;
38      /** @see #getMinSeqNumber(). */
39      private Long minSeqNumber;
40      /** @see #getMaxSeqNumber(). */
41      private Long maxSeqNumber;
42      /** @see #getActorName(). */
43      private String actorName;
44      /** @see #getOperation(). */
45      private FileAction operation;
46      /** @see #getStartDate(). */
47      private Date startDate;
48      /** @see #getEndDate(). */
49      private Date endDate;
50      /** @see #getFingerprint(). */
51      private String fingerprint;
52      /** @see #getOperationID(). */
53      private String operationID;
54      
55      /**
56       * Constructor, with no arguments. All variables are set to null.
57       */
58      public ExtractModel() {
59          
60      }
61      
62      /**
63       * @return The fileId;
64       */
65      public String getFileId() {
66          return fileId;
67      }
68      
69      /**
70       * @See getFileId();
71       * @param fileId The new file id.
72       */
73      public void setFileId(String fileId) {
74          this.fileId = fileId;
75      }
76      
77      /**
78       * @return The collectionId;
79       */
80      public String getCollectionId() {
81          return collectionId;
82      }
83      
84      /**
85       * @See getCollectionId();
86       * @param collectionId The new collection id.
87       */
88      public void setCollectionId(String collectionId) {
89          this.collectionId = collectionId;
90      }
91      
92      /**
93       * @return The contributorId;
94       */
95      public String getContributorId() {
96          return contributorId;
97      }
98      
99      /**
100      * @See getContributorId();
101      * @param contributorId The new id of the contributor.
102      */
103     public void setContributorId(String contributorId) {
104         this.contributorId = contributorId;
105     }
106     
107     /**
108      * @return The minSeqNumber;
109      */
110     public Long getMinSeqNumber() {
111         return minSeqNumber;
112     }
113     
114     /**
115      * @See getMinSeqNumberId();
116      * @param minSeqNumber The new minimum sequence number.
117      */
118     public void setMinSeqNumber(Long minSeqNumber) {
119         this.minSeqNumber = minSeqNumber;
120     }
121     
122     /**
123      * @return The maxSeqNumber;
124      */
125     public Long getMaxSeqNumber() {
126         return maxSeqNumber;
127     }
128     
129     /**
130      * @See getMaxSeqNumberId();
131      * @param maxSeqNumber The new maximum sequence number.
132      */
133     public void setMaxSeqNumber(Long maxSeqNumber) {
134         this.maxSeqNumber = maxSeqNumber;
135     }
136     
137     /**
138      * @return The actorName;
139      */
140     public String getActorName() {
141         return actorName;
142     }
143     
144     /**
145      * @See getActorName();
146      * @param actorName The new name of the actor.
147      */
148     public void setActorName(String actorName) {
149         this.actorName = actorName;
150     }
151     
152     /**
153      * @return The operation;
154      */
155     public FileAction getOperation() {
156         return operation;
157     }
158     
159     /**
160      * @See getOperation();
161      * @param operation The operation.
162      */
163     public void setOperation(FileAction operation) {
164         this.operation = operation;
165     }
166     
167     /**
168      * @return The startDate;
169      */
170     public Date getStartDate() {
171         return startDate;
172     }
173     
174     /**
175      * @See getStartDate();
176      * @param startDate The startDate.
177      */
178     public void setStartDate(Date startDate) {
179         this.startDate = startDate;
180     }
181     
182     /**
183      * @return The endDate;
184      */
185     public Date getEndDate() {
186         return endDate;
187     }
188     
189     /**
190      * @See getEndDate();
191      * @param endDate The endDate.
192      */
193     public void setEndDate(Date endDate) {
194         this.endDate = endDate;
195     }
196 
197     /**
198      * @return The fingerprint of the certificate 
199      */
200     public String getFingerprint() {
201         return fingerprint;
202     }
203 
204     /**
205      * @see getFingerprint();
206      * @param fingerprint
207      */
208     public void setFingerprint(String fingerprint) {
209         this.fingerprint = fingerprint;
210     }
211 
212     /**
213      * @return The ID of the operation
214      */
215     public String getOperationID() {
216         return operationID;
217     }
218 
219     /**
220      * @see getOperationID();
221      * @param operationID The ID of the operation
222      */
223     public void setOperationID(String operationID) {
224         this.operationID = operationID;
225     }
226 }