- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for hasRoles (0.1 sec)
-
src/main/java/org/codelibs/fess/mylasta/action/FessUserBean.java
} public boolean isEditable() { return user.isEditable(); } public boolean hasRole(final String role) { return stream(user.getRoleNames()).get(stream -> stream.anyMatch(s -> s.equals(role))); } public boolean hasRoles(final String[] acceptedRoles) { return stream(user.getRoleNames())
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 4.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/base/FessAdminAction.java
super.setupHtmlData(runtime); systemHelper.setupAdminHtmlData(this, runtime); final Boolean editable = getUserBean() .map(user -> user.hasRoles(fessConfig.getAuthenticationAdminRolesAsArray()) || user.hasRole(getActionRole())).orElse(false); runtime.registerData("editable", editable); runtime.registerData("editableClass", editable ? StringUtil.EMPTY : "disabled");
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 5.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/base/login/FessLoginAssist.java
if (user.hasRoles(fessConfig.getAuthenticationAdminRolesAsArray())) { return; } final Method executeMethod = resource.getExecuteMethod(); final Secured secured = executeMethod.getAnnotation(Secured.class); if (secured != null && user.hasRoles(secured.value())) { return; }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 7.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/base/FessLoginAction.java
return getUserBean().map(this::redirectByUser).orElse(asHtml(virtualHost(path_Login_IndexJsp))); } protected HtmlResponse redirectByUser(final FessUserBean user) { if (user.hasRoles(fessConfig.getAuthenticationAdminRolesAsArray())) { return redirect(AdminDashboardAction.class); } final Class<? extends FessAdminAction> actionClass = AdminAction.getAdminActionClass(user);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 1.5K bytes - Viewed (0)