comparison src/main/java/de/mpiwg/itgroup/ismi/browse/AbstractEntityRepositoryBean.java @ 173:aa564b1b5e1f public_by_author

publicByAuthor feature ui for selecting texts ready. actual changing of public state not yet implemented.
author Robert Casties <casties@mpiwg-berlin.mpg.de>
date Wed, 06 Jun 2018 21:01:05 +0200
parents 0b5d02012299
children c9dec00f0f17
comparison
equal deleted inserted replaced
172:3475b8bea550 173:aa564b1b5e1f
44 protected String textFullTitleTranslit; 44 protected String textFullTitleTranslit;
45 protected String textShortTitle; 45 protected String textShortTitle;
46 46
47 protected String personName; 47 protected String personName;
48 protected String personNameTranslit; 48 protected String personNameTranslit;
49 protected String personMamsNr;
49 50
50 protected String codexIdentifier; 51 protected String codexIdentifier;
51 52
52 protected String collectionName; 53 protected String collectionName;
53 54
111 } 112 }
112 113
113 public String advancedFirst() { 114 public String advancedFirst() {
114 this.advancedPaginator.first(); 115 this.advancedPaginator.first();
115 this.updateAdvancedEntities(); 116 this.updateAdvancedEntities();
116 return GOTO_ENTITY_REPOSITORY; 117 return null; //GOTO_ENTITY_REPOSITORY;
117 } 118 }
118 119
119 public String advancedLast() { 120 public String advancedLast() {
120 this.advancedPaginator.last(); 121 this.advancedPaginator.last();
121 this.updateAdvancedEntities(); 122 this.updateAdvancedEntities();
122 return GOTO_ENTITY_REPOSITORY; 123 return null; //GOTO_ENTITY_REPOSITORY;
123 } 124 }
124 125
125 public String advancedFastForward() { 126 public String advancedFastForward() {
126 this.advancedPaginator.fastForward(); 127 this.advancedPaginator.fastForward();
127 this.updateAdvancedEntities(); 128 this.updateAdvancedEntities();
128 return GOTO_ENTITY_REPOSITORY; 129 return null; //GOTO_ENTITY_REPOSITORY;
129 } 130 }
130 131
131 public String advancedFastRewind() { 132 public String advancedFastRewind() {
132 this.advancedPaginator.fastRewind(); 133 this.advancedPaginator.fastRewind();
133 this.updateAdvancedEntities(); 134 this.updateAdvancedEntities();
134 return GOTO_ENTITY_REPOSITORY; 135 return null; //GOTO_ENTITY_REPOSITORY;
135 } 136 }
136 137
137 public String advancedPrevious() { 138 public String advancedPrevious() {
138 this.advancedPaginator.previous(); 139 this.advancedPaginator.previous();
139 this.updateAdvancedEntities(); 140 this.updateAdvancedEntities();
140 return GOTO_ENTITY_REPOSITORY; 141 return null; //GOTO_ENTITY_REPOSITORY;
141 } 142 }
142 143
143 public String advancedNext() { 144 public String advancedNext() {
144 this.advancedPaginator.next(); 145 this.advancedPaginator.next();
145 this.updateAdvancedEntities(); 146 this.updateAdvancedEntities();
146 return GOTO_ENTITY_REPOSITORY; 147 return null; //GOTO_ENTITY_REPOSITORY;
147 } 148 }
148 149
149 public void reset(){ 150 public void reset(){
150 this.entities = new ArrayList<Entity>(); 151 this.entities = new ArrayList<Entity>();
151 this.currentEntities = new ArrayList<Entity>(); 152 this.currentEntities = new ArrayList<Entity>();
287 filterList.add(new AttributeFilter("name", this.personName, PERSON)); 288 filterList.add(new AttributeFilter("name", this.personName, PERSON));
288 } 289 }
289 if (StringUtils.isNotEmpty(this.personNameTranslit)) { 290 if (StringUtils.isNotEmpty(this.personNameTranslit)) {
290 filterList.add(new AttributeFilter("name_translit", this.personNameTranslit, PERSON)); 291 filterList.add(new AttributeFilter("name_translit", this.personNameTranslit, PERSON));
291 } 292 }
293 if (StringUtils.isNotEmpty(this.personMamsNr)) {
294 filterList.add(new AttributeFilter("mams_number", this.personMamsNr, PERSON));
295 }
292 } 296 }
293 297
294 /* 298 /*
295 * run search and sort result (by ownvalue) 299 * run search and sort result (by ownvalue)
296 */ 300 */
429 433
430 public void setPersonNameTranslit(String personNameTranslit) { 434 public void setPersonNameTranslit(String personNameTranslit) {
431 this.personNameTranslit = personNameTranslit; 435 this.personNameTranslit = personNameTranslit;
432 } 436 }
433 437
434 public String getObjectClass() { 438 /**
439 * @return the personMamsNr
440 */
441 public String getPersonMamsNr() {
442 return personMamsNr;
443 }
444
445 /**
446 * @param personMamsNr the personMamsNr to set
447 */
448 public void setPersonMamsNr(String personMamsNr) {
449 this.personMamsNr = personMamsNr;
450 }
451
452 public String getObjectClass() {
435 return objectClass; 453 return objectClass;
436 } 454 }
437 455
438 public void setObjectClass(String objectClass) { 456 public void setObjectClass(String objectClass) {
439 this.objectClass = objectClass; 457 this.objectClass = objectClass;