Mercurial > hg > ismi-richfaces
annotate src/main/java/de/mpiwg/itgroup/ismi/entry/beans/SessionBean.java @ 188:34ac2e1b323a
new Clean UI to find non-public digitalizations of public codices and make them public.
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 06 Nov 2018 20:05:49 +0100 |
parents | 52aa06772336 |
children |
rev | line source |
---|---|
1 | 1 package de.mpiwg.itgroup.ismi.entry.beans; |
2 | |
3 import java.io.IOException; | |
4 import java.io.Serializable; | |
5 import java.util.ArrayList; | |
6 import java.util.List; | |
7 | |
8 import javax.faces.context.ExternalContext; | |
9 import javax.faces.context.FacesContext; | |
10 import javax.faces.event.ActionEvent; | |
11 import javax.servlet.http.HttpServletRequest; | |
12 | |
13 import org.apache.commons.lang.StringUtils; | |
14 import org.apache.log4j.Logger; | |
15 import org.mpi.openmind.repository.bo.Attribute; | |
16 import org.mpi.openmind.repository.bo.Entity; | |
17 import org.mpi.openmind.security.SecurityService; | |
18 import org.mpi.openmind.security.bo.User; | |
19 import org.richfaces.event.ItemChangeEvent; | |
20 | |
21 import de.mpiwg.itgroup.ismi.admin.AdminBean; | |
22 import de.mpiwg.itgroup.ismi.browse.EntityDetailsBean; | |
23 import de.mpiwg.itgroup.ismi.defs.DefinitionForm; | |
24 import de.mpiwg.itgroup.ismi.entry.beans.AbstractISMIBean.CheckResults; | |
25 import de.mpiwg.itgroup.ismi.event.beans.CopyEvent; | |
26 import de.mpiwg.itgroup.ismi.event.beans.StudyEvent; | |
27 import de.mpiwg.itgroup.ismi.event.beans.TransferEvent; | |
28 import de.mpiwg.itgroup.ismi.merge.GeneralMerge; | |
96 | 29 import de.mpiwg.itgroup.ismi.merge.ImportMerge; |
180
0d31c8be7c31
new MissingRelations feature and UI.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
178
diff
changeset
|
30 import de.mpiwg.itgroup.ismi.merge.MissingRelationsBean; |
188
34ac2e1b323a
new Clean UI to find non-public digitalizations of public codices and make them public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
181
diff
changeset
|
31 import de.mpiwg.itgroup.ismi.merge.NonpublicEntitiesBean; |
153
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
119
diff
changeset
|
32 import de.mpiwg.itgroup.ismi.merge.PublicByAuthorBean; |
85 | 33 import de.mpiwg.itgroup.ismi.merge.ReferenceMerge; |
1 | 34 import de.mpiwg.itgroup.ismi.publicView.DynamicPageEditor; |
35 import de.mpiwg.itgroup.ismi.publicView.PublicCodexBean; | |
36 import de.mpiwg.itgroup.ismi.publicView.PublicCodexView; | |
37 import de.mpiwg.itgroup.ismi.publicView.pages.DynamicPage; | |
38 import de.mpiwg.itgroup.ismi.search.beans.AdvancedSearchBean; | |
39 import de.mpiwg.itgroup.ismi.search.beans.DisplayAuthorBean; | |
40 import de.mpiwg.itgroup.ismi.search.beans.DisplayTitleBean; | |
41 import de.mpiwg.itgroup.ismi.util.guiComponents.Calendar; | |
42 import de.mpiwg.itgroup.ismi.util.guiComponents.EntityList; | |
43 | |
44 public class SessionBean extends AbstractBean implements Serializable{ | |
45 | |
46 private static Logger logger = Logger.getLogger(SessionBean.class); | |
47 | |
48 private DefinitionForm defForm = new DefinitionForm(); | |
49 private StudyEvent studyEventForm = new StudyEvent(); | |
50 private CopyEvent copyEventForm = new CopyEvent(); | |
51 private TransferEvent transferEventForm = new TransferEvent(); | |
52 private transient AdvancedSearchBean advancedSearch = new AdvancedSearchBean(); | |
153
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
119
diff
changeset
|
53 private transient PublicByAuthorBean publicByAuthor = new PublicByAuthorBean(); |
180
0d31c8be7c31
new MissingRelations feature and UI.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
178
diff
changeset
|
54 private transient MissingRelationsBean missingRelations = new MissingRelationsBean(); |
188
34ac2e1b323a
new Clean UI to find non-public digitalizations of public codices and make them public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
181
diff
changeset
|
55 private transient NonpublicEntitiesBean nonpublicEntities = new NonpublicEntitiesBean(); |
1 | 56 |
57 private EntityDetailsBean entDetailsForm = new EntityDetailsBean(); | |
58 | |
59 private DisplayAuthorBean displayAuthor = new DisplayAuthorBean(); | |
60 private DisplayTitleBean displayTitle = new DisplayTitleBean(); | |
61 | |
62 private DynamicPageEditor pageEditor = null; | |
63 | |
64 | |
65 private Calendar currentCalendar = null; | |
66 private EntityList currentEntListForCalendar = null; | |
67 private Long currentEntIdForCalendar; | |
68 | |
69 private boolean displayLoginDialog = false; | |
70 | |
71 private DigiListBean digiList; | |
72 | |
73 //public | |
74 private DynamicPage dynamicPage; | |
75 private PublicCodexView publicCodexView; | |
76 private PublicCodexBean publicCodexBean; | |
77 | |
78 public void editCalendar(Calendar cal, EntityList list, Long entId){ | |
79 this.currentCalendar = cal; | |
80 this.currentEntListForCalendar = list; | |
81 this.currentEntIdForCalendar = entId; | |
82 } | |
83 | |
84 public void listenerSaveEditionCalendar(ActionEvent event){ | |
85 if(this.currentEntListForCalendar != null && this.currentEntIdForCalendar != null){ | |
86 this.currentEntListForCalendar.getCalendarMap().put(currentEntIdForCalendar, currentCalendar); | |
87 this.currentCalendar = null; | |
88 this.currentEntListForCalendar = null; | |
89 this.currentEntIdForCalendar = null; | |
90 } | |
91 } | |
92 | |
93 | |
94 public static String PAGE_ENTITY_REPOSITORY = "entity_repository"; | |
95 public static String PAGE_ENTITY_DETAILS = "entity_details"; | |
96 public static String PAGE_ENTRY = "entry_edit_entity"; | |
97 public static String PAGE_EVENT_FORM = "event_form"; | |
98 public static String PAGE_SIMPLE_SEARCH = "simple_search"; | |
99 public static String PAGE_PUBLIC_CODICES = "public_codices"; | |
100 public static String PAGE_DISPLAY_TITLE = "display_title"; | |
101 public static String PAGE_DISPLAY_AUTHOR = "display_author"; | |
102 public static String PAGE_GENERAL_MERGE = "general_merge"; | |
103 public static String PAGE_GEO_FORM = "geo_form"; | |
104 public static String PAGE_ADMIN = "admin"; | |
105 public static String PAGE_PROFILE = "profile"; | |
106 public static String PAGE_DEF_EDITOR = "defEditor"; | |
107 | |
108 private User user = null; | |
109 private String username = ""; | |
110 private String password = ""; | |
111 | |
112 //private Entity currentEntity; | |
113 | |
114 private GeneralMerge generalMerge; | |
85 | 115 private ReferenceMerge referenceMerge; |
96 | 116 private ImportMerge importMerge; |
1 | 117 |
118 //private String last_action; | |
119 //private Date time_of_lastAction; | |
120 | |
121 private String remoteAddr; | |
122 | |
123 private static final long serialVersionUID = 1L; | |
124 | |
125 //Entities tabs | |
126 public static String WITNESS_TAB = "Witness"; | |
127 public static String CODEX_TAB = "Codex"; | |
128 public static String COLLECTION_TAB = "Collection"; | |
129 public static String REPOSITORY_TAB = "Repository"; | |
130 public static String CITY_TAB = "Place"; | |
131 public static String TEXT_TAB = "Text"; | |
132 public static String PERSON_TAB = "Person"; | |
133 public static String ALIAS_TAB = "Alias"; | |
134 public static String SUBJECT_TAB = "Subject"; | |
135 public static String ROLE_TAB = "Role"; | |
136 public static String DIGI_TAB = "Digi"; | |
137 | |
138 //Events tabs | |
139 public static String WITNESS_STUDY_EVENT_TAB = "Study"; | |
140 public static String COPY_EVENT_TAB = "Copy"; | |
141 public static String TRANSFER_EVENT_TAB = "Transfer"; | |
142 | |
143 private String selectedTab = WITNESS_TAB; | |
144 private String selectedEventTab = WITNESS_STUDY_EVENT_TAB; | |
145 private String selectedAdvancedSearchTab = "01"; | |
146 private Long editFormCurrentEntId; | |
147 | |
148 private boolean displayError = false; | |
149 private ArrayList<String> errorMessages; | |
150 | |
151 public String getOCByTabIndex(){ | |
152 if(selectedTab != null){ | |
153 if(selectedTab.equals(WITNESS_TAB)){ | |
154 return AbstractISMIBean.WITNESS; | |
155 }else if(selectedTab.equals(CODEX_TAB)){ | |
156 return AbstractISMIBean.CODEX; | |
157 }else if(selectedTab.equals(COLLECTION_TAB)){ | |
158 return AbstractISMIBean.COLLECTION; | |
159 }else if(selectedTab.equals(REPOSITORY_TAB)){ | |
160 return AbstractISMIBean.REPOSITORY; | |
161 }else if(selectedTab.equals(CITY_TAB)){ | |
162 return AbstractISMIBean.PLACE; | |
163 }else if(selectedTab.equals(TEXT_TAB)){ | |
164 return AbstractISMIBean.TEXT; | |
165 }else if(selectedTab.equals(PERSON_TAB)){ | |
166 return AbstractISMIBean.PERSON; | |
167 }else if(selectedTab.equals(ALIAS_TAB)){ | |
168 return AbstractISMIBean.ALIAS; | |
169 }else if(selectedTab.equals(SUBJECT_TAB)){ | |
170 return AbstractISMIBean.SUBJECT; | |
171 }else if(selectedTab.equals(ROLE_TAB)){ | |
172 return AbstractISMIBean.ROLE; | |
173 }else if(selectedTab.equals(DIGI_TAB)){ | |
174 return AbstractISMIBean.DIGITALIZATION; | |
175 } | |
176 } | |
177 return null; | |
178 } | |
179 | |
180 //************************************ | |
181 //************************************ | |
182 //************************************ | |
183 public SessionBean() { | |
184 if(StringUtils.isBlank(this.remoteAddr)){ | |
185 this.getRemoteAddr(); | |
186 } | |
187 logger.info(" [remoteAddr=" + remoteAddr + "]"); | |
188 } | |
189 | |
190 private void autoLogin(){ | |
191 /* | |
192 this.username = "jurzua@mpiwg-berlin.mpg.de"; | |
193 this.password = "221082"; | |
194 this.login(); | |
195 */ | |
196 } | |
197 | |
198 public void getRemoteAddr(){ | |
199 try{ | |
200 HttpServletRequest httpServletRequest = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest(); | |
201 this.remoteAddr = httpServletRequest.getRemoteAddr(); | |
202 }catch (Exception ex) {} | |
203 } | |
204 | |
205 | |
206 public void listenerLogin(ActionEvent event) { | |
207 this.login(); | |
208 } | |
209 | |
210 public String actionLogin(){ | |
211 this.login(); | |
212 return new String(); | |
213 } | |
214 | |
215 public void listenerDisplayLoginDialog(ActionEvent event) { | |
216 if(user == null){ | |
217 this.displayLoginDialog = true; | |
218 }else{ | |
219 this.displayLoginDialog = false; | |
220 } | |
221 } | |
222 | |
223 public String actionLoginCancel(){ | |
224 this.displayLoginDialog = false; | |
225 return PAGE_SIMPLE_SEARCH; | |
226 } | |
227 | |
228 private void login(){ | |
229 user = null; | |
230 // this.loginMsg = ""; | |
231 | |
232 if (StringUtils.isNotEmpty(username) | |
233 && StringUtils.isNotEmpty(password)) { | |
234 user = getSecurityService().getUserByPassword(username, password); | |
235 } | |
236 | |
237 if (user == null) { | |
238 addErrorMsg("The system does not find the account!"); | |
239 this.displayLoginDialog = false; | |
240 } else { | |
241 if(StringUtils.isBlank(this.remoteAddr)){ | |
242 this.getRemoteAddr(); | |
243 } | |
244 logger.info("login " + username + " [remoteAddr=" + remoteAddr + "]"); | |
245 this.setUser(user); | |
246 this.generalMerge = new GeneralMerge(); | |
85 | 247 this.referenceMerge = new ReferenceMerge(); |
96 | 248 this.importMerge = new ImportMerge(); |
1 | 249 this.defForm = new DefinitionForm(); |
250 // refresh the editor of Dirk | |
251 addSessionBean("CurrentWitness", new CurrentWitnessBean()); | |
252 addSessionBean("CurrentCodex", new CurrentCodexBean()); | |
253 addSessionBean("CurrentText", new CurrentTextBean()); | |
254 addSessionBean("CurrentPerson", new CurrentPersonBean()); | |
255 addSessionBean("CurrentAlias", new CurrentAliasBean()); | |
256 addSessionBean("CurrentCollection", new CurrentCollectionBean()); | |
257 addSessionBean("CurrentRepository", new CurrentRepositoryBean()); | |
258 addSessionBean("CurrentCity", new CurrentCityBean()); | |
259 addSessionBean("CurrentDigi", new CurrentDigitalizationBean()); | |
260 editFormCurrentEntId = null; | |
261 this.displayLoginDialog = false; | |
262 } | |
263 } | |
264 | |
265 public String logout() { | |
266 if(StringUtils.isBlank(this.remoteAddr)){ | |
267 this.getRemoteAddr(); | |
268 } | |
269 logger.info("logout " + username + " [remoteAddr=" + remoteAddr + "]"); | |
270 this.username = ""; | |
271 this.password = ""; | |
272 this.user = null; | |
273 this.generalMerge = null; | |
85 | 274 this.referenceMerge = null; |
1 | 275 this.defForm = null; |
276 return PAGE_PUBLIC_CODICES; | |
277 } | |
278 | |
279 public boolean isCanDelete() { | |
280 return isAdmin(); | |
281 } | |
282 | |
283 public boolean isCanMerge() { | |
284 if (getUser() != null) { | |
285 String role = getUser().getRole(); | |
286 if (StringUtils.isNotEmpty(role)) { | |
287 if (AdminBean.Administrator.equals(role) | |
288 || AdminBean.Researcher.equals(role)) { | |
289 return true; | |
290 } | |
291 } | |
292 } | |
293 return false; | |
294 } | |
295 | |
296 public boolean isCanCreate() { | |
297 if (getUser() != null) { | |
298 String role = getUser().getRole(); | |
299 if (StringUtils.isNotEmpty(role)) { | |
300 if (AdminBean.Administrator.equals(role) | |
301 || AdminBean.Researcher.equals(role) | |
302 || AdminBean.Student.equals(role)) { | |
303 return true; | |
304 } | |
305 } | |
306 } | |
307 return false; | |
308 } | |
309 | |
310 public boolean isCanEdit() { | |
311 if (getUser() != null) { | |
312 String role = getUser().getRole(); | |
313 if (StringUtils.isNotEmpty(role)) { | |
314 if (AdminBean.Administrator.equals(role) | |
315 || AdminBean.Researcher.equals(role)) { | |
316 return true; | |
317 } | |
318 } | |
319 } | |
320 return false; | |
321 } | |
322 | |
323 public boolean isAdmin() { | |
324 if (getUser() != null) { | |
325 String role = getUser().getRole(); | |
326 if (StringUtils.isNotEmpty(role)) { | |
327 if (AdminBean.Administrator.equals(role)) { | |
328 return true; | |
329 } | |
330 } | |
331 } | |
332 return false; | |
333 } | |
334 | |
335 private List<String> generalMsgList = new ArrayList<String>(); | |
336 private List<String> errorMsgList = new ArrayList<String>(); | |
337 | |
338 public List<String> getErrorMsgList() { | |
339 return errorMsgList; | |
340 } | |
341 | |
342 public void setErrorMsgList(List<String> errorMsgList) { | |
343 this.errorMsgList = errorMsgList; | |
344 } | |
345 | |
346 public List<String> getGeneralMsgList() { | |
347 return generalMsgList; | |
348 } | |
349 | |
350 public void setGeneralMsgList(List<String> generalMsgList) { | |
351 this.generalMsgList = generalMsgList; | |
352 } | |
353 | |
354 public void addErrorMsg(String msg) { | |
355 if (this.errorMsgList == null) | |
356 this.errorMsgList = new ArrayList<String>(); | |
357 if (StringUtils.isNotEmpty(msg)) { | |
358 this.errorMsgList.add(msg); | |
359 } | |
360 } | |
361 | |
362 public void addGeneralMsg(String msg) { | |
363 if (this.generalMsgList == null) | |
364 this.generalMsgList = new ArrayList<String>(); | |
365 if (StringUtils.isNotEmpty(msg)) { | |
366 this.generalMsgList.add(msg); | |
367 } | |
368 } | |
369 | |
370 public void actionCloseErrorMsgDialog(ActionEvent event) { | |
371 this.errorMsgList = new ArrayList<String>(); | |
372 } | |
373 | |
374 public void actionCloseGeneralMsgDialog(ActionEvent event) { | |
375 this.generalMsgList = new ArrayList<String>(); | |
376 } | |
377 | |
378 protected SecurityService getSecurityService() { | |
379 return getAppBean().getSecurityService(); | |
380 } | |
381 | |
382 public void setSelectedTab(String tab) { | |
383 this.selectedTab = tab; | |
384 } | |
385 | |
386 public String closeErrorWindowAction() { | |
387 setDisplayError(false); | |
388 return "close_error"; | |
389 } | |
390 | |
391 public void editEntity(Long id) { | |
392 Entity entity = getWrapper().getEntityById(id); | |
393 this.editEntity(entity); | |
394 } | |
395 | |
396 public void editEntity(String id) { | |
397 try{ | |
398 Long entityId = Long.parseLong(id); | |
399 this.editEntity(entityId); | |
400 }catch (Exception e) { | |
401 e.printStackTrace(); | |
402 } | |
403 } | |
404 | |
405 public void editEntity(Entity entity) { | |
406 logger.info("[" + this.getUsername() + "] Edit Entity= " + entity); | |
407 | |
408 entity = getWrapper().getEntityContent(entity); | |
409 | |
410 this.editFormCurrentEntId = entity.getId(); | |
411 if (entity.getObjectClass().equals("WITNESS")) { | |
412 this.editWitness(entity); | |
413 selectedTab = WITNESS_TAB; | |
414 } else if (entity.getObjectClass().equals("TEXT")) { | |
415 this.editText(entity); | |
416 selectedTab = TEXT_TAB; | |
417 } else if (entity.getObjectClass().equals("REPOSITORY")) { | |
418 this.editRepository(entity); | |
419 selectedTab = REPOSITORY_TAB; | |
420 } else if (entity.getObjectClass().equals("PERSON")) { | |
421 this.editPerson(entity); | |
422 selectedTab = PERSON_TAB; | |
423 } else if (entity.getObjectClass().equals("COLLECTION")) { | |
424 this.editCollection(entity); | |
425 selectedTab = COLLECTION_TAB; | |
426 } else if (entity.getObjectClass().equals("CODEX")) { | |
427 this.editCodex(entity); | |
428 selectedTab = CODEX_TAB; | |
429 } else if (entity.getObjectClass().equals("PLACE")) { | |
430 this.editPlace(entity); | |
431 selectedTab = CITY_TAB; | |
432 } else if (entity.getObjectClass().equals("ALIAS")) { | |
433 this.editAlias(entity); | |
434 selectedTab = ALIAS_TAB; | |
435 } else if (entity.getObjectClass().equals("SUBJECT")) { | |
436 this.editSubject(entity); | |
437 selectedTab = SUBJECT_TAB; | |
438 } else if (entity.getObjectClass().equals("ROLE")) { | |
439 this.editRole(entity); | |
440 selectedTab = ROLE_TAB; | |
441 } else if (entity.getObjectClass().equals("DIGITALIZATION")) { | |
442 this.editDigi(entity); | |
443 selectedTab = DIGI_TAB; | |
444 } else if (entity.getObjectClass().equals(StudyEvent.OC)) { | |
445 this.editWitnessStudyEvent(entity); | |
446 selectedEventTab = WITNESS_STUDY_EVENT_TAB; | |
447 } else if (entity.getObjectClass().equals(CopyEvent.OC)) { | |
448 this.editCopyEvent(entity); | |
449 selectedEventTab = COPY_EVENT_TAB; | |
450 } else if (entity.getObjectClass().equals(TransferEvent.OC)) { | |
451 this.editTransferEvent(entity); | |
452 selectedEventTab = TRANSFER_EVENT_TAB; | |
453 } else { | |
454 addErrorMsg("Form not implemented for these entities [" + entity.getObjectClass() + "]"); | |
455 } | |
456 } | |
457 | |
458 //*************************** | |
459 //*************************** | |
460 //*************************** | |
461 //*************************** | |
462 //*************************** | |
463 private void editText(Entity text) { | |
464 CurrentTextBean bean = (CurrentTextBean)getSessionBean(ApplicationBean.CURRENT_TEXT); | |
465 if(bean == null){ | |
466 bean = new CurrentTextBean(); | |
467 addSessionBean(ApplicationBean.CURRENT_TEXT, bean); | |
468 } | |
469 try { | |
470 bean.setEntity(text); | |
471 } catch (Exception e) { | |
472 logger.error("[U=" + this.getUsername() + "]" + e.getMessage(), e); | |
473 } | |
474 } | |
475 | |
476 private void editRepository(Entity repository) { | |
477 CurrentRepositoryBean bean = (CurrentRepositoryBean)getSessionBean(ApplicationBean.CURRENT_REPOSITORY); | |
478 if(bean == null){ | |
479 bean = new CurrentRepositoryBean(); | |
480 addSessionBean(ApplicationBean.CURRENT_REPOSITORY, bean); | |
481 } | |
482 try { | |
483 bean.setEntity(repository); | |
484 } catch (Exception e) { | |
485 logger.error("[U=" + this.getUsername() + "]" + e.getMessage(), e); | |
486 } | |
487 } | |
488 | |
489 private void editPerson(Entity person) { | |
490 CurrentPersonBean bean = (CurrentPersonBean)getSessionBean(ApplicationBean.CURRENT_PERSON); | |
491 if(bean == null){ | |
492 bean = new CurrentPersonBean(); | |
493 addSessionBean(ApplicationBean.CURRENT_PERSON, bean); | |
494 } | |
495 try { | |
496 bean.setEntity(person); | |
497 } catch (Exception e) { | |
498 logger.error("[U=" + this.getUsername() + "]" + e.getMessage(), e); | |
499 } | |
500 } | |
501 | |
502 private void editCollection(Entity collection) { | |
503 CurrentCollectionBean bean = (CurrentCollectionBean) getSessionBean(ApplicationBean.CURRENT_COLLECTION); | |
504 if (bean == null) { | |
505 bean = new CurrentCollectionBean(); | |
506 addSessionBean(ApplicationBean.CURRENT_COLLECTION, bean); | |
507 } | |
508 try { | |
509 bean.setEntity(collection); | |
510 } catch (Exception e) { | |
511 logger.error("[U=" + this.getUsername() + "]" + e.getMessage(), e); | |
512 } | |
513 } | |
514 | |
515 private void editCodex(Entity codex) { | |
516 CurrentCodexBean bean = (CurrentCodexBean) getSessionBean(ApplicationBean.CURRENT_CODEX); | |
517 if (bean == null) { | |
518 bean = new CurrentCodexBean(); | |
519 addSessionBean(ApplicationBean.CURRENT_CODEX, bean); | |
520 } | |
521 try { | |
522 bean.setEntity(codex); | |
523 } catch (Exception e) { | |
524 logger.error("[U=" + this.getUsername() + "]" + e.getMessage(), e); | |
525 } | |
526 } | |
527 | |
528 private void editPlace(Entity place) { | |
529 CurrentCityBean bean = (CurrentCityBean) getSessionBean(ApplicationBean.CURRENT_CITY); | |
530 if (bean == null) { | |
531 bean = new CurrentCityBean(); | |
532 addSessionBean(ApplicationBean.CURRENT_CITY, bean); | |
533 } | |
534 try { | |
535 bean.setEntity(place); | |
536 } catch (Exception e) { | |
537 logger.error("[U=" + this.getUsername() + "]" + e.getMessage(), e); | |
538 } | |
539 } | |
540 | |
541 private void editAlias(Entity alias) { | |
542 CurrentAliasBean bean = (CurrentAliasBean) getSessionBean(ApplicationBean.CURRENT_ALIAS); | |
543 if (bean == null) { | |
544 bean = new CurrentAliasBean(); | |
545 addSessionBean(ApplicationBean.CURRENT_ALIAS, bean); | |
546 } | |
547 try { | |
548 bean.setEntity(alias); | |
549 } catch (Exception e) { | |
550 logger.error("[U=" + this.getUsername() + "]" + e.getMessage(), e); | |
551 } | |
552 } | |
553 | |
554 private void editSubject(Entity subject) { | |
555 CurrentSubjectBean bean = (CurrentSubjectBean) getSessionBean(ApplicationBean.CURRENT_SUBJECT); | |
556 if (bean == null) { | |
557 bean = new CurrentSubjectBean(); | |
558 addSessionBean(ApplicationBean.CURRENT_SUBJECT, bean); | |
559 } | |
560 try { | |
561 bean.setEntity(subject); | |
562 } catch (Exception e) { | |
563 logger.error("[U=" + this.getUsername() + "]" + e.getMessage(), e); | |
564 } | |
565 } | |
566 | |
567 private void editRole(Entity role) { | |
568 CurrentRoleBean bean = (CurrentRoleBean) getSessionBean(ApplicationBean.CURRENT_ROLE); | |
569 if (bean == null) { | |
570 bean = new CurrentRoleBean(); | |
571 addSessionBean(ApplicationBean.CURRENT_ROLE, bean); | |
572 } | |
573 try { | |
574 bean.setEntity(role); | |
575 } catch (Exception e) { | |
576 logger.error("[U=" + this.getUsername() + "]" + e.getMessage(), e); | |
577 } | |
578 } | |
579 | |
580 | |
581 private void editDigi(Entity digi) { | |
582 CurrentDigitalizationBean bean = (CurrentDigitalizationBean) getSessionBean(ApplicationBean.CURRENT_DIGI); | |
583 if (bean == null) { | |
584 bean = new CurrentDigitalizationBean(); | |
585 addSessionBean(ApplicationBean.CURRENT_DIGI, bean); | |
586 } | |
587 try { | |
588 bean.setEntity(digi); | |
589 } catch (Exception e) { | |
590 logger.error("[U=" + this.getUsername() + "]" + e.getMessage(), e); | |
591 } | |
592 } | |
593 | |
594 | |
595 | |
596 private void editWitness(Entity witness) { | |
597 CurrentWitnessBean bean = (CurrentWitnessBean) getSessionBean(ApplicationBean.CURRENT_WITNESS); | |
598 if (bean == null) { | |
599 bean = new CurrentWitnessBean(); | |
600 addSessionBean(ApplicationBean.CURRENT_WITNESS, bean); | |
601 } | |
602 try { | |
603 bean.setEntity(witness); | |
604 } catch (Exception e) { | |
605 logger.error("[U=" + this.getUsername() + "]" + e.getMessage(), e); | |
606 } | |
607 } | |
608 | |
609 private void editWitnessStudyEvent(Entity event){ | |
610 this.studyEventForm = new StudyEvent(event); | |
611 } | |
612 | |
613 public void listenerCreateStudyEvent(ActionEvent event){ | |
614 this.studyEventForm = new StudyEvent(); | |
615 } | |
616 | |
617 private void editCopyEvent(Entity event){ | |
618 this.copyEventForm = new CopyEvent(event); | |
619 } | |
620 | |
621 public void listenerCreateCopyEvent(ActionEvent event){ | |
622 this.copyEventForm = new CopyEvent(); | |
623 } | |
624 | |
625 private void editTransferEvent(Entity event){ | |
626 this.transferEventForm = new TransferEvent(event); | |
627 } | |
628 | |
629 public void listenerCreateTransferEvent(ActionEvent event){ | |
630 this.transferEventForm = new TransferEvent(); | |
631 } | |
632 | |
633 | |
634 public Long getEditFormCurrentEntId() { | |
635 return editFormCurrentEntId; | |
636 } | |
637 | |
638 public void setEditFormCurrentEntId(Long editFormCurrentEntId) { | |
639 this.editFormCurrentEntId = editFormCurrentEntId; | |
640 } | |
641 | |
642 | |
643 public void updateCurrent(ItemChangeEvent event) { | |
119 | 644 //System.out.println(event.getNewItemName()); |
1 | 645 } |
646 | |
647 public void listenerEntityTabChange(ItemChangeEvent event) { | |
648 String url = "?formIndex=" + this.selectedTab; | |
649 this.redirect(null, url); | |
650 } | |
651 | |
652 public void listenerEventTabChange(ItemChangeEvent event) { | |
653 String url = "?formIndex=" + this.selectedEventTab; | |
654 this.redirect(null, url); | |
655 } | |
656 | |
657 public void listenerAdvancedSearchTabChange(ItemChangeEvent event) { | |
658 String url = "?searchForm=" + this.selectedAdvancedSearchTab; | |
659 this.redirect(null, url); | |
660 } | |
661 | |
181
52aa06772336
fixed missingCodex function. moved some code from SessionBean up to MissingRelationsBean and PublicByAuthorBean.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
180
diff
changeset
|
662 public void redirect(String redirectPath, String parameters){ |
1 | 663 FacesContext fc = FacesContext.getCurrentInstance(); |
664 ExternalContext ec = fc.getExternalContext(); | |
665 String contextPath = ec.getRequestContextPath(); | |
666 if(StringUtils.isEmpty(redirectPath)){ | |
667 redirectPath = ec.getRequestServletPath(); | |
668 } | |
669 try { | |
670 ec.redirect(ec.encodeActionURL(contextPath + redirectPath + parameters)); | |
671 | |
672 } catch (IOException e) { | |
673 e.printStackTrace(); | |
674 } | |
675 } | |
676 | |
677 public Entity getDefinition(Entity assertion) { | |
678 return getWrapper().getDefinition(assertion.getObjectClass()); | |
679 } | |
680 | |
681 public String toProfile(){ | |
682 return PAGE_PROFILE; | |
683 } | |
684 | |
685 public String toSimpleSearch() { | |
686 return PAGE_SIMPLE_SEARCH; | |
687 } | |
688 | |
689 public String toDefinitionEditor(){ | |
690 if(this.defForm != null){ | |
691 this.defForm.loadDefinitions(); | |
692 return PAGE_DEF_EDITOR; | |
693 } | |
694 return ""; | |
695 } | |
696 | |
697 public String displayByAttribute() { | |
698 Attribute att = (Attribute) getRequestBean("attribute"); | |
699 logger.info(att); | |
700 if (att != null) { | |
701 Entity ent = getWrapper().getEntityById(att.getSourceId()); | |
702 if (ent.getObjectClass().equals("TEXT")) { | |
703 this.displayTitle.showTitle(ent.getId()); | |
704 return PAGE_DISPLAY_TITLE; | |
705 } else if (ent.getObjectClass().equals("PERSON")) { | |
706 this.displayAuthor.showAuthor(ent.getId()); | |
707 return PAGE_DISPLAY_AUTHOR; | |
708 } | |
709 } | |
710 | |
711 return ""; | |
712 } | |
713 | |
714 public void displayAuthorSetPerson(String personId){ | |
715 try{ | |
716 Long id = new Long(personId); | |
717 Entity person = getWrapper().getEntityById(id); | |
718 if(person != null){ | |
719 person = getWrapper().getEntityContent(person); | |
720 if (person.getObjectClass().equals("PERSON")) { | |
721 this.displayAuthor.showAuthor(person.getId()); | |
722 } | |
723 } | |
724 }catch(Exception e){ | |
725 logger.error("[U=" + this.getUsername() + "]" + e.getMessage(), e); | |
726 } | |
727 } | |
728 | |
729 public void displayAuthorSetTitle(String textId){ | |
730 try{ | |
731 Long id = new Long(textId); | |
732 this.displayAuthor.showTitle(id); | |
733 }catch(Exception e){ | |
734 logger.error("[U=" + this.getUsername() + "]" + e.getMessage(), e); | |
735 } | |
736 } | |
737 | |
738 public void displayAuthorSetWitness(String witnessId){ | |
739 try{ | |
740 Long id = new Long(witnessId); | |
741 this.displayAuthor.showWitness(id); | |
742 }catch(Exception e){ | |
743 logger.error("[U=" + this.getUsername() + "]" + e.getMessage(), e); | |
744 } | |
745 } | |
746 | |
747 public void displayTitleSetTitle(String textId){ | |
748 try{ | |
749 Long id = new Long(textId); | |
750 Entity ent = getWrapper().getEntityById(id); | |
751 if(ent != null){ | |
752 ent = getWrapper().getEntityContent(ent); | |
753 if (ent.getObjectClass().equals("TEXT")) { | |
754 //this.editText(ent); | |
755 this.displayTitle.showTitle(id); | |
756 } | |
757 } | |
758 }catch(Exception e){ | |
759 logger.error("[U=" + this.getUsername() + "]" + e.getMessage(), e); | |
760 } | |
761 } | |
762 | |
763 public void displayTitleSetWitness(String witnessId){ | |
764 try{ | |
765 Long id = new Long(witnessId); | |
766 this.displayTitle.showWitness(id); | |
767 | |
768 }catch(Exception e){ | |
769 logger.error("[U=" + this.getUsername() + "]" + e.getMessage(), e); | |
770 } | |
771 } | |
772 | |
773 public void displayTitleFromWitness(String witnessId){ | |
774 try{ | |
775 Long longWitnessId = new Long(witnessId); | |
776 | |
777 List<Entity> textList = | |
778 getWrapper().getTargetsForSourceRelation(longWitnessId, "is_exemplar_of", "TEXT", 1); | |
779 if(textList.size() > 0){ | |
780 this.displayTitle.showTitle(textList.get(0).getId()); | |
781 this.displayTitle.showWitness(longWitnessId); | |
782 } | |
783 | |
784 }catch(Exception e){ | |
785 logger.error("[U=" + this.getUsername() + "]" + e.getMessage(), e); | |
786 } | |
787 } | |
788 | |
789 public void displayAuthorFromWitness(String witnessId){ | |
790 try{ | |
791 Long longWitnessId = new Long(witnessId); | |
792 | |
793 List<Entity> titleList = | |
794 getWrapper().getTargetsForSourceRelation(longWitnessId, "is_exemplar_of", "TEXT", 1); | |
795 if(titleList.size() > 0){ | |
796 Entity title = titleList.get(0); | |
797 List<Entity> authorList = | |
798 getWrapper().getTargetsForSourceRelation(title.getId(), "was_created_by", "PERSON", 1); | |
799 if(authorList.size() > 0){ | |
800 this.displayAuthor.showAuthor(authorList.get(0).getId()); | |
801 this.displayAuthor.showTitle(title.getId()); | |
802 this.displayAuthor.showWitness(longWitnessId); | |
803 } | |
804 } | |
805 | |
806 }catch(Exception e){ | |
807 logger.error("[U=" + this.getUsername() + "]" + e.getMessage(), e); | |
808 } | |
809 } | |
810 | |
811 public void displayAuthorFromTitles(String titleId){ | |
812 try{ | |
813 Long longTitleId = new Long(titleId); | |
814 | |
815 List<Entity> authorList = | |
816 getWrapper().getTargetsForSourceRelation(longTitleId, "was_created_by", "PERSON", 1); | |
817 if(authorList.size() > 0){ | |
818 this.displayAuthor.showAuthor(authorList.get(0).getId()); | |
819 this.displayAuthor.showTitle(longTitleId); | |
820 } | |
821 | |
822 }catch(Exception e){ | |
823 logger.error("[U=" + this.getUsername() + "]" + e.getMessage(), e); | |
824 } | |
825 } | |
826 | |
827 | |
828 public String editByAttribute() { | |
829 Attribute att = (Attribute) getRequestBean("attribute"); | |
830 logger.info(att); | |
831 if (att != null) { | |
832 Entity ent = getWrapper().getEntityById(att.getSourceId()); | |
833 if (ent != null) { | |
834 this.editEntity(ent); | |
835 return PAGE_ENTRY; | |
836 } | |
837 } | |
838 | |
839 return ""; | |
840 } | |
841 | |
842 public void setIdEntityDetails(String id){ | |
843 try{ | |
844 Long idLong = new Long(id); | |
845 Entity e = getWrapper().getEntityById(idLong); | |
846 this.entDetailsForm.setEntity(e); | |
847 }catch(Exception e){ | |
848 logger.error("[U=" + this.getUsername() + "]" + e.getMessage(), e); | |
849 } | |
850 } | |
851 | |
852 public String editByEntity() { | |
853 Entity ent = (Entity) getRequestBean("entity"); | |
854 if (ent != null) { | |
855 if (ent != null) { | |
856 this.editEntity(ent); | |
857 return PAGE_ENTRY; | |
858 } | |
859 } | |
860 return ""; | |
861 } | |
862 | |
863 public void setErrorMessages(CheckResults cr) { | |
864 | |
865 errorMessages = new ArrayList<String>(); | |
866 for (String err : cr.errors) { | |
867 errorMessages.add(err); | |
868 } | |
869 | |
870 } | |
871 | |
872 public void setDisplayError(boolean b) { | |
873 displayError = b; | |
874 | |
875 } | |
876 | |
877 public boolean getDisplayError() { | |
878 return displayError; | |
879 } | |
880 | |
881 public ArrayList<String> getErrorMessages() { | |
882 return errorMessages; | |
883 } | |
884 | |
885 public User getUser() { | |
886 if(user == null){ | |
887 autoLogin(); | |
888 } | |
889 return user; | |
890 } | |
891 | |
892 public void setUser(User user) { | |
893 this.user = user; | |
894 } | |
895 | |
896 public String getUsername() { | |
897 return username; | |
898 } | |
899 | |
900 public void setUsername(String username) { | |
901 this.username = username; | |
902 } | |
903 | |
904 public String getPassword() { | |
905 return password; | |
906 } | |
907 | |
908 public void setPassword(String password) { | |
909 this.password = password; | |
910 } | |
911 | |
912 public GeneralMerge getGeneralMerge() { | |
913 return generalMerge; | |
914 } | |
915 | |
916 public void setGeneralMerge(GeneralMerge generalMerge) { | |
917 this.generalMerge = generalMerge; | |
918 } | |
919 | |
85 | 920 public ReferenceMerge getReferenceMerge() { |
921 return referenceMerge; | |
922 } | |
923 | |
924 public void setReferenceMerge(ReferenceMerge referenceMerge) { | |
925 this.referenceMerge = referenceMerge; | |
926 } | |
927 | |
96 | 928 /** |
929 * @return the importMerge | |
930 */ | |
931 public ImportMerge getImportMerge() { | |
932 return importMerge; | |
933 } | |
934 | |
935 /** | |
936 * @param importMerge the importMerge to set | |
937 */ | |
938 public void setImportMerge(ImportMerge importMerge) { | |
939 this.importMerge = importMerge; | |
940 } | |
941 | |
942 public DefinitionForm getDefForm() { | |
1 | 943 return defForm; |
944 } | |
945 | |
946 public void setDefForm(DefinitionForm defForm) { | |
947 this.defForm = defForm; | |
948 } | |
949 | |
950 public StudyEvent getStudyEventForm() { | |
951 return studyEventForm; | |
952 } | |
953 | |
954 public void setStudyEventForm(StudyEvent studyEventForm) { | |
955 this.studyEventForm = studyEventForm; | |
956 } | |
957 | |
958 public CopyEvent getCopyEventForm() { | |
959 return copyEventForm; | |
960 } | |
961 | |
962 public void setCopyEventForm(CopyEvent copyEventForm) { | |
963 this.copyEventForm = copyEventForm; | |
964 } | |
965 | |
966 public TransferEvent getTransferEventForm() { | |
967 return transferEventForm; | |
968 } | |
969 | |
970 public void setTransferEventForm(TransferEvent transferEventForm) { | |
971 this.transferEventForm = transferEventForm; | |
972 } | |
973 | |
974 public String getSelectedEventTab() { | |
975 return selectedEventTab; | |
976 } | |
977 | |
978 public void setSelectedEventTab(String selectedEventTab) { | |
979 this.selectedEventTab = selectedEventTab; | |
980 } | |
981 | |
982 public AdvancedSearchBean getAdvancedSearch() { | |
983 return advancedSearch; | |
984 } | |
985 | |
986 public void setAdvancedSearch(AdvancedSearchBean advancedSearch) { | |
987 this.advancedSearch = advancedSearch; | |
988 } | |
989 | |
990 public DisplayAuthorBean getDisplayAuthor() { | |
991 return displayAuthor; | |
992 } | |
993 | |
994 public void setDisplayAuthor(DisplayAuthorBean displayAuthor) { | |
995 this.displayAuthor = displayAuthor; | |
996 } | |
997 | |
998 public DisplayTitleBean getDisplayTitle() { | |
999 return displayTitle; | |
1000 } | |
1001 | |
1002 public void setDisplayTitle(DisplayTitleBean displayTitle) { | |
1003 this.displayTitle = displayTitle; | |
1004 } | |
1005 | |
1006 public Calendar getCurrentCalendar() { | |
1007 return currentCalendar; | |
1008 } | |
1009 | |
1010 public void setCurrentCalendar(Calendar currentCalendar) { | |
1011 this.currentCalendar = currentCalendar; | |
1012 } | |
1013 | |
1014 public EntityList getCurrentEntListForCalendar() { | |
1015 return currentEntListForCalendar; | |
1016 } | |
1017 | |
1018 public void setCurrentEntListForCalendar(EntityList currentEntListForCalendar) { | |
1019 this.currentEntListForCalendar = currentEntListForCalendar; | |
1020 } | |
1021 | |
1022 public Long getCurrentEntIdForCalendar() { | |
1023 return currentEntIdForCalendar; | |
1024 } | |
1025 | |
1026 public void setCurrentEntIdForCalendar(Long currentEntIdForCalendar) { | |
1027 this.currentEntIdForCalendar = currentEntIdForCalendar; | |
1028 } | |
1029 | |
1030 public boolean isDisplayLoginDialog() { | |
1031 return displayLoginDialog; | |
1032 } | |
1033 | |
1034 public boolean isDisplayLoginDialog4PrivatePage(){ | |
1035 return displayLoginDialog || this.user == null; | |
1036 } | |
1037 | |
1038 public boolean isDisplayLoginDialog4PublicPage(){ | |
1039 return displayLoginDialog; | |
1040 } | |
1041 | |
1042 public EntityDetailsBean getEntDetailsForm() { | |
1043 return entDetailsForm; | |
1044 } | |
1045 | |
1046 public void setEntDetailsForm(EntityDetailsBean entDetailsForm) { | |
1047 this.entDetailsForm = entDetailsForm; | |
1048 } | |
1049 | |
1050 public String getSelectedTab() { | |
1051 return selectedTab; | |
1052 } | |
1053 | |
1054 public String getSelectedAdvancedSearchTab() { | |
1055 return selectedAdvancedSearchTab; | |
1056 } | |
1057 | |
1058 public void setSelectedAdvancedSearchTab(String selectedAdvancedSearchTab) { | |
1059 this.selectedAdvancedSearchTab = selectedAdvancedSearchTab; | |
1060 } | |
1061 | |
1062 | |
1063 public DynamicPageEditor getPageEditor(){ | |
1064 if(this.pageEditor == null){ | |
1065 this.pageEditor = new DynamicPageEditor(); | |
1066 } | |
1067 return this.pageEditor; | |
1068 } | |
1069 | |
1070 public DigiListBean getDigiList() { | |
1071 if(digiList == null){ | |
1072 digiList = new DigiListBean(getWrapper()); | |
1073 } | |
1074 | |
1075 return digiList; | |
1076 } | |
1077 | |
1078 public DynamicPage getDynamicPage() { | |
1079 if(dynamicPage == null){ | |
1080 this.dynamicPage = new DynamicPage(); | |
1081 } | |
1082 return dynamicPage; | |
1083 } | |
1084 | |
1085 public void setDynamicPage(DynamicPage dynamicPage) { | |
1086 this.dynamicPage = dynamicPage; | |
1087 } | |
1088 | |
1089 public PublicCodexView getPublicCodexView(){ | |
1090 if(publicCodexView == null){ | |
1091 this.publicCodexView = new PublicCodexView(); | |
1092 } | |
1093 return this.publicCodexView; | |
1094 } | |
1095 | |
1096 public PublicCodexBean getPublicCodexBean() { | |
1097 if(publicCodexBean == null){ | |
1098 this.publicCodexBean = new PublicCodexBean(); | |
1099 } | |
1100 return publicCodexBean; | |
1101 } | |
1102 | |
1103 public void setPublicCodexBean(PublicCodexBean publicCodexBean) { | |
1104 this.publicCodexBean = publicCodexBean; | |
1105 } | |
153
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
119
diff
changeset
|
1106 |
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
119
diff
changeset
|
1107 /** |
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
119
diff
changeset
|
1108 * @return the publicByAuthor |
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
119
diff
changeset
|
1109 */ |
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
119
diff
changeset
|
1110 public PublicByAuthorBean getPublicByAuthor() { |
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
119
diff
changeset
|
1111 return publicByAuthor; |
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
119
diff
changeset
|
1112 } |
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
119
diff
changeset
|
1113 |
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
119
diff
changeset
|
1114 /** |
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
119
diff
changeset
|
1115 * @param publicByAuthor the publicByAuthor to set |
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
119
diff
changeset
|
1116 */ |
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
119
diff
changeset
|
1117 public void setPublicByAuthor(PublicByAuthorBean publicByAuthor) { |
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
119
diff
changeset
|
1118 this.publicByAuthor = publicByAuthor; |
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
119
diff
changeset
|
1119 } |
3c83f42a8a39
first stab at new public-by-author interface.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
119
diff
changeset
|
1120 |
180
0d31c8be7c31
new MissingRelations feature and UI.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
178
diff
changeset
|
1121 public MissingRelationsBean getMissingRelations() { |
0d31c8be7c31
new MissingRelations feature and UI.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
178
diff
changeset
|
1122 return missingRelations; |
0d31c8be7c31
new MissingRelations feature and UI.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
178
diff
changeset
|
1123 } |
0d31c8be7c31
new MissingRelations feature and UI.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
178
diff
changeset
|
1124 |
0d31c8be7c31
new MissingRelations feature and UI.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
178
diff
changeset
|
1125 public void setMissingRelations(MissingRelationsBean missingRelations) { |
0d31c8be7c31
new MissingRelations feature and UI.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
178
diff
changeset
|
1126 this.missingRelations = missingRelations; |
0d31c8be7c31
new MissingRelations feature and UI.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
178
diff
changeset
|
1127 } |
188
34ac2e1b323a
new Clean UI to find non-public digitalizations of public codices and make them public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
181
diff
changeset
|
1128 |
34ac2e1b323a
new Clean UI to find non-public digitalizations of public codices and make them public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
181
diff
changeset
|
1129 public NonpublicEntitiesBean getNonpublicEntities() { |
34ac2e1b323a
new Clean UI to find non-public digitalizations of public codices and make them public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
181
diff
changeset
|
1130 return nonpublicEntities; |
34ac2e1b323a
new Clean UI to find non-public digitalizations of public codices and make them public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
181
diff
changeset
|
1131 } |
34ac2e1b323a
new Clean UI to find non-public digitalizations of public codices and make them public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
181
diff
changeset
|
1132 |
34ac2e1b323a
new Clean UI to find non-public digitalizations of public codices and make them public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
181
diff
changeset
|
1133 public void setNonpublicEntities(NonpublicEntitiesBean nonpublicEntities) { |
34ac2e1b323a
new Clean UI to find non-public digitalizations of public codices and make them public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
181
diff
changeset
|
1134 this.nonpublicEntities = nonpublicEntities; |
34ac2e1b323a
new Clean UI to find non-public digitalizations of public codices and make them public.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
181
diff
changeset
|
1135 } |
1 | 1136 |
1137 | |
1138 | |
1139 } | |
1140 |