Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for getUserId (0.19 sec)

  1. src/main/java/org/codelibs/fess/mylasta/action/FessUserBean.java

        //                                                                      Implementation
        //                                                                      ==============
        @Override
        public String getUserId() {
            return user.getName();
        }
    
        // ===================================================================================
        //                                                                            Accessor
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/base/login/OpenIdConnectCredential.java

            this.attributes = attributes;
        }
    
        @Override
        public String toString() {
            return "{" + getUserId() + "}";
        }
    
        @Override
        public String getUserId() {
            return DocumentUtil.getValue(attributes, "email", String.class);
        }
    
        public String[] getUserGroups() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/ActivityHelper.java

                    valueMap.put("user", fessCredential.getUserId());
                }
            });
            log(valueMap);
        }
    
        public void logout(final OptionalThing<FessUserBean> user) {
            final Map<String, String> valueMap = new LinkedHashMap<>();
            valueMap.put("action", Action.LOGOUT.name());
            valueMap.put("user", user.map(FessUserBean::getUserId).orElse("-"));
            valueMap.put("permissions",
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/base/login/SpnegoCredential.java

        private final String username;
    
        public SpnegoCredential(final String username) {
            this.username = username;
        }
    
        @Override
        public String getUserId() {
            return username;
        }
    
        @Override
        public String toString() {
            return "{" + username + "}";
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/profile/ProfileAction.java

                form.clearSecurityInfo();
                return asIndexHtml();
            };
            validatePasswordForm(form, toIndexPage);
            final String username = getUserBean().map(FessUserBean::getUserId).get();
            try {
                userService.changePassword(username, form.newPassword);
                saveInfo(messages -> messages.addSuccessChangedPassword(GLOBAL));
            } catch (final Exception e) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/base/login/SamlCredential.java

            nameidSPNameQualifier = auth.getNameIdSPNameQualifier();
        }
    
        @Override
        public String toString() {
            return "{" + getUserId() + "}";
        }
    
        @Override
        public String getUserId() {
            return nameId;
        }
    
        public SamlUser getUser() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/login/LoginAction.java

                        .orElseGet(() -> redirect(LoginAction.class));
            };
            validatePasswordForm(form, toIndexPage);
            final String username = getUserBean().map(FessUserBean::getUserId).get();
            try {
                userService.changePassword(username, form.password);
                saveInfo(messages -> messages.addSuccessChangedPassword(GLOBAL));
            } catch (final Exception e) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/base/login/FessCredential.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.app.web.base.login;
    
    public interface FessCredential {
    
        String getUserId();
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 730 bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/api/admin/user/ApiAdminUserAction.java

                return null;
            });
            getUserBean().ifPresent(u -> {
                if (u.getFessUser() instanceof User && entity.getName().equals(u.getUserId())) {
                    throwValidationErrorApi(messages -> messages.addErrorsCouldNotDeleteLoggedInUser(GLOBAL));
                }
            });
            try {
                userService.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)
  10. src/test/java/org/codelibs/fess/sso/oic/OpenIdConnectAuthenticatorTest.java

            assertArrayEquals(new String[] { "group1", "group2" }, groups);
    
            OpenIdConnectCredential credential = new OpenIdConnectCredential(attributes);
            assertEquals("******@****.***", credential.getUserId());
            assertArrayEquals(new String[] { "group1", "group2" }, credential.getUserGroups());
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top