- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 168 for ifPresent (0.07 sec)
-
src/main/java/org/codelibs/fess/app/web/admin/elevateword/AdminElevatewordAction.java
return asListHtml(); } @Execute @Secured({ ROLE, ROLE + VIEW }) public HtmlResponse list(final OptionalThing<Integer> pageNumber, final SearchForm form) { pageNumber.ifPresent(num -> { elevateWordPager.setCurrentPageNumber(pageNumber.get()); }).orElse(() -> { elevateWordPager.setCurrentPageNumber(0); });
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 18.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/searchlist/AdminSearchlistAction.java
form.crudMode = CrudMode.CREATE; getDoc(form).ifPresent(entity -> { form.doc = fessConfig.convertToEditableDoc(entity); }); return asEditHtml(); } @Execute @Secured({ ROLE }) public HtmlResponse edit(final EditForm form) { validate(form, messages -> {}, this::asListHtml); getDoc(form).ifPresent(entity -> {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Wed Jul 24 09:03:45 UTC 2024 - 18.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/service/StopwordsService.java
getStopwordsFile(dictId).ifPresent(file -> { if (stopwordsItem.getId() == 0) { file.insert(stopwordsItem); } else { file.update(stopwordsItem); } }); } public void delete(final String dictId, final StopwordsItem stopwordsItem) { getStopwordsFile(dictId).ifPresent(file -> { file.delete(stopwordsItem);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 3.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/service/SynonymService.java
getSynonymFile(dictId).ifPresent(file -> { if (synonymItem.getId() == 0) { file.insert(synonymItem); } else { file.update(synonymItem); } }); } public void delete(final String dictId, final SynonymItem synonymItem) { getSynonymFile(dictId).ifPresent(file -> { file.delete(synonymItem); });
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/scheduler/ApiAdminSchedulerAction.java
} // POST /api/admin/scheduler/{id}/start @Execute(urlPattern = "{}/@word") public JsonResponse<ApiResult> post$start(final String id) { scheduledJobService.getScheduledJob(id).ifPresent(entity -> { if (!entity.isEnabled() || entity.isRunning()) { throwValidationErrorApi(messages -> { messages.addErrorsFailedToStartJob(GLOBAL, entity.getName()); });
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 7.6K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/BuildModelSourceTransformer.java
Optional<RelativeProject> resolvedParent = resolveRelativePath( pomFile, context, Paths.get(path), parent.getGroupId(), parent.getArtifactId()); resolvedParent.ifPresent(relativeProject -> parent.setVersion(relativeProject.getVersion())); } } } // // CI friendly versions //
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 6.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/util/QueryStringBuilder.java
final int maxQueryLength = fessConfig.getQueryMaxLengthAsInteger(); stream(conditions.get(SearchRequestParams.AS_OCCURRENCE)) .of(stream -> stream.filter(this::isOccurrence).findFirst().ifPresent(q -> queryBuf.insert(0, q + ":"))); stream(conditions.get(SearchRequestParams.AS_Q)).of(stream -> stream
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 8.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/UserInfoHelper.java
} protected void updateUserSessionId(final String userCode) { ComponentUtil.getSearchLogHelper().getUserInfo(userCode); LaRequestUtil.getOptionalRequest().ifPresent(req -> req.setAttribute(Constants.USER_CODE, userCode)); updateCookie(userCode, cookieMaxAge); } protected void updateCookie(final String userCode, final int age) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 8.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/user/ApiAdminUserAction.java
throwValidationErrorApi(messages -> messages.addErrorsCrudCouldNotFindCrudTable(GLOBAL, id)); return null; }); getUserBean().ifPresent(u -> { if (u.getFessUser() instanceof User && entity.getName().equals(u.getUserId())) { throwValidationErrorApi(messages -> messages.addErrorsCouldNotDeleteLoggedInUser(GLOBAL)); }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 5.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/relatedquery/ApiAdminRelatedqueryAction.java
} // DELETE /api/admin/relatedquery/setting/{id} @Execute public JsonResponse<ApiResult> delete$setting(final String id) { relatedQueryService.getRelatedQuery(id).ifPresent(entity -> { try { relatedQueryService.delete(entity); saveInfo(messages -> messages.addSuccessCrudDeleteCrudTable(GLOBAL)); } catch (final Exception e) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 6.6K bytes - Viewed (0)