Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for Getgroups (0.52 sec)

  1. src/test/java/org/codelibs/fess/mylasta/action/FessUserBeanTest.java

            // Test with empty groups
            testUser.setGroupNames(new String[] {});
            assertNotNull(fessUserBean.getGroups());
            assertEquals(0, fessUserBean.getGroups().length);
    
            // Test with single group
            testUser.setGroupNames(new String[] { "developers" });
            String[] groups = fessUserBean.getGroups();
            assertEquals(1, groups.length);
            assertEquals("developers", groups[0]);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/mylasta/action/FessUserBean.java

        public String[] getPermissions() {
            return user.getPermissions();
        }
    
        public String[] getRoles() {
            return user.getRoleNames();
        }
    
        public String[] getGroups() {
            return user.getGroupNames();
        }
    
        public boolean isEditable() {
            return user.isEditable();
        }
    
        public boolean hasRole(final String role) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/opensearch/user/exentity/User.java

        public String[] getRoleNames() {
            return stream(getRoles()).get(stream -> stream.map(this::decode).toArray(n -> new String[n]));
        }
    
        @Override
        public String[] getGroupNames() {
            return stream(getGroups()).get(stream -> stream.map(this::decode).toArray(n -> new String[n]));
        }
    
        private String decode(final String value) {
            return new String(Base64.getDecoder().decode(value), Constants.CHARSET_UTF_8);
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/service/GroupService.java

                op.setRefreshPolicy(Constants.TRUE);
            });
    
            userBhv.selectCursor(cb -> cb.query().setGroups_Equal(group.getId()), entity -> {
                entity.setGroups(
                        stream(entity.getGroups()).get(stream -> stream.filter(s -> !s.equals(group.getId())).toArray(n -> new String[n])));
                userBhv.insertOrUpdate(entity);
            });
    
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/opensearch/user/bsentity/BsUser.java

        public void setGivenName(String value) {
            registerModifiedProperty("givenName");
            this.givenName = value;
        }
    
        public String[] getGroups() {
            checkSpecifiedProperty("groups");
            return groups;
        }
    
        public void setGroups(String[] value) {
            registerModifiedProperty("groups");
            this.groups = value;
        }
    
        public String getHomeDirectory() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 22.9K bytes
    - Viewed (0)
  6. lib/wasm/wasm_exec.js

    		};
    	}
    
    	if (!globalThis.process) {
    		globalThis.process = {
    			getuid() { return -1; },
    			getgid() { return -1; },
    			geteuid() { return -1; },
    			getegid() { return -1; },
    			getgroups() { throw enosys(); },
    			pid: -1,
    			ppid: -1,
    			umask() { throw enosys(); },
    			cwd() { throw enosys(); },
    			chdir() { throw enosys(); },
    		}
    	}
    
    	if (!globalThis.path) {
    		globalThis.path = {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Sun Dec 08 15:34:47 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/opensearch/user/bsentity/dbmeta/UserDbm.java

            setupEpg(_epgMap, et -> ((User) et).getGivenName(), (et, vl) -> ((User) et).setGivenName(DfTypeUtil.toString(vl)), "givenName");
            setupEpg(_epgMap, et -> ((User) et).getGroups(), (et, vl) -> ((User) et).setGroups((String[]) vl), "groups");
            setupEpg(_epgMap, et -> ((User) et).getHomeDirectory(), (et, vl) -> ((User) et).setHomeDirectory(DfTypeUtil.toString(vl)),
                    "homeDirectory");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 27K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/mylasta/direction/FessProp.java

                if (StringUtil.isEmpty(key) || userBean
                        .map(user -> stream(user.getRoles()).get(stream -> stream.anyMatch(s -> (ROLE_VALUE_PREFIX + s).equals(key)))
                                || stream(user.getGroups()).get(stream -> stream.anyMatch(s -> (GROUP_VALUE_PREFIX + s).equals(key))))
                        .orElse(false)) {
                    return p.getSecond();
                }
                return null;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 86.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/admin/group/AdminGroupAction.java

         */
        @Execute
        @Secured({ ROLE })
        public HtmlResponse edit(final EditForm form) {
            validate(form, messages -> {}, this::asListHtml);
            final String id = form.id;
            groupService.getGroup(id).ifPresent(entity -> {
                copyBeanToBean(entity, form, op -> {});
            }).orElse(() -> {
                throwValidationError(messages -> messages.addErrorsCrudCouldNotFindCrudTable(GLOBAL, id), this::asListHtml);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/api/admin/group/ApiAdminGroupAction.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.app.web.api.admin.group;
    
    import static org.codelibs.fess.app.web.admin.group.AdminGroupAction.getGroup;
    import static org.codelibs.fess.app.web.admin.group.AdminGroupAction.validateAttributes;
    
    import java.util.List;
    import java.util.stream.Collectors;
    
    import org.apache.logging.log4j.LogManager;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 8K bytes
    - Viewed (0)
Back to top