Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for ifPresent (0.1 sec)

  1. src/main/java/org/codelibs/fess/util/WebApiUtil.java

         *
         * @param name The attribute name
         * @param value The attribute value
         */
        public static void setObject(final String name, final Object value) {
            LaRequestUtil.getOptionalRequest().ifPresent(req -> req.setAttribute(name, value));
        }
    
        /**
         * Gets an object from the current request attributes.
         *
         * @param <T> The type of the object
         * @param name The attribute name
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/opensearch/config/exentity/ScheduledJob.java

            ComponentUtil.getJobManager().findJobByUniqueOf(LaJobUnique.of(getId())).ifPresent(job -> {
                job.launchNow();
            }).orElse(() -> {
                throw new JobNotFoundException(this);
            });
        }
    
        public void stop() {
            ComponentUtil.getJobManager().findJobByUniqueOf(LaJobUnique.of(getId())).ifPresent(job -> {
                job.stopNow();
            }).orElse(() -> {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/PopularWordHelper.java

            stream(tags).of(stream -> stream.sorted().reduce((l, r) -> l + r).ifPresent(v -> buf.append(v)));
            buf.append(CACHE_KEY_SPLITTER);
            stream(roles).of(stream -> stream.sorted().reduce((l, r) -> l + r).ifPresent(v -> buf.append(v)));
            buf.append(CACHE_KEY_SPLITTER);
            stream(fields).of(stream -> stream.sorted().reduce((l, r) -> l + r).ifPresent(v -> buf.append(v)));
            buf.append(CACHE_KEY_SPLITTER);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/login/LoginAction.java

        /**
         * Displays the login page.
         *
         * @return the HTML response for the login page
         */
        @Execute
        public HtmlResponse index() {
            getSession().ifPresent(session -> session.removeAttribute(INVALID_OLD_PASSWORD));
            return asIndexPage(null).useForm(LoginForm.class);
        }
    
        private HtmlResponse asIndexPage(final LoginForm form) {
            if (form != null) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/DosErrorTest.java

                void consume(int ntStatus);
            }
            NtStatusConsumer mock = mock(NtStatusConsumer.class);
            findNtStatus(dosErr).ifPresent(mock::consume);
            verify(mock).consume(expectedNt);
        }
    
        @Test
        @DisplayName("DOS_ERROR_MESSAGES length matches expectations")
        void testMessageArrayLength() {
            assertNotNull(DosError.DOS_ERROR_MESSAGES, "DOS_ERROR_MESSAGES should be non‑null");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/service/KuromojiService.java

         *
         * @param dictId The dictionary ID.
         * @param kuromojiItem The Kuromoji item to store.
         */
        public void store(final String dictId, final KuromojiItem kuromojiItem) {
            getKuromojiFile(dictId).ifPresent(file -> {
                if (kuromojiItem.getId() == 0) {
                    file.insert(kuromojiItem);
                } else {
                    file.update(kuromojiItem);
                }
            });
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/service/StopwordsService.java

         * @param stopwordsItem The stopword item to store.
         */
        public void store(final String dictId, final StopwordsItem stopwordsItem) {
            getStopwordsFile(dictId).ifPresent(file -> {
                if (stopwordsItem.getId() == 0) {
                    file.insert(stopwordsItem);
                } else {
                    file.update(stopwordsItem);
                }
            });
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/service/SynonymService.java

         * @param dictId      The ID of the dictionary.
         * @param synonymItem The synonym item to store.
         */
        public void store(final String dictId, final SynonymItem synonymItem) {
            getSynonymFile(dictId).ifPresent(file -> {
                if (synonymItem.getId() == 0) {
                    file.insert(synonymItem);
                } else {
                    file.update(synonymItem);
                }
            });
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/service/ProtwordsService.java

         * @param dictId the dictionary ID
         * @param protwordsItem the item to store
         */
        public void store(final String dictId, final ProtwordsItem protwordsItem) {
            getProtwordsFile(dictId).ifPresent(file -> {
                if (protwordsItem.getId() == 0) {
                    file.insert(protwordsItem);
                } else {
                    file.update(protwordsItem);
                }
            });
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/service/StemmerOverrideService.java

         * @param stemmerOvberrideItem The stemmer override item to store
         */
        public void store(final String dictId, final StemmerOverrideItem stemmerOvberrideItem) {
            getStemmerOverrideFile(dictId).ifPresent(file -> {
                if (stemmerOvberrideItem.getId() == 0) {
                    file.insert(stemmerOvberrideItem);
                } else {
                    file.update(stemmerOvberrideItem);
                }
            });
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 5.7K bytes
    - Viewed (0)
Back to top