-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #255 from OCR4all/ocrd_library
Ocrd library
- Loading branch information
Showing
24 changed files
with
1,313 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
src/main/java/de/uniwue/web/communication/DirectRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package de.uniwue.web.communication; | ||
|
||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import de.uniwue.web.model.PageAnnotations; | ||
import org.springframework.ui.Model; | ||
import org.springframework.web.bind.annotation.RequestParam; | ||
|
||
/** | ||
* Communication object for the library to request the editor | ||
* | ||
*/ | ||
public class DirectRequest { | ||
private String imagemapString; | ||
private String customFlag; | ||
private String customFolder; | ||
|
||
@JsonCreator | ||
public DirectRequest(String imagemapString, | ||
String customFlag, | ||
String customFolder) { | ||
this.imagemapString = imagemapString; | ||
this.customFlag = customFlag; | ||
if(customFolder != null) { | ||
this.customFolder = customFolder; | ||
} else { | ||
this.customFolder = ""; | ||
} | ||
} | ||
|
||
public String getImagemapString() { | ||
return imagemapString; | ||
} | ||
|
||
public String getCustomFlag() { | ||
return customFlag; | ||
} | ||
|
||
public String getCustomFolder() { | ||
return customFolder; | ||
} | ||
|
||
public void setImagemapString(String imagemapString) { | ||
this.imagemapString = imagemapString; | ||
} | ||
|
||
public void setCustomFlag(String customFlag) { | ||
this.customFlag = customFlag; | ||
} | ||
|
||
public void setCustomFolder(String customFolder) { | ||
this.customFolder = customFolder; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.