Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 111 - 120 of 206 for idPresent (0.09 seconds)

  1. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/UpgradeStrategy.java

            boolean useAll = options.all().orElse(false);
            if (useAll) {
                return true;
            }
    
            // Check specific option
            if (specificOption.isPresent()) {
                return specificOption.get();
            }
    
            // Apply default behavior when no specific options are provided
            if (defaultWhenNoOptionsSpecified
                    && options.infer().isEmpty()
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/helper/SearchLogHelperTest.java

                assertFalse(result.isPresent());
            } catch (Exception e) {
                // Expected in test environment
                assertTrue(true);
            }
        }
    
        @Test
        public void test_getUserInfo_nullUserCode() {
            try {
                var result = searchLogHelper.getUserInfo(null);
                assertFalse(result.isPresent());
            } catch (Exception e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 16.6K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/helper/VirtualHostHelper.java

                final String value = processVirtualHost(s -> s, StringUtil.EMPTY);
                LaRequestUtil.getOptionalRequest().ifPresent(req -> req.setAttribute(FessConfig.VIRTUAL_HOST_VALUE, value));
                return value;
            });
        }
    
        /**
         * Processes virtual host configuration by applying a function to the matched virtual host key.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/io/CharSource.java

       * @since 19.0
       */
      public long length() throws IOException {
        Optional<Long> lengthIfKnown = lengthIfKnown();
        if (lengthIfKnown.isPresent()) {
          return lengthIfKnown.get();
        }
    
        Closer closer = Closer.create();
        try {
          Reader reader = closer.register(openStream());
          return countBySkipping(reader);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 25.7K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/helper/RoleQueryHelper.java

                final RequestManager requestManager = ComponentUtil.getRequestManager();
                try {
                    requestManager.findUserBean(FessUserBean.class)
                            .ifPresent(fessUserBean -> stream(fessUserBean.getPermissions()).of(stream -> stream.forEach(roleSet::add)))
                            .orElse(() -> {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/opensearch/log/exentity/SearchLog.java

            }
            return userInfo;
        }
    
        public void setUserInfo(final OptionalEntity<UserInfo> userInfo) {
            this.userInfo = userInfo;
            userInfo.ifPresent(e -> {
                super.setUserInfoId(e.getId());
            });
        }
    
        public List<Pair<String, String>> getSearchFieldLogList() {
            return searchFieldLogList;
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 15 06:53:53 GMT 2025
    - 6K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java

                              && (m.getModifiers() & (PUBLIC | PROTECTED | PRIVATE)) == 0)
                  .transform(Method::getDeclaringClass);
          if (!supersWithPackagePrivateWriteReplace.isPresent()) {
            continue;
          }
          assertWithMessage(
                  "To help optimizers, any class that inherits a package-private writeReplace() method"
                      + " should override that method.\n"
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 01 03:07:54 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  8. 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);
        }
    
        /**
         * Updates the user identification cookie with the specified user code and max age.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 14.9K bytes
    - Click Count (0)
  9. 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));
                }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Nov 24 02:07:40 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/io/CharSourceTester.java

        assertEquals(expected.length(), source.length());
      }
    
      public void testLengthIfKnown() throws IOException {
        Optional<Long> lengthIfKnown = source.lengthIfKnown();
        if (lengthIfKnown.isPresent()) {
          assertEquals(expected.length(), (long) lengthIfKnown.get());
        }
      }
    
      public void testReadLines_withProcessor() throws IOException {
        List<String> list =
            source.readLines(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 7.4K bytes
    - Click Count (0)
Back to Top