diff 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
line wrap: on
line diff
--- a/src/main/java/de/mpiwg/itgroup/ismi/browse/AbstractEntityRepositoryBean.java	Mon Jun 04 20:17:04 2018 +0200
+++ b/src/main/java/de/mpiwg/itgroup/ismi/browse/AbstractEntityRepositoryBean.java	Wed Jun 06 21:01:05 2018 +0200
@@ -46,6 +46,7 @@
 
 	protected String personName;
 	protected String personNameTranslit;
+	protected String personMamsNr;
 
 	protected String codexIdentifier;
 	
@@ -113,37 +114,37 @@
 	public String advancedFirst() {
 		this.advancedPaginator.first();
 		this.updateAdvancedEntities();
-		return GOTO_ENTITY_REPOSITORY;
+		return null; //GOTO_ENTITY_REPOSITORY;
 	}
 
 	public String advancedLast() {
 		this.advancedPaginator.last();
 		this.updateAdvancedEntities();
-		return GOTO_ENTITY_REPOSITORY;
+		return null; //GOTO_ENTITY_REPOSITORY;
 	}
 
 	public String advancedFastForward() {
 		this.advancedPaginator.fastForward();
 		this.updateAdvancedEntities();
-		return GOTO_ENTITY_REPOSITORY;
+		return null; //GOTO_ENTITY_REPOSITORY;
 	}
 
 	public String advancedFastRewind() {
 		this.advancedPaginator.fastRewind();
 		this.updateAdvancedEntities();
-		return GOTO_ENTITY_REPOSITORY;
+		return null; //GOTO_ENTITY_REPOSITORY;
 	}
 
 	public String advancedPrevious() {
 		this.advancedPaginator.previous();
 		this.updateAdvancedEntities();
-		return GOTO_ENTITY_REPOSITORY;
+		return null; //GOTO_ENTITY_REPOSITORY;
 	}
 
 	public String advancedNext() {
 		this.advancedPaginator.next();
 		this.updateAdvancedEntities();
-		return GOTO_ENTITY_REPOSITORY;
+		return null; //GOTO_ENTITY_REPOSITORY;
 	}
 	
 	public void reset(){
@@ -289,6 +290,9 @@
             if (StringUtils.isNotEmpty(this.personNameTranslit)) {
                 filterList.add(new AttributeFilter("name_translit", this.personNameTranslit, PERSON));
             }
+            if (StringUtils.isNotEmpty(this.personMamsNr)) {
+                filterList.add(new AttributeFilter("mams_number", this.personMamsNr, PERSON));
+            }
         }
         
         /*
@@ -431,7 +435,21 @@
 		this.personNameTranslit = personNameTranslit;
 	}
 
-	public String getObjectClass() {
+	/**
+     * @return the personMamsNr
+     */
+    public String getPersonMamsNr() {
+        return personMamsNr;
+    }
+
+    /**
+     * @param personMamsNr the personMamsNr to set
+     */
+    public void setPersonMamsNr(String personMamsNr) {
+        this.personMamsNr = personMamsNr;
+    }
+
+    public String getObjectClass() {
 		return objectClass;
 	}