Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 121 for userId (0.05 seconds)

  1. src/main/java/org/codelibs/fess/chat/ChatSessionManager.java

                    // Validate userId matches - prevent cross-user session access
                    if (userId != null && !userId.equals(sessionUserId)) {
                        logger.warn("Session userId mismatch. sessionId={}, requestUserId={}", sessionId, userId);
                    } else if (userId == null && sessionUserId == null) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 07 13:27:59 GMT 2026
    - 13.7K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/entity/ChatSession.java

            this.sessionId = sessionId;
        }
    
        /**
         * Gets the user ID.
         *
         * @return the user ID
         */
        public String getUserId() {
            return userId;
        }
    
        /**
         * Sets the user ID.
         *
         * @param userId the user ID
         */
        public void setUserId(final String userId) {
            this.userId = userId;
        }
    
        /**
         * Gets the creation timestamp.
         *
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 07 01:53:06 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/core/lang/StringUtilTest.java

            assertEquals("Abc", StringUtil.capitalize("abc"));
            assertEquals("Abc", StringUtil.capitalize("Abc"));
            assertEquals("ABC", StringUtil.capitalize("ABC"));
            assertEquals("UserId", StringUtil.capitalize("userId"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testDecapitalize() throws Exception {
            assertEquals("abc", StringUtil.decapitalize("abc"));
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat Nov 22 11:21:59 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  4. tests/helper_test.go

    	}
    }
    
    func CheckUserUnscoped(t *testing.T, user User, expect User) {
    	doCheckUser(t, user, expect, true)
    }
    
    func CheckUser(t *testing.T, user User, expect User) {
    	doCheckUser(t, user, expect, false)
    }
    
    func doCheckUser(t *testing.T, user User, expect User, unscoped bool) {
    	if user.ID != 0 {
    		var newUser User
    		if err := db(unscoped).Where("id = ?", user.ID).First(&newUser).Error; err != nil {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:27:38 GMT 2026
    - 8.6K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/chat/ChatClient.java

         * @param userMessage the user's message
         * @param userId the user ID (can be null for anonymous users)
         * @return the chat response including session info and sources
         */
        public ChatResult chat(final String sessionId, final String userMessage, final String userId) {
            return chat(sessionId, userMessage, userId, Collections.emptyMap(), new String[0]);
        }
    
        /**
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 56.6K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/api/chat/ChatApiManager.java

                if (fields.isEmpty() && extraQueries.length == 0) {
                    result = ComponentUtil.getChatClient().chat(sessionId, message, userId);
                } else {
                    result = ComponentUtil.getChatClient().chat(sessionId, message, userId, fields, extraQueries);
                }
    
                if (logger.isDebugEnabled()) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 06:06:55 GMT 2026
    - 25.8K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/app/web/login/LoginAction.java

                    getSession().map(session -> (String) session.getAttribute(INVALID_OLD_PASSWORD)).orElse(StringUtil.EMPTY);
            getUserBean().ifPresent(user -> {
                final String userId = user.getUserId();
                fessLoginAssist.findLoginUser(new LocalUserCredential(userId, oldPassword)).orElseGet(() -> {
                    throwValidationError(messages -> {
                        messages.addErrorsNoUserForChangingPassword(GLOBAL);
    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)
  8. src/main/java/org/codelibs/fess/app/service/UserService.java

         * Handles user authentication setup and database persistence.
         * If the surname is blank, it will be set to the user's name.
         *
         * @param user the user entity to store
         */
        public void store(final User user) {
            final String username = user.getName();
            final boolean isUpdate = StringUtil.isNotBlank(user.getId());
    
            if (logger.isDebugEnabled()) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Jan 02 06:22:27 GMT 2026
    - 9.3K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/core/lang/StringUtil.java

         * Note: If the first two characters are uppercase, the string will not be decapitalized.
         * <p>
         * Usage example:
         * </p>
         *
         * <pre>
         * StringUtil.decapitalize("UserId")  = "userId"
         * StringUtil.decapitalize("ABC")     = "ABC"
         * </pre>
         *
         * @param name
         *            the string to decapitalize
         * @return the decapitalized string
         */
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Feb 12 12:10:45 GMT 2026
    - 21.5K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/helper/SearchLogHelper.java

        }
    
        /**
         * Sets the user check interval.
         *
         * @param userCheckInterval The user check interval.
         */
        public void setUserCheckInterval(final long userCheckInterval) {
            this.userCheckInterval = userCheckInterval;
        }
    
        /**
         * Sets the user information cache size.
         *
         * @param userInfoCacheSize The user information cache size.
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 29.3K bytes
    - Click Count (0)
Back to Top