1. Project Clover database Tue Dec 20 2016 21:24:09 CET
  2. Package org.xwiki.store.legacy.doc.internal

File MutableDeletedFilesystemAttachment.java

 

Coverage histogram

../../../../../../img/srcFileCovDistChart0.png
83% of files have more coverage

Code metrics

0
16
9
1
99
57
9
0.56
1.78
9
1

Classes

Class Line # Actions
MutableDeletedFilesystemAttachment 33 16 0% 9 25
0.00%
 

Contributing tests

No tests hitting this source file were found.

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.store.legacy.doc.internal;
21   
22    import java.util.Date;
23   
24    import com.xpn.xwiki.XWikiContext;
25    import com.xpn.xwiki.doc.XWikiAttachment;
26   
27    /**
28    * A mutable version of a DeletedFilesystemAttachment, passed around and populated while loading.
29    *
30    * @version $Id: a4122039db9e5395299e8118b11cd68ce5823040 $
31    * @since 3.0M3
32    */
 
33    public class MutableDeletedFilesystemAttachment extends DeletedFilesystemAttachment
34    {
35    /**
36    * The Constructor.
37    */
 
38  0 toggle public MutableDeletedFilesystemAttachment()
39    {
40    }
41   
42    /**
43    * @return an immutable DeletedFilesystemAttachment which clones this.
44    */
 
45  0 toggle public DeletedFilesystemAttachment getImmutable()
46    {
47  0 final MutableDeletedFilesystemAttachment out = new MutableDeletedFilesystemAttachment();
48  0 out.setId(this.getId());
49  0 out.setDocId(this.getDocId());
50  0 out.setDocName(this.getDocName());
51  0 out.setFilename(this.getFilename());
52  0 out.setDate(this.getDate());
53  0 out.setDeleter(this.getDeleter());
54  0 out.setAttachment(this.getAttachment(), null);
55  0 return out;
56    }
57   
 
58  0 toggle @Override
59    public void setId(long id)
60    {
61  0 super.setId(id);
62    }
63   
 
64  0 toggle @Override
65    public void setDocId(long docId)
66    {
67  0 super.setId(docId);
68    }
69   
 
70  0 toggle @Override
71    public void setDocName(String docName)
72    {
73  0 super.setDocName(docName);
74    }
75   
 
76  0 toggle @Override
77    public void setFilename(String filename)
78    {
79  0 super.setFilename(filename);
80    }
81   
 
82  0 toggle @Override
83    public void setDate(Date date)
84    {
85  0 super.setDate(date);
86    }
87   
 
88  0 toggle @Override
89    public void setDeleter(String deleter)
90    {
91  0 super.setDeleter(deleter);
92    }
93   
 
94  0 toggle @Override
95    public void setAttachment(XWikiAttachment attachment, XWikiContext context)
96    {
97  0 super.setAttachment(attachment, context);
98    }
99    }