1. Project Clover database Tue Dec 20 2016 21:24:09 CET
  2. Package org.xwiki.extension.job.history

File ReplayRequest.java

 

Coverage histogram

../../../../../img/srcFileCovDistChart10.png
0% of files have more coverage

Code metrics

0
2
2
1
58
16
2
1
1
2
1

Classes

Class Line # Actions
ReplayRequest 32 2 0% 2 0
1.0100%
 

Contributing tests

This file is covered by 5 tests. .

Source view

1    /*
2    * See the NOTICE file distributed with this work for additional
3    * information regarding copyright ownership.
4    *
5    * This is free software; you can redistribute it and/or modify it
6    * under the terms of the GNU Lesser General Public License as
7    * published by the Free Software Foundation; either version 2.1 of
8    * the License, or (at your option) any later version.
9    *
10    * This software is distributed in the hope that it will be useful,
11    * but WITHOUT ANY WARRANTY; without even the implied warranty of
12    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13    * Lesser General Public License for more details.
14    *
15    * You should have received a copy of the GNU Lesser General Public
16    * License along with this software; if not, write to the Free
17    * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18    * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19    */
20    package org.xwiki.extension.job.history;
21   
22    import java.util.List;
23   
24    import org.xwiki.job.AbstractRequest;
25   
26    /**
27    * The request used for replaying records from the extension job history.
28    *
29    * @version $Id: a44cf2394501393fa9ad5c1747444cfd22e3519b $
30    * @since 7.1RC1
31    */
 
32    public class ReplayRequest extends AbstractRequest
33    {
34    /**
35    * Serialization identifier.
36    */
37    private static final long serialVersionUID = 1L;
38   
39    private static final String PROPERTY_RECORDS = "records";
40   
41    /**
42    * @return the list of history records that are being replayed
43    */
 
44  8 toggle public List<ExtensionJobHistoryRecord> getRecords()
45    {
46  8 return getProperty(PROPERTY_RECORDS);
47    }
48   
49    /**
50    * Sets the list of history records to replay.
51    *
52    * @param records the history records to replay
53    */
 
54  7 toggle public void setRecords(List<ExtensionJobHistoryRecord> records)
55    {
56  7 setProperty(PROPERTY_RECORDS, records);
57    }
58    }