Mercurial > hg > ismi-richfaces
annotate src/main/java/de/mpiwg/itgroup/ismi/browse/EntityDetailsBean.java @ 175:3d8b31508128
PublicByAuthor feature works now.
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Thu, 07 Jun 2018 18:47:18 +0200 |
parents | b40a84944716 |
children | 8aff920ec7c0 |
rev | line source |
---|---|
1 | 1 package de.mpiwg.itgroup.ismi.browse; |
2 | |
3 import java.util.ArrayList; | |
4 import java.util.HashMap; | |
5 import java.util.List; | |
6 import java.util.Map; | |
7 | |
8 import javax.faces.event.ActionEvent; | |
9 | |
10 import org.apache.log4j.Logger; | |
11 import org.mpi.openmind.repository.bo.Attribute; | |
12 import org.mpi.openmind.repository.bo.Entity; | |
13 import org.mpi.openmind.repository.bo.Node; | |
14 import org.mpi.openmind.repository.bo.Relation; | |
15 | |
16 import de.mpiwg.itgroup.ismi.entry.beans.SessionBean; | |
148
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
17 import de.mpiwg.itgroup.ismi.entry.utils.PrivacityUtils; |
1 | 18 import de.mpiwg.itgroup.ismi.event.beans.CopyEvent; |
19 import de.mpiwg.itgroup.ismi.event.beans.StudyEvent; | |
20 import de.mpiwg.itgroup.ismi.event.beans.TransferEvent; | |
21 | |
99 | 22 public class EntityDetailsBean extends AbstractBrowse { |
1 | 23 |
24 private static final long serialVersionUID = 1374652791403248103L; | |
25 | |
26 private static Logger logger = Logger.getLogger(EntityDetailsBean.class); | |
27 | |
28 private Entity entity; | |
29 private String currentEntityId; | |
30 | |
31 private List<Attribute> attributeList = new ArrayList<Attribute>(); | |
32 private List<String> sourceRelationNames = new ArrayList<String>(); | |
33 private List<String> targetRelationNames = new ArrayList<String>(); | |
34 | |
35 private Map<String, Long> sourceRelationCount = new HashMap<String, Long>(); | |
36 private Map<String, Long> targetRelationCount = new HashMap<String, Long>(); | |
37 | |
38 private Map<String, List<Relation>> sourceRelations = new HashMap<String, List<Relation>>(); | |
39 private Map<String, List<Relation>> targetRelations = new HashMap<String, List<Relation>>(); | |
40 | |
41 private List<Entity> previousVersionsList = new ArrayList<Entity>(); | |
42 private Entity selectedPreviousVersion = null; | |
43 private boolean previousVersionDetailsVisible = false; | |
44 | |
45 | |
46 public EntityDetailsBean() { | |
47 } | |
48 | |
49 public void listenerHideDetailsPopup(ActionEvent event){ | |
50 setPreviousVersionDetailsVisible(false); | |
51 } | |
52 | |
53 public void listenerHidePreviousVersions(ActionEvent event){ | |
54 setPreviousVersionsList(new ArrayList<Entity>()); | |
55 setSelectedPreviousVersion(null); | |
56 } | |
57 | |
58 public void listenerUndoUntilThisVersion(ActionEvent event) throws Exception{ | |
59 this.selectedPreviousVersion = (Entity)getRequestBean("previousVersion"); | |
60 if(this.selectedPreviousVersion != null){ | |
61 | |
62 //checking whether the relation reference to existing entities, | |
63 //If the entity referenced does not exist more, the relation will not be considered. | |
64 | |
65 //Checking source's relation | |
66 List<Relation> relToDelete = new ArrayList<Relation>(); | |
67 for(Relation rel : selectedPreviousVersion.getSourceRelations()){ | |
68 if(getWrapper().getEntityById(rel.getTargetId()) == null){ | |
69 relToDelete.add(rel); | |
70 } | |
71 } | |
72 for(Relation rel : relToDelete){ | |
73 selectedPreviousVersion.getSourceRelations().remove(rel); | |
74 } | |
75 | |
76 //Checking target's relations | |
77 relToDelete = new ArrayList<Relation>(); | |
78 for(Relation rel : selectedPreviousVersion.getTargetRelations()){ | |
79 if(getWrapper().getEntityById(rel.getSourceId()) == null){ | |
80 relToDelete.add(rel); | |
81 } | |
82 } | |
83 for(Relation rel : relToDelete){ | |
84 selectedPreviousVersion.getTargetRelations().remove(rel); | |
85 } | |
86 | |
87 selectedPreviousVersion.setVersion(this.entity.getVersion()); | |
88 selectedPreviousVersion.setSystemStatus(Node.SYS_STATUS_CURRENT_VERSION); | |
89 | |
124
28a0c2726466
changed saveEntity() to use new EditIntent. Set up EditIntent for TEXT, PERSON, REFERENCE.
casties
parents:
119
diff
changeset
|
90 getWrapper().saveEntity(selectedPreviousVersion, getUserName(), null); |
1 | 91 |
92 } | |
93 } | |
94 | |
95 | |
96 | |
97 public void listenerGetPreviousVersions(ActionEvent event){ | |
98 this.previousVersionsList = getWrapper().getPreviousEntitiesById(getEntity().getId()); | |
99 if(previousVersionsList.size() == 0){ | |
100 addGeneralMsg("It had not been found previous versions for this entity."); | |
101 } | |
102 } | |
103 | |
104 public void listenerShowPreviousVersionDetails(ActionEvent event){ | |
105 this.selectedPreviousVersion = (Entity)getRequestBean("previousVersion"); | |
106 setPreviousVersionDetailsVisible(true); | |
119 | 107 //System.out.println(this.selectedPreviousVersion); |
1 | 108 } |
109 | |
110 | |
111 | |
112 public void listenerShowEntity(ActionEvent event) { | |
113 try { | |
114 Long.parseLong(currentEntityId); | |
115 redirect("/browse/entityDetails.xhtml", "?eid=" + currentEntityId); | |
116 | |
117 } catch (Exception e) { | |
118 addErrorMsg("ID is not valid: " + this.currentEntityId); | |
119 } | |
120 } | |
121 | |
122 public void setEntity(Entity entity) { | |
123 this.entity = entity; | |
124 if(entity != null){ | |
125 | |
126 this.currentEntityId = entity.getId().toString(); | |
127 | |
128 this.selectedPreviousVersion = null; | |
129 this.previousVersionsList = new ArrayList<Entity>(); | |
130 //this.definition = getWrapper().getDefinition(entity.getObjectClass()); | |
131 this.attributeList = getWrapper().getAttributeByEntId(entity.getId()); | |
132 this.sourceRelations = new HashMap<String, List<Relation>>(); | |
133 this.targetRelations = new HashMap<String, List<Relation>>(); | |
134 this.sourceRelationNames = new ArrayList<String>(); | |
135 this.targetRelationNames = new ArrayList<String>(); | |
136 this.sourceRelationCount = new HashMap<String, Long>(); | |
137 this.targetRelationCount = new HashMap<String, Long>(); | |
138 | |
139 | |
119 | 140 //System.out.println("****************"); |
1 | 141 List<Relation> srcRels = getWrapper().getDefSourceRelations(this.entity.getObjectClass()); |
142 for(Relation rel : srcRels){ | |
143 if(rel.getOwnValue().equals("has_autor_misattribution")){ | |
119 | 144 logger.debug("misattribution: src - " + rel.getOwnValue()); |
1 | 145 } |
146 if(!this.sourceRelationNames.contains(rel.getOwnValue())){ | |
147 this.sourceRelationNames.add(rel.getOwnValue()); | |
148 this.sourceRelationCount.put(rel.getOwnValue(), getWrapper().getSourceRelationsCount(entity, rel.getOwnValue(), null)); | |
149 } | |
150 } | |
151 List<Relation> tarRels = getWrapper().getDefTargetRelations(this.entity.getObjectClass()); | |
152 for(Relation rel : tarRels){ | |
153 if(!this.targetRelationNames.contains(rel.getOwnValue())){ | |
154 this.targetRelationNames.add(rel.getOwnValue()); | |
155 this.targetRelationCount.put(rel.getOwnValue(), getWrapper().getTargetRelationsCount(entity, rel.getOwnValue(), null)); | |
156 } | |
157 | |
158 } | |
159 } | |
160 } | |
161 | |
162 public void listenerShowTargetRelations(ActionEvent event){ | |
163 String tarName = (String) getRequestBean("tarName"); | |
164 this.targetRelations.put(tarName, getWrapper().getTargetRelations(this.entity, tarName, null, -1)); | |
165 } | |
166 | |
102
db3e1bbfde03
fix error when EntityRepositoryBean is not available when deleting an entity.
casties
parents:
99
diff
changeset
|
167 /** |
db3e1bbfde03
fix error when EntityRepositoryBean is not available when deleting an entity.
casties
parents:
99
diff
changeset
|
168 * Handler that deletes the current Entity. |
db3e1bbfde03
fix error when EntityRepositoryBean is not available when deleting an entity.
casties
parents:
99
diff
changeset
|
169 * @return |
db3e1bbfde03
fix error when EntityRepositoryBean is not available when deleting an entity.
casties
parents:
99
diff
changeset
|
170 */ |
1 | 171 public String listenerDeleteEntity(){ |
172 try { | |
102
db3e1bbfde03
fix error when EntityRepositoryBean is not available when deleting an entity.
casties
parents:
99
diff
changeset
|
173 // get user name from SessionBean |
db3e1bbfde03
fix error when EntityRepositoryBean is not available when deleting an entity.
casties
parents:
99
diff
changeset
|
174 SessionBean session = (SessionBean) getSessionBean("Session"); |
db3e1bbfde03
fix error when EntityRepositoryBean is not available when deleting an entity.
casties
parents:
99
diff
changeset
|
175 String user = ""; |
db3e1bbfde03
fix error when EntityRepositoryBean is not available when deleting an entity.
casties
parents:
99
diff
changeset
|
176 if (session != null) { |
db3e1bbfde03
fix error when EntityRepositoryBean is not available when deleting an entity.
casties
parents:
99
diff
changeset
|
177 user = session.getUsername(); |
db3e1bbfde03
fix error when EntityRepositoryBean is not available when deleting an entity.
casties
parents:
99
diff
changeset
|
178 } |
db3e1bbfde03
fix error when EntityRepositoryBean is not available when deleting an entity.
casties
parents:
99
diff
changeset
|
179 |
99 | 180 // delete entity |
181 getWrapper().removeCurrentVersionEntity(this.entity, user); | |
102
db3e1bbfde03
fix error when EntityRepositoryBean is not available when deleting an entity.
casties
parents:
99
diff
changeset
|
182 |
db3e1bbfde03
fix error when EntityRepositoryBean is not available when deleting an entity.
casties
parents:
99
diff
changeset
|
183 // reset EntityRepositoryBean |
db3e1bbfde03
fix error when EntityRepositoryBean is not available when deleting an entity.
casties
parents:
99
diff
changeset
|
184 EntityRepositoryBean bean = (EntityRepositoryBean) getSessionBean("EntityRepository"); |
1 | 185 if(bean != null){ |
186 bean.reset(); | |
187 } | |
188 addGeneralMsg("The entity has been removed."); | |
102
db3e1bbfde03
fix error when EntityRepositoryBean is not available when deleting an entity.
casties
parents:
99
diff
changeset
|
189 |
1 | 190 } catch (Exception e) { |
191 printInternalError(e); | |
192 logger.error(e.getMessage() + " Removing" + entity, e); | |
193 } | |
194 | |
195 return GOTO_ENTITY_REPOSITORY; | |
196 } | |
197 | |
198 public void listenerShowSourceRelations(ActionEvent event){ | |
199 try { | |
200 String srcName = (String) getRequestBean("srcName"); | |
201 this.sourceRelations.put(srcName, getWrapper().getSourceRelations(this.entity, srcName, null, -1)); | |
202 } catch (Exception e) { | |
203 printInternalError(e); | |
204 logger.error(e.getMessage(), e); | |
205 } | |
206 } | |
207 public Entity getEntity() { | |
208 return entity; | |
209 } | |
210 | |
211 | |
212 | |
213 /** | |
214 * This method calls the SessionBean and put in it the current entity to be | |
215 * modified. | |
216 * | |
217 * @return | |
218 */ | |
219 public String actionEdit() { | |
220 try { | |
221 // getting de.mpiwg.itgroup.ismi.entry.beans.SessionBean | |
222 getSessionBean().editEntity(this.entity); | |
223 | |
224 } catch (Exception e) { | |
148
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
225 logger.error(e); |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
226 } |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
227 |
1 | 228 if(entity.getObjectClass().equals(StudyEvent.OC) || |
229 entity.getObjectClass().equals(CopyEvent.OC) || | |
230 entity.getObjectClass().equals(TransferEvent.OC)){ | |
231 return SessionBean.PAGE_EVENT_FORM; | |
232 }else{ | |
233 return SessionBean.PAGE_ENTRY; | |
234 } | |
235 } | |
236 | |
148
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
237 |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
238 /** |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
239 * Toggle this entity's public state. |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
240 * @return |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
241 */ |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
242 public String actionChangeEntityPrivacity() { |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
243 // toggle publication state |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
244 PrivacityUtils.changeEntityPrivacity(this.entity, null, getWrapper()); |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
245 ArrayList<Entity> saveList = new ArrayList<Entity>(); |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
246 saveList.add(entity); |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
247 try { |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
248 getWrapper().saveEntityListAsNodeWithoutContent(saveList, getUserName()); |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
249 } catch (Exception e) { |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
250 printInternalError(e); |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
251 logger.error(e); |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
252 } |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
253 return GOTO_ENTITY_DETAILS; |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
254 } |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
255 |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
256 /** |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
257 * Change all related entities' public state to match this entity. |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
258 * |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
259 * @return |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
260 */ |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
261 public String actionChangeRelatedEntitiesPrivacity() { |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
262 // set publication state |
175
3d8b31508128
PublicByAuthor feature works now.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
148
diff
changeset
|
263 List<Entity> saveList = PrivacityUtils.setRelatedEntitiesPrivacity(this.entity, null, getWrapper(), null); |
148
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
264 // hide related entities from display |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
265 sourceRelations = new HashMap<String, List<Relation>>(); |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
266 targetRelations = new HashMap<String, List<Relation>>(); |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
267 // save entities |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
268 try { |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
269 getWrapper().saveEntityListAsNodeWithoutContent(saveList, getUserName()); |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
270 } catch (Exception e) { |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
271 printInternalError(e); |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
272 logger.error(e); |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
273 } |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
274 return GOTO_ENTITY_DETAILS; |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
275 } |
b40a84944716
add public/private editing to Entity Details.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
124
diff
changeset
|
276 |
1 | 277 /** |
278 * <p> | |
279 * Show the details page for the current entity. | |
280 * </p> | |
281 */ | |
282 public String showTarget() { | |
283 Relation relation = (Relation) getRequestBean("srcRelation"); | |
284 setEntity(relation.getTarget()); | |
285 return GOTO_ENTITY_DETAILS; | |
286 } | |
287 | |
288 public String showSource() { | |
289 Relation relation = (Relation) getRequestBean("tarRelation"); | |
290 setEntity(relation.getSource()); | |
291 return GOTO_ENTITY_DETAILS; | |
292 } | |
293 | |
294 public Entity getEntityById(Long id) { | |
295 //juc return getOntology().getEntityById(id); | |
296 return getWrapper().getEntityById(id); | |
297 } | |
298 | |
299 public String getCurrentEntityId() { | |
300 return currentEntityId; | |
301 } | |
302 | |
303 public void setCurrentEntityId(String cid) { | |
304 this.currentEntityId = cid; | |
305 } | |
306 | |
307 public List<Attribute> getAttributeList() { | |
308 return attributeList; | |
309 } | |
310 | |
311 public void setAttributeList(List<Attribute> attributeList) { | |
312 this.attributeList = attributeList; | |
313 } | |
314 public List<String> getSourceRelationNames() { | |
315 return sourceRelationNames; | |
316 } | |
317 | |
318 public void setSourceRelationNames(List<String> sourceRelationNames) { | |
319 this.sourceRelationNames = sourceRelationNames; | |
320 } | |
321 | |
322 public List<String> getTargetRelationNames() { | |
323 return targetRelationNames; | |
324 } | |
325 | |
326 public void setTargetRelationNames(List<String> targetRelationNames) { | |
327 this.targetRelationNames = targetRelationNames; | |
328 } | |
329 | |
330 public Map<String, Long> getSourceRelationCount() { | |
331 return sourceRelationCount; | |
332 } | |
333 | |
334 public void setSourceRelationCount(Map<String, Long> sourceRelationCount) { | |
335 this.sourceRelationCount = sourceRelationCount; | |
336 } | |
337 | |
338 public Map<String, Long> getTargetRelationCount() { | |
339 return targetRelationCount; | |
340 } | |
341 | |
342 public void setTargetRelationCount(Map<String, Long> targetRelationCount) { | |
343 this.targetRelationCount = targetRelationCount; | |
344 } | |
345 | |
346 public Map<String, List<Relation>> getSourceRelations() { | |
347 return sourceRelations; | |
348 } | |
349 | |
350 public void setSourceRelations(Map<String, List<Relation>> sourceRelations) { | |
351 this.sourceRelations = sourceRelations; | |
352 } | |
353 | |
354 public Map<String, List<Relation>> getTargetRelations() { | |
355 return targetRelations; | |
356 } | |
357 | |
358 public void setTargetRelations(Map<String, List<Relation>> targetRelations) { | |
359 this.targetRelations = targetRelations; | |
360 } | |
361 | |
362 public List<Entity> getPreviousVersionsList() { | |
363 return previousVersionsList; | |
364 } | |
365 | |
366 public void setPreviousVersionsList(List<Entity> previousVersionsList) { | |
367 this.previousVersionsList = previousVersionsList; | |
368 } | |
369 | |
370 public Entity getSelectedPreviousVersion() { | |
371 return selectedPreviousVersion; | |
372 } | |
373 | |
374 public void setSelectedPreviousVersion(Entity selectedPreviousVersion) { | |
375 this.selectedPreviousVersion = selectedPreviousVersion; | |
376 } | |
377 public boolean isPreviousVersionDetailsVisible() { | |
378 return previousVersionDetailsVisible; | |
379 } | |
380 | |
381 public void setPreviousVersionDetailsVisible( | |
382 boolean previousVersionDetailsVisible) { | |
383 this.previousVersionDetailsVisible = previousVersionDetailsVisible; | |
384 } | |
385 } |