- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 59 for role_2 (1.81 sec)
-
src/test/java/org/codelibs/fess/annotation/SecuredTest.java
} // Test with many roles @Secured({ "ROLE_1", "ROLE_2", "ROLE_3", "ROLE_4", "ROLE_5", "ROLE_6", "ROLE_7", "ROLE_8", "ROLE_9", "ROLE_10" }) static class ManyRolesClass { } public void test_manyRoles() { Secured secured = ManyRolesClass.class.getAnnotation(Secured.class); assertNotNull(secured); String[] roles = secured.value(); assertEquals(10, roles.length);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 15.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/entity/FessUserTest.java
// Test with multiple roles String[] roles = { "admin", "user", "manager" }; FessUser user = new TestFessUser("testuser", roles, new String[] {}, new String[] {}); assertArrayEquals(roles, user.getRoleNames()); // Test with single role roles = new String[] { "user" }; user = new TestFessUser("testuser", roles, new String[] {}, new String[] {});
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/PopularWordHelperTest.java
assertTrue(result.contains("role1")); assertTrue(result.contains("field1")); assertTrue(result.contains("exclude1")); } public void test_getCacheKey_sorting() { String seed = "test_seed"; String[] tags = { "zzz", "aaa", "mmm" }; String[] roles = { "role3", "role1", "role2" }; String[] fields = { "field3", "field1", "field2" };
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/ldap/LdapUserTest.java
// Return roles with duplicates String[] roles = new String[] { "role1", "role2", "role1", "Uuser", "role2" }; callback.accept(roles); return roles; } @Override public String normalizePermissionName(String name) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 16.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/action/FessUserBeanTest.java
testUser.setRoleNames(new String[] { "admin", "user", "manager" }); roles = fessUserBean.getRoles(); assertEquals(3, roles.length); assertEquals("admin", roles[0]); assertEquals("user", roles[1]); assertEquals("manager", roles[2]); } public void test_getGroups() { // Test with empty groups testUser.setGroupNames(new String[] {});
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 11.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/taglib/FessFunctions.java
/** * Checks if the current user has the specified action role or administrative privileges. * * @param role the role to check (supports both view and edit variants) * @return true if the user has the role or admin privileges, false otherwise */ public static boolean hasActionRole(final String role) { final String[] roles; if (role.endsWith(FessAdminAction.VIEW)) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 25.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/SuggestHelper.java
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 22.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/PopularWordHelper.java
* @param roles array of roles to filter results * @param fields array of fields to search in * @param excludes array of words to exclude from results * @return list of popular words matching the criteria */ public List<String> getWordList(final SearchRequestType searchRequestType, final String seed, final String[] tags, final String[] roles,
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 7.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/ldap/LdapManager.java
*/ protected void addRoleAttributes(final BasicAttributes entry, final Role user) { // nothing } /** * Deletes a role from the LDAP directory. * * @param role the role object to delete */ public void delete(final Role role) { if (!fessConfig.isLdapAdminEnabled()) { return; }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 82K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/dataconfig/AdminDataconfigAction.java
*/ @Execute @Secured({ ROLE, ROLE + VIEW }) public HtmlResponse index() { return asListHtml(); } /** * Show the list page. * @param pageNumber The page number. * @param form The search form. * @return The HTML response. */ @Execute @Secured({ ROLE, ROLE + VIEW })
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 19.9K bytes - Viewed (0)