update lastaflute
This commit is contained in:
parent
9b6d0e5248
commit
b0bbf01909
8 changed files with 9 additions and 9 deletions
4
pom.xml
4
pom.xml
|
@ -41,11 +41,11 @@
|
|||
|
||||
<!-- Main Framework -->
|
||||
<dbflute.version>1.1.0-sp9</dbflute.version>
|
||||
<lastaflute.version>0.7.4-RC1</lastaflute.version>
|
||||
<lastaflute.version>0.7.5-RC2</lastaflute.version>
|
||||
<lasta.taglib.version>0.6.7</lasta.taglib.version>
|
||||
<servlet.version>3.1.0</servlet.version>
|
||||
<jsp.version>2.3.1</jsp.version>
|
||||
<mailflute.version>0.4.6</mailflute.version>
|
||||
<mailflute.version>0.4.8</mailflute.version>
|
||||
|
||||
<!-- Partner Library -->
|
||||
<slf4j.version>1.7.12</slf4j.version>
|
||||
|
|
|
@ -57,7 +57,7 @@ public class AdminBackupAction extends FessAdminAction {
|
|||
@Execute
|
||||
public ActionResponse download(final String id) {
|
||||
if (StreamUtil.of(fessConfig.getIndexBackupTargetsAsArray()).anyMatch(s -> s.equals(id))) {
|
||||
return asStream(id + ".json").stream(
|
||||
return asStream(id + ".bulk").contentTypeOctetStream().stream(
|
||||
out -> {
|
||||
try (CurlResponse response =
|
||||
Curl.get(ResourceUtil.getElasticsearchHttpUrl() + "/" + id + "/_data").param("format", "json").execute()) {
|
||||
|
|
|
@ -188,7 +188,7 @@ public class AdminBadwordAction extends FessAdminAction {
|
|||
public ActionResponse download(final DownloadForm form) {
|
||||
verifyToken(() -> asDownloadHtml());
|
||||
|
||||
return asStream("badword.csv").stream(out -> {
|
||||
return asStream("badword.csv").contentTypeOctetStream().stream(out -> {
|
||||
final Path tempFile = Files.createTempFile(null, null);
|
||||
try {
|
||||
try (Writer writer = new BufferedWriter(new OutputStreamWriter(Files.newOutputStream(tempFile), getCsvEncoding()))) {
|
||||
|
|
|
@ -190,7 +190,7 @@ public class AdminDesignAction extends FessAdminAction implements Serializable {
|
|||
}
|
||||
validate(form, messages -> {}, () -> asListHtml());
|
||||
verifyToken(() -> asListHtml());
|
||||
return asStream(file.getName()).stream(out -> {
|
||||
return asStream(file.getName()).contentTypeOctetStream().stream(out -> {
|
||||
try (FileInputStream fis = new FileInputStream(file)) {
|
||||
out.write(fis);
|
||||
}
|
||||
|
|
|
@ -214,7 +214,7 @@ public class AdminDictKuromojiAction extends FessAdminAction {
|
|||
validate(form, messages -> {}, () -> downloadpage(form.dictId));
|
||||
verifyTokenKeep(() -> downloadpage(form.dictId));
|
||||
return kuromojiService.getKuromojiFile(form.dictId).map(file -> {
|
||||
return asStream(new File(file.getPath()).getName()).stream(out -> {
|
||||
return asStream(new File(file.getPath()).getName()).contentTypeOctetStream().stream(out -> {
|
||||
try (InputStream inputStream = file.getInputStream()) {
|
||||
out.write(inputStream);
|
||||
}
|
||||
|
|
|
@ -218,7 +218,7 @@ public class AdminDictSynonymAction extends FessAdminAction {
|
|||
validate(form, messages -> {}, () -> downloadpage(form.dictId));
|
||||
verifyTokenKeep(() -> downloadpage(form.dictId));
|
||||
return synonymService.getSynonymFile(form.dictId).map(file -> {
|
||||
return asStream(new File(file.getPath()).getName()).stream(out -> {
|
||||
return asStream(new File(file.getPath()).getName()).contentTypeOctetStream().stream(out -> {
|
||||
try (InputStream inputStream = file.getInputStream()) {
|
||||
out.write(inputStream);
|
||||
}
|
||||
|
|
|
@ -195,7 +195,7 @@ public class AdminElevatewordAction extends FessAdminAction {
|
|||
public ActionResponse download(final DownloadForm form) {
|
||||
verifyToken(() -> asDownloadHtml());
|
||||
|
||||
return asStream("elevate.csv").stream(out -> {
|
||||
return asStream("elevate.csv").contentTypeOctetStream().stream(out -> {
|
||||
final Path tempFile = Files.createTempFile(null, null);
|
||||
try {
|
||||
try (Writer writer = new BufferedWriter(new OutputStreamWriter(Files.newOutputStream(tempFile), getCsvEncoding()))) {
|
||||
|
|
|
@ -68,7 +68,7 @@ public class AdminLogAction extends FessAdminAction {
|
|||
final String logFilePath = systemHelper.getLogFilePath();
|
||||
if (StringUtil.isNotBlank(logFilePath)) {
|
||||
final Path path = Paths.get(logFilePath, filename);
|
||||
return asStream(filename).stream(out -> {
|
||||
return asStream(filename).contentTypeOctetStream().stream(out -> {
|
||||
try (InputStream in = Files.newInputStream(path)) {
|
||||
out.write(in);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue