Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 206 for idPresent (0.07 seconds)

  1. 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)
  2. 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)
  3. src/test/java/org/codelibs/fess/util/OptionalUtilTest.java

            OptionalEntity<Date> dateOpt = OptionalUtil.ofNullable(new Date());
    
            assertTrue(stringOpt.isPresent());
            assertTrue(intOpt.isPresent());
            assertTrue(boolOpt.isPresent());
            assertTrue(dateOpt.isPresent());
    
            assertEquals("string", stringOpt.get());
            assertEquals(Integer.valueOf(42), intOpt.get());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 13.3K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/app/web/api/admin/fileauth/ApiAdminFileauthAction.java

         * @return JSON response with deletion status
         */
        @Execute
        public JsonResponse<ApiResult> delete$setting(final String id) {
            fileAuthService.getFileAuthentication(id).ifPresent(entity -> {
                try {
                    fileAuthService.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.2K bytes
    - Click Count (0)
  5. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/PluginUpgradeCliTest.java

            assertFalse(options.plugins().isPresent(), "--plugins should not be present by default");
            assertFalse(options.all().isPresent(), "--all should not be present by default");
            assertFalse(options.infer().isPresent(), "--infer should not be present by default");
            assertFalse(options.model().isPresent(), "--fix-model should not be present by default");
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Sep 29 14:48:39 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/app/web/base/login/FessLoginAssist.java

        protected void checkPermission(final LoginHandlingResource resource) throws LoginRequiredException {
            if (FessAdminAction.class.isAssignableFrom(resource.getActionClass())) {
                getSavedUserBean().ifPresent(user -> {
                    if (user.hasRoles(fessConfig.getAuthenticationAdminRolesAsArray())) {
                        return;
                    }
                    final Method executeMethod = resource.getExecuteMethod();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 12.1K bytes
    - Click Count (0)
  7. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildPlanExecutor.java

                                // 1. Child's phase start waits for parent's phase start
                                plan.step(p, BEFORE + n2).ifPresent(before::executeBefore);
                                // 2. Parent's phase completion waits for child's phase completion
                                plan.step(p, AFTER + n2).ifPresent(after::executeAfter);
                            });
                        }
                    });
                });
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Oct 16 06:12:36 GMT 2025
    - 55.1K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessUserLocaleProcessProviderTest.java

            OptionalThing<Locale> result3 = provider.findBusinessLocale(null, mockRequestManager);
    
            // Verify all return same result
            assertTrue(result1.isPresent());
            assertTrue(result2.isPresent());
            assertTrue(result3.isPresent());
            assertEquals(Locale.GERMANY, result1.get());
            assertEquals(Locale.GERMANY, result2.get());
            assertEquals(Locale.GERMANY, result3.get());
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.1K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/ldap/LdapManager.java

                    .ifPresent(s -> entry.put(new BasicAttribute(fessConfig.getLdapAttrTelephoneNumber(), s)));
            OptionalUtil.ofNullable(user.getHomePhone())
                    .filter(StringUtil::isNotBlank)
                    .ifPresent(s -> entry.put(new BasicAttribute(fessConfig.getLdapAttrHomePhone(), s)));
            OptionalUtil.ofNullable(user.getHomePostalAddress())
                    .filter(StringUtil::isNotBlank)
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Jan 02 08:06:20 GMT 2026
    - 85.2K bytes
    - Click Count (0)
  10. internal/kms/config_test.go

    			t.Setenv(k, v)
    		}
    
    		ok, err := IsPresent()
    		if err != nil && !test.ShouldFail {
    			t.Fatalf("Test %d: %v", i, err)
    		}
    		if err == nil && test.ShouldFail {
    			t.Fatalf("Test %d: should have failed but succeeded", i)
    		}
    
    		if !test.ShouldFail && ok != test.IsPresent {
    			t.Fatalf("Test %d: reported that KMS present=%v - want present=%v", i, ok, test.IsPresent)
    		}
    	}
    }
    
    var isPresentTests = []struct {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Feb 18 16:25:55 GMT 2025
    - 2.7K bytes
    - Click Count (0)
Back to Top