Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for getUserId (0.12 sec)

  1. src/main/java/org/codelibs/fess/app/web/base/login/LocalUserCredential.java

        public LocalUserCredential(final String user, final String password) {
            super(user, password);
        }
    
        @Override
        public String getUserId() {
            return getUser();
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1021 bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/UserInfoHelper.java

            String userCode = sessionManager.getAttribute(USER_BEAN, TypicalUserBean.class)
                    .filter(u -> !Constants.EMPTY_USER_ID.equals(u.getUserId())).map(u -> u.getUserId().toString()).orElse(StringUtil.EMPTY);
            if (StringUtil.isBlank(userCode)) {
                return null;
            }
    
            userCode = createUserCodeFromUserId(userCode);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/base/login/AzureAdCredential.java

        private final AuthenticationResult authResult;
    
        public AzureAdCredential(final AuthenticationResult authResult) {
            this.authResult = authResult;
        }
    
        @Override
        public String getUserId() {
            return authResult.getUserInfo().getDisplayableId();
        }
    
        @Override
        public String toString() {
            return "{" + authResult.getUserInfo().getDisplayableId() + "}";
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/api/admin/group/ApiAdminGroupAction.java

                return null;
            });
            getUserBean().ifPresent(u -> {
                if (u.getFessUser() instanceof User && entity.getName().equals(u.getUserId())) {
                    throwValidationErrorApi(messages -> messages.addErrorsCouldNotDeleteLoggedInUser(GLOBAL));
                }
            });
            try {
                groupService.delete(entity);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/sso/spnego/SpnegoAuthenticator.java

        }
    
        @Override
        public void resolveCredential(final LoginCredentialResolver resolver) {
            resolver.resolve(SpnegoCredential.class, credential -> {
                final String username = credential.getUserId();
                if (!ComponentUtil.getFessConfig().isAdminUser(username)) {
                    return ComponentUtil.getLdapManager().login(username);
                }
                return OptionalEntity.empty();
            });
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:46 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/QueryHelper.java

                if (user.hasRoles(ComponentUtil.getFessConfig().getAuthenticationAdminRolesAsArray())) {
                    return Constants.SEARCH_PREFERENCE_LOCAL;
                }
                return user.getUserId();
            }).ifPresent(p -> searchRequestBuilder.setPreference(p)).orElse(() -> LaRequestUtil.getOptionalRequest().map(r -> {
                final HttpSession session = r.getSession(false);
                if (session != null) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/user/AdminUserAction.java

            verifyCrudMode(form.crudMode, CrudMode.DETAILS);
            validate(form, messages -> {}, this::asDetailsHtml);
            getUserBean().ifPresent(u -> {
                if (u.getFessUser() instanceof User && form.name.equals(u.getUserId())) {
                    throwValidationError(messages -> messages.addErrorsCouldNotDeleteLoggedInUser(GLOBAL), this::asDetailsHtml);
                }
            });
            verifyToken(this::asDetailsHtml);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/SearchLogHelper.java

            searchLog.setQueryOffset(pageStart);
            searchLog.setQueryPageSize(pageSize);
            ComponentUtil.getRequestManager().findUserBean(FessUserBean.class).ifPresent(user -> {
                searchLog.setUser(user.getUserId());
            });
    
            LaRequestUtil.getOptionalRequest().ifPresent(req -> {
                searchLog.setClientIp(StringUtils.abbreviate(ComponentUtil.getViewHelper().getClientIp(req), 100));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jul 22 02:07:37 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/SystemHelper.java

            });
        }
    
        public String getUsername() {
            final RequestManager requestManager = ComponentUtil.getRequestManager();
            return requestManager.findUserBean(FessUserBean.class).map(FessUserBean::getUserId).orElse(Constants.GUEST_USER);
        }
    
        public Date getCurrentTime() {
            return new Date(getCurrentTimeAsLong());
        }
    
        public long getCurrentTimeAsLong() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 17 12:10:08 UTC 2024
    - 27.2K bytes
    - Viewed (0)
Back to top