Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 184 for idPresent (0.05 seconds)

  1. src/test/java/org/codelibs/fess/util/GsaConfigParserTest.java

            assertTrue(parser.getWebConfig().isPresent());
            assertTrue(parser.getFileConfig().isPresent());
    
            parser.getWebConfig().ifPresent(config -> {
                assertTrue(config.getUrls().contains("https://example.com"));
                assertFalse(config.getUrls().contains("file:///test"));
            });
    
            parser.getFileConfig().ifPresent(config -> {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.7K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb1/smb1/DosErrorTest.java

        void testKnownMapping() {
            final int dosErr = 0x00010001;
            final int expectedNt = 0xc0000002;
            Optional<Integer> actual = findNtStatus(dosErr);
            assertTrue(actual.isPresent(), String.format("Mapping for %08x should exist", dosErr));
            assertEquals(expectedNt, actual.get(), String.format("NTSTATUS for %08x should be %08x", dosErr, expectedNt));
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 3K bytes
    - Click Count (0)
  3. 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) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Jan 02 06:18:24 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/base/Optional.java

     * relevant methods below.
     *
     * <ul>
     *   <li>This class is serializable; {@code java.util.Optional} is not.
     *   <li>{@code java.util.Optional} has the additional methods {@code ifPresent}, {@code filter},
     *       {@code flatMap}, and {@code orElseThrow}.
     *   <li>{@code java.util} offers the primitive-specialized versions {@code OptionalInt}, {@code
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

            context.invokerRequest.stdIn().ifPresent(System::setIn);
            context.invokerRequest
                    .stdOut()
                    .ifPresent(out -> System.setOut(out instanceof PrintStream pw ? pw : new PrintStream(out, true)));
            context.invokerRequest
                    .stdErr()
                    .ifPresent(err -> System.setErr(err instanceof PrintStream pw ? pw : new PrintStream(err, true)));
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Oct 28 13:01:07 GMT 2025
    - 43.2K bytes
    - Click Count (0)
  6. guava/src/com/google/common/base/Optional.java

     * relevant methods below.
     *
     * <ul>
     *   <li>This class is serializable; {@code java.util.Optional} is not.
     *   <li>{@code java.util.Optional} has the additional methods {@code ifPresent}, {@code filter},
     *       {@code flatMap}, and {@code orElseThrow}.
     *   <li>{@code java.util} offers the primitive-specialized versions {@code OptionalInt}, {@code
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/helper/JobHelper.java

                        .selectByPK(scheduledJob.getId())
                        .ifPresent(e -> params.put(Constants.SCHEDULED_JOB, e))
                        .orElse(() -> {
                            logger.warn("Job {} is not found.", scheduledJob.getId());
                        });
                return params;
            };
            findJobByUniqueOf(LaJobUnique.of(id)).ifPresent(job -> {
                if (!job.isUnscheduled()) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/app/web/profile/ProfileAction.java

            final VaErrorHook toIndexPage = () -> {
                form.clearSecurityInfo();
                return asIndexHtml();
            };
            validatePasswordForm(form, toIndexPage);
            if (!getUserBean().isPresent()) {
                logger.warn("User session not found during password change");
                return redirect(LoginAction.class);
            }
            final String username = getUserBean().get().getUserId();
            try {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Jan 02 06:18:24 GMT 2026
    - 6.3K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/app/web/api/admin/reqheader/ApiAdminReqheaderAction.java

         */
        // DELETE /api/admin/reqheader/setting/{id}
        @Execute
        public JsonResponse<ApiResult> delete$setting(final String id) {
            reqHeaderService.getRequestHeader(id).ifPresent(entity -> {
                try {
                    reqHeaderService.delete(entity);
                    saveInfo(messages -> messages.addSuccessCrudDeleteCrudTable(GLOBAL));
                } catch (final Exception e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 9.1K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/app/web/api/admin/webauth/ApiAdminWebauthAction.java

         */
        // DELETE /api/admin/webauth/setting/{id}
        @Execute
        public JsonResponse<ApiResult> delete$setting(final String id) {
            webAuthService.getWebAuthentication(id).ifPresent(entity -> {
                try {
                    webAuthService.delete(entity);
                    saveInfo(messages -> messages.addSuccessCrudDeleteCrudTable(GLOBAL));
                } catch (final Exception e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 9.1K bytes
    - Click Count (0)
Back to Top