Search in sources :

Example 1 with UserContextMenuFactory

use of io.imunity.furms.ui.components.administrators.UserContextMenuFactory in project furms by unity-idm.

the class SitesAdminsView method init.

private void init(String siteId) {
    InviteUserComponent inviteUser = new InviteUserComponent(userService::getAllUsers, () -> siteService.findAllAdministrators(siteId));
    MembershipChangerComponent membershipLayout = new MembershipChangerComponent(getTranslation("view.fenix-admin.sites.button.join"), getTranslation("view.fenix-admin.sites.button.demit"), () -> siteService.isCurrentUserAdminOf(siteId));
    membershipLayout.addJoinButtonListener(event -> {
        siteService.addAdmin(siteId, currentUserId);
        gridReload();
        inviteUser.reload();
    });
    membershipLayout.addDemitButtonListener(event -> {
        if (siteService.findAllAdministrators(siteId).size() > 1) {
            handleExceptions(() -> siteService.removeSiteUser(siteId, currentUserId));
            gridReload();
        } else {
            showErrorNotification(getTranslation("component.administrators.error.validation.remove"));
        }
        inviteUser.reload();
        membershipLayout.loadAppropriateButton();
    });
    inviteUser.addInviteAction(event -> doInviteAction(siteId, inviteUser, membershipLayout));
    UserContextMenuFactory userContextMenuFactory = UserContextMenuFactory.builder().withCurrentUserId(currentUserId).withRemoveUserAction(userId -> siteService.removeSiteUser(siteId, userId)).withPostRemoveUserAction(userId -> {
        membershipLayout.loadAppropriateButton();
        inviteUser.reload();
    }).withRemoveInvitationAction(invitationId -> {
        siteService.removeInvitation(siteId, invitationId);
        gridReload();
    }).withResendInvitationAction(invitationId -> {
        siteService.resendInvitation(siteId, invitationId);
        gridReload();
    }).build();
    UserGrid.Builder userGrid = UserGrid.defaultInit(userContextMenuFactory);
    grid = UsersGridComponent.defaultInit(() -> siteService.findAllAdministrators(siteId), () -> siteService.findSiteAdminInvitations(siteId), userGrid);
    Site site = handleExceptions(() -> siteService.findById(siteId)).flatMap(identity()).orElseThrow(IllegalStateException::new);
    ViewHeaderLayout viewHeaderLayout = new ViewHeaderLayout(getTranslation("view.sites.administrators.title", site.getName()), membershipLayout);
    getContent().add(viewHeaderLayout, inviteUser, grid);
}
Also used : VaadinExceptionHandler.handleExceptions(io.imunity.furms.ui.utils.VaadinExceptionHandler.handleExceptions) NotificationUtils.showErrorNotification(io.imunity.furms.ui.utils.NotificationUtils.showErrorNotification) UserContextMenuFactory(io.imunity.furms.ui.components.administrators.UserContextMenuFactory) LoggerFactory(org.slf4j.LoggerFactory) PageTitle(io.imunity.furms.ui.components.PageTitle) BeforeEvent(com.vaadin.flow.router.BeforeEvent) Route(com.vaadin.flow.router.Route) MembershipChangerComponent(io.imunity.furms.ui.components.MembershipChangerComponent) DuplicatedInvitationError(io.imunity.furms.api.validation.exceptions.DuplicatedInvitationError) UserGrid(io.imunity.furms.ui.components.administrators.UserGrid) FurmsViewComponent(io.imunity.furms.ui.components.FurmsViewComponent) SiteService(io.imunity.furms.api.sites.SiteService) UserService(io.imunity.furms.api.users.UserService) UsersGridComponent(io.imunity.furms.ui.components.administrators.UsersGridComponent) PersistentId(io.imunity.furms.domain.users.PersistentId) Logger(org.slf4j.Logger) MethodHandles(java.lang.invoke.MethodHandles) Site(io.imunity.furms.domain.sites.Site) BreadCrumbParameter(io.imunity.furms.ui.components.layout.BreadCrumbParameter) OptionalParameter(com.vaadin.flow.router.OptionalParameter) FenixAdminMenu(io.imunity.furms.ui.views.fenix.menu.FenixAdminMenu) UserAlreadyHasRoleError(io.imunity.furms.api.validation.exceptions.UserAlreadyHasRoleError) AuthzService(io.imunity.furms.api.authz.AuthzService) InviteUserComponent(io.imunity.furms.ui.components.InviteUserComponent) Function.identity(java.util.function.Function.identity) Optional(java.util.Optional) ViewHeaderLayout(io.imunity.furms.ui.components.ViewHeaderLayout) Site(io.imunity.furms.domain.sites.Site) UserGrid(io.imunity.furms.ui.components.administrators.UserGrid) MembershipChangerComponent(io.imunity.furms.ui.components.MembershipChangerComponent) ViewHeaderLayout(io.imunity.furms.ui.components.ViewHeaderLayout) InviteUserComponent(io.imunity.furms.ui.components.InviteUserComponent) UserContextMenuFactory(io.imunity.furms.ui.components.administrators.UserContextMenuFactory)

Example 2 with UserContextMenuFactory

use of io.imunity.furms.ui.components.administrators.UserContextMenuFactory in project furms by unity-idm.

the class CommunityView method loadPage1Content.

private void loadPage1Content(String communityId, String communityName) {
    InviteUserComponent inviteUser = new InviteUserComponent(userService::getAllUsers, () -> communityService.findAllAdmins(communityId));
    MembershipChangerComponent membershipLayout = new MembershipChangerComponent(getTranslation("view.fenix-admin.community.button.join"), getTranslation("view.fenix-admin.community.button.demit"), () -> communityService.isAdmin(communityId));
    UserContextMenuFactory userContextMenuFactory = UserContextMenuFactory.builder().withCurrentUserId(currentUserId).withRemoveUserAction(userId -> communityService.removeAdmin(communityId, userId)).withPostRemoveUserAction(userId -> {
        membershipLayout.loadAppropriateButton();
        inviteUser.reload();
    }).withRemoveInvitationAction(invitationId -> {
        communityService.removeInvitation(communityId, invitationId);
        gridReload();
    }).withResendInvitationAction(invitationId -> {
        communityService.resendInvitation(communityId, invitationId);
        gridReload();
    }).build();
    UserGrid.Builder userGrid = UserGrid.defaultInit(userContextMenuFactory);
    grid = UsersGridComponent.defaultInit(() -> communityService.findAllAdmins(communityId), () -> communityService.findAllInvitations(communityId), userGrid);
    membershipLayout.addJoinButtonListener(event -> {
        communityService.addAdmin(communityId, currentUserId);
        gridReload();
        inviteUser.reload();
    });
    membershipLayout.addDemitButtonListener(event -> {
        if (communityService.findAllAdmins(communityId).size() > 1) {
            handleExceptions(() -> communityService.removeAdmin(communityId, currentUserId));
            gridReload();
        } else {
            showErrorNotification(getTranslation("component.administrators.error.validation.remove"));
        }
        inviteUser.reload();
        membershipLayout.loadAppropriateButton();
    });
    ViewHeaderLayout headerLayout = new ViewHeaderLayout(getTranslation("view.fenix-admin.community.page.header", communityName), membershipLayout);
    inviteUser.addInviteAction(event -> doInviteAction(communityId, inviteUser, membershipLayout));
    page1.add(headerLayout, inviteUser, grid);
}
Also used : VaadinExceptionHandler.handleExceptions(io.imunity.furms.ui.utils.VaadinExceptionHandler.handleExceptions) java.util(java.util) Component(com.vaadin.flow.component.Component) Tab(com.vaadin.flow.component.tabs.Tab) io.imunity.furms.ui.components(io.imunity.furms.ui.components) NotificationUtils.showErrorNotification(io.imunity.furms.ui.utils.NotificationUtils.showErrorNotification) UserContextMenuFactory(io.imunity.furms.ui.components.administrators.UserContextMenuFactory) LoggerFactory(org.slf4j.LoggerFactory) Div(com.vaadin.flow.component.html.Div) Community(io.imunity.furms.domain.communities.Community) Tabs(com.vaadin.flow.component.tabs.Tabs) CommunityConst(io.imunity.furms.ui.views.fenix.communites.CommunityConst) CommunityAllocationService(io.imunity.furms.api.community_allocation.CommunityAllocationService) PageTitle(io.imunity.furms.ui.components.PageTitle) DuplicatedInvitationError(io.imunity.furms.api.validation.exceptions.DuplicatedInvitationError) UserGrid(io.imunity.furms.ui.components.administrators.UserGrid) com.vaadin.flow.router(com.vaadin.flow.router) UserService(io.imunity.furms.api.users.UserService) UsersGridComponent(io.imunity.furms.ui.components.administrators.UsersGridComponent) PersistentId(io.imunity.furms.domain.users.PersistentId) Logger(org.slf4j.Logger) MethodHandles(java.lang.invoke.MethodHandles) BreadCrumbParameter(io.imunity.furms.ui.components.layout.BreadCrumbParameter) FenixAdminMenu(io.imunity.furms.ui.views.fenix.menu.FenixAdminMenu) UserAlreadyHasRoleError(io.imunity.furms.api.validation.exceptions.UserAlreadyHasRoleError) AuthzService(io.imunity.furms.api.authz.AuthzService) CommunityAllocationComponent(io.imunity.furms.ui.views.fenix.communites.allocations.CommunityAllocationComponent) Function.identity(java.util.function.Function.identity) CommunityService(io.imunity.furms.api.communites.CommunityService) UserGrid(io.imunity.furms.ui.components.administrators.UserGrid) UserContextMenuFactory(io.imunity.furms.ui.components.administrators.UserContextMenuFactory)

Example 3 with UserContextMenuFactory

use of io.imunity.furms.ui.components.administrators.UserContextMenuFactory in project furms by unity-idm.

the class PolicyDocumentAcceptanceView method fillPage.

private void fillPage() {
    getContent().removeAll();
    ViewHeaderLayout viewHeaderLayout = new ViewHeaderLayout(policyDocument.name + " " + getTranslation("view.site-admin.policy-documents-acceptance.half.header"));
    UserContextMenuFactory.Builder builder = UserContextMenuFactory.builder();
    if (policyDocument.workflow.equals(PolicyWorkflow.PAPER_BASED)) {
        builder.addCustomContextMenuItem(x -> new MenuButton(getTranslation("view.site-admin.policy-documents-acceptance.menu.accept"), CHECK_CIRCLE), (PolicyUserGridItem userGridItem) -> {
            PolicyAcceptance policyAcceptance = createPolicyAcceptance();
            policyDocumentService.addUserPolicyAcceptance(policyDocument.siteId, userGridItem.getFenixUserId().get(), policyAcceptance);
            grid.reloadGrid();
        }, policyUserGridItem -> !policyUserGridItem.isAccepted());
    }
    builder.addCustomContextMenuItem(x -> new MenuButton(getTranslation("view.site-admin.policy-documents-acceptance.menu.resend"), PAPERPLANE), (PolicyUserGridItem userGridItem) -> {
        policyDocumentService.resendPolicyInfo(policyDocument.siteId, userGridItem.getId().get(), policyDocument.id);
        grid.reloadGrid();
    }, policyUserGridItem -> !policyUserGridItem.isAccepted());
    UserContextMenuFactory userContextMenuFactory = builder.build();
    UserGrid.Builder userGrid = UserGrid.builder().withFullNameColumn().withEmailColumn().withCustomColumn((PolicyUserGridItem x) -> {
        if (x.isAccepted())
            return getTranslation("view.site-admin.policy-documents-acceptance.status.accepted");
        else if (x.getRevision() != 0)
            return getTranslation("view.site-admin.policy-documents-acceptance.status.accepted.old", x.getRevision());
        else
            return getTranslation("view.site-admin.policy-documents-acceptance.status.not.accepted");
    }, getTranslation("view.site-admin.policy-documents-acceptance.status")).withContextMenuColumn(userContextMenuFactory);
    grid = UsersGridComponent.init(() -> policyDocumentService.findAllUsersPolicyAcceptances(policyDocument.id, policyDocument.siteId).stream().filter(userPolicyAcceptances -> userPolicyAcceptances.user.fenixUserId.isPresent()).map(userPolicyAcceptances -> new PolicyUserGridItem(userPolicyAcceptances.user, userPolicyAcceptances.policyAcceptances.stream().filter(y -> y.policyDocumentId.equals(policyDocument.id)).mapToInt(y -> y.policyDocumentRevision).max().orElse(0), policyDocument.revision)).collect(Collectors.toList()), userGrid);
    getContent().add(viewHeaderLayout, grid);
}
Also used : PolicyId(io.imunity.furms.domain.policy_documents.PolicyId) PAPERPLANE(com.vaadin.flow.component.icon.VaadinIcon.PAPERPLANE) ResourceGetter.getCurrentResourceId(io.imunity.furms.ui.utils.ResourceGetter.getCurrentResourceId) NotificationUtils.showErrorNotification(io.imunity.furms.ui.utils.NotificationUtils.showErrorNotification) UserContextMenuFactory(io.imunity.furms.ui.components.administrators.UserContextMenuFactory) ZonedDateTime(java.time.ZonedDateTime) MenuButton(io.imunity.furms.ui.components.MenuButton) PageTitle(io.imunity.furms.ui.components.PageTitle) BeforeEvent(com.vaadin.flow.router.BeforeEvent) Route(com.vaadin.flow.router.Route) UserGrid(io.imunity.furms.ui.components.administrators.UserGrid) PolicyAcceptanceStatus(io.imunity.furms.domain.policy_documents.PolicyAcceptanceStatus) FurmsViewComponent(io.imunity.furms.ui.components.FurmsViewComponent) PolicyWorkflow(io.imunity.furms.domain.policy_documents.PolicyWorkflow) ZoneOffset(java.time.ZoneOffset) UsersGridComponent(io.imunity.furms.ui.components.administrators.UsersGridComponent) SiteAdminMenu(io.imunity.furms.ui.views.site.SiteAdminMenu) PolicyDocument(io.imunity.furms.domain.policy_documents.PolicyDocument) Collectors(java.util.stream.Collectors) BreadCrumbParameter(io.imunity.furms.ui.components.layout.BreadCrumbParameter) ZoneId(java.time.ZoneId) OptionalParameter(com.vaadin.flow.router.OptionalParameter) UTCTimeUtils.convertToUTCTime(io.imunity.furms.utils.UTCTimeUtils.convertToUTCTime) PolicyAcceptance(io.imunity.furms.domain.policy_documents.PolicyAcceptance) Optional(java.util.Optional) CHECK_CIRCLE(com.vaadin.flow.component.icon.VaadinIcon.CHECK_CIRCLE) PolicyDocumentService(io.imunity.furms.api.policy_documents.PolicyDocumentService) ViewHeaderLayout(io.imunity.furms.ui.components.ViewHeaderLayout) PolicyAcceptance(io.imunity.furms.domain.policy_documents.PolicyAcceptance) UserGrid(io.imunity.furms.ui.components.administrators.UserGrid) ViewHeaderLayout(io.imunity.furms.ui.components.ViewHeaderLayout) MenuButton(io.imunity.furms.ui.components.MenuButton) UserContextMenuFactory(io.imunity.furms.ui.components.administrators.UserContextMenuFactory)

Example 4 with UserContextMenuFactory

use of io.imunity.furms.ui.components.administrators.UserContextMenuFactory in project furms by unity-idm.

the class ProjectView method loadPage1Content.

private void loadPage1Content(Project project) {
    InviteUserComponent inviteUser = new InviteUserComponent(() -> communityService.findAllUsers(project.getCommunityId()), () -> projectService.findAllAdmins(project.getCommunityId(), project.getId()));
    MembershipChangerComponent membershipLayout = new MembershipChangerComponent(getTranslation("view.community-admin.project.button.join"), getTranslation("view.community-admin.project.button.demit"), () -> projectService.isAdmin(project.getId()));
    UserContextMenuFactory userContextMenuFactory = UserContextMenuFactory.builder().withCurrentUserId(currentUserId).redirectOnCurrentUserRemoval().withRemoveUserAction(userId -> projectService.removeAdmin(project.getCommunityId(), project.getId(), userId)).withRemoveInvitationAction(invitationId -> {
        projectService.removeInvitation(project.getId(), invitationId);
        gridReload();
    }).withResendInvitationAction(invitationId -> {
        projectService.resendInvitation(project.getId(), invitationId);
        gridReload();
    }).withPostRemoveUserAction(userId -> {
        membershipLayout.loadAppropriateButton();
        inviteUser.reload();
    }).build();
    UserGrid.Builder userGrid = UserGrid.defaultInit(userContextMenuFactory);
    grid = UsersGridComponent.defaultInit(() -> projectService.findAllAdmins(project.getCommunityId(), project.getId()), () -> projectService.findAllAdminsInvitations(project.getId()), userGrid);
    membershipLayout.addJoinButtonListener(event -> {
        projectService.addAdmin(project.getCommunityId(), project.getId(), currentUserId);
        gridReload();
        inviteUser.reload();
    });
    membershipLayout.addDemitButtonListener(event -> {
        if (projectService.findAllAdmins(project.getCommunityId(), project.getId()).size() > 1) {
            handleExceptions(() -> projectService.removeAdmin(project.getCommunityId(), project.getId(), currentUserId));
            gridReload();
        } else {
            showErrorNotification(getTranslation("component.administrators.error.validation.remove"));
        }
        inviteUser.reload();
        membershipLayout.loadAppropriateButton();
    });
    ViewHeaderLayout headerLayout = new ViewHeaderLayout(getTranslation("view.community-admin.project.page.header", project.getName()), membershipLayout);
    inviteUser.addInviteAction(event -> doInviteAction(project, inviteUser, membershipLayout));
    page1.add(headerLayout, inviteUser, grid);
}
Also used : VaadinExceptionHandler.handleExceptions(io.imunity.furms.ui.utils.VaadinExceptionHandler.handleExceptions) Project(io.imunity.furms.domain.projects.Project) Component(com.vaadin.flow.component.Component) Tab(com.vaadin.flow.component.tabs.Tab) NotificationUtils.showErrorNotification(io.imunity.furms.ui.utils.NotificationUtils.showErrorNotification) UserContextMenuFactory(io.imunity.furms.ui.components.administrators.UserContextMenuFactory) LoggerFactory(org.slf4j.LoggerFactory) Div(com.vaadin.flow.component.html.Div) Tabs(com.vaadin.flow.component.tabs.Tabs) HashMap(java.util.HashMap) PageTitle(io.imunity.furms.ui.components.PageTitle) BeforeEvent(com.vaadin.flow.router.BeforeEvent) ADMINISTRATORS_PARAM(io.imunity.furms.ui.views.community.projects.ProjectConst.ADMINISTRATORS_PARAM) Route(com.vaadin.flow.router.Route) MembershipChangerComponent(io.imunity.furms.ui.components.MembershipChangerComponent) ArrayList(java.util.ArrayList) DuplicatedInvitationError(io.imunity.furms.api.validation.exceptions.DuplicatedInvitationError) UserGrid(io.imunity.furms.ui.components.administrators.UserGrid) FurmsTabs(io.imunity.furms.ui.components.FurmsTabs) ProjectAllocationService(io.imunity.furms.api.project_allocation.ProjectAllocationService) FurmsViewComponent(io.imunity.furms.ui.components.FurmsViewComponent) Map(java.util.Map) RouterLink(com.vaadin.flow.router.RouterLink) CommunityAdminMenu(io.imunity.furms.ui.views.community.CommunityAdminMenu) QueryParameters(com.vaadin.flow.router.QueryParameters) UsersGridComponent(io.imunity.furms.ui.components.administrators.UsersGridComponent) PersistentId(io.imunity.furms.domain.users.PersistentId) Logger(org.slf4j.Logger) ProjectAllocationComponent(io.imunity.furms.ui.views.community.projects.allocations.ProjectAllocationComponent) ALLOCATIONS_PARAM(io.imunity.furms.ui.views.community.projects.ProjectConst.ALLOCATIONS_PARAM) MethodHandles(java.lang.invoke.MethodHandles) PARAM_NAME(io.imunity.furms.ui.views.community.projects.ProjectConst.PARAM_NAME) BreadCrumbParameter(io.imunity.furms.ui.components.layout.BreadCrumbParameter) OptionalParameter(com.vaadin.flow.router.OptionalParameter) UserAlreadyHasRoleError(io.imunity.furms.api.validation.exceptions.UserAlreadyHasRoleError) List(java.util.List) AuthzService(io.imunity.furms.api.authz.AuthzService) InviteUserComponent(io.imunity.furms.ui.components.InviteUserComponent) Function.identity(java.util.function.Function.identity) ProjectService(io.imunity.furms.api.projects.ProjectService) Optional(java.util.Optional) CommunityService(io.imunity.furms.api.communites.CommunityService) ViewHeaderLayout(io.imunity.furms.ui.components.ViewHeaderLayout) UserGrid(io.imunity.furms.ui.components.administrators.UserGrid) MembershipChangerComponent(io.imunity.furms.ui.components.MembershipChangerComponent) ViewHeaderLayout(io.imunity.furms.ui.components.ViewHeaderLayout) InviteUserComponent(io.imunity.furms.ui.components.InviteUserComponent) UserContextMenuFactory(io.imunity.furms.ui.components.administrators.UserContextMenuFactory)

Example 5 with UserContextMenuFactory

use of io.imunity.furms.ui.components.administrators.UserContextMenuFactory in project furms by unity-idm.

the class GroupMembersView method fillPage.

private void fillPage(String communityId, GenericGroupId groupId, String groupName) {
    getContent().removeAll();
    ViewHeaderLayout viewHeaderLayout = new ViewHeaderLayout(groupName + " " + getTranslation("view.community-admin.groups.members.half.header"));
    Supplier<List<FURMSUser>> fetchCurrentUsersAction = () -> genericGroupService.findAll(communityId, groupId).stream().map(x -> x.furmsUser).collect(Collectors.toList());
    AddGroupComponent addGroupComponent = new AddGroupComponent(() -> communityService.findAllUsers(communityId).stream().filter(user -> user.fenixUserId.isPresent()).collect(Collectors.toList()), fetchCurrentUsersAction);
    addGroupComponent.addAddingAction(event -> doAddAction(addGroupComponent, groupId));
    UserContextMenuFactory userContextMenuFactory = UserContextMenuFactory.builder().addCustomContextMenuItem(UserGroupGridItem -> new MenuButton(getTranslation("view.community-admin.groups.members.menu.delete"), TRASH), (UserGroupGridItem userGridItem) -> {
        genericGroupService.deleteMembership(communityId, groupId, userGridItem.getFenixUserId().get());
        addGroupComponent.reload();
        grid.reloadGrid();
        showSuccessNotification(getTranslation("group.membership.successful.removed"));
    }).build();
    UserGrid.Builder userGrid = UserGrid.builder().withFullNameColumn().withEmailColumn().withCustomColumn((UserGroupGridItem x) -> x.getMemberSince().format(dateTimeFormatter), getTranslation("view.community-admin.groups.members.member.since")).withContextMenuColumn(userContextMenuFactory);
    grid = UsersGridComponent.init(() -> genericGroupService.findAll(communityId, groupId).stream().map(groupAssignmentWithUser -> new UserGroupGridItem(groupAssignmentWithUser.furmsUser, convertToZoneTime(groupAssignmentWithUser.membership.utcMemberSince, browserZoneId))).collect(Collectors.toList()), userGrid);
    getContent().add(viewHeaderLayout, addGroupComponent, grid);
}
Also used : ResourceGetter.getCurrentResourceId(io.imunity.furms.ui.utils.ResourceGetter.getCurrentResourceId) UTCTimeUtils.convertToZoneTime(io.imunity.furms.utils.UTCTimeUtils.convertToZoneTime) NotificationUtils.showErrorNotification(io.imunity.furms.ui.utils.NotificationUtils.showErrorNotification) UserContextMenuFactory(io.imunity.furms.ui.components.administrators.UserContextMenuFactory) LoggerFactory(org.slf4j.LoggerFactory) MenuButton(io.imunity.furms.ui.components.MenuButton) PageTitle(io.imunity.furms.ui.components.PageTitle) BeforeEvent(com.vaadin.flow.router.BeforeEvent) GenericGroup(io.imunity.furms.domain.generic_groups.GenericGroup) Supplier(java.util.function.Supplier) Route(com.vaadin.flow.router.Route) UserGrid(io.imunity.furms.ui.components.administrators.UserGrid) GenericGroupService(io.imunity.furms.api.generic_groups.GenericGroupService) FurmsViewComponent(io.imunity.furms.ui.components.FurmsViewComponent) UserNotPresentException(io.imunity.furms.api.validation.exceptions.UserNotPresentException) CommunityAdminMenu(io.imunity.furms.ui.views.community.CommunityAdminMenu) UsersGridComponent(io.imunity.furms.ui.components.administrators.UsersGridComponent) UIContext(io.imunity.furms.ui.user_context.UIContext) Logger(org.slf4j.Logger) TRASH(com.vaadin.flow.component.icon.VaadinIcon.TRASH) MethodHandles(java.lang.invoke.MethodHandles) FURMSUser(io.imunity.furms.domain.users.FURMSUser) UserAlreadyIsInGroupError(io.imunity.furms.api.validation.exceptions.UserAlreadyIsInGroupError) Collectors(java.util.stream.Collectors) GenericGroupId(io.imunity.furms.domain.generic_groups.GenericGroupId) BreadCrumbParameter(io.imunity.furms.ui.components.layout.BreadCrumbParameter) ZoneId(java.time.ZoneId) OptionalParameter(com.vaadin.flow.router.OptionalParameter) List(java.util.List) DateTimeFormatter(java.time.format.DateTimeFormatter) Optional(java.util.Optional) CommunityService(io.imunity.furms.api.communites.CommunityService) ViewHeaderLayout(io.imunity.furms.ui.components.ViewHeaderLayout) NotificationUtils.showSuccessNotification(io.imunity.furms.ui.utils.NotificationUtils.showSuccessNotification) UserGrid(io.imunity.furms.ui.components.administrators.UserGrid) ViewHeaderLayout(io.imunity.furms.ui.components.ViewHeaderLayout) MenuButton(io.imunity.furms.ui.components.MenuButton) List(java.util.List) UserContextMenuFactory(io.imunity.furms.ui.components.administrators.UserContextMenuFactory)

Aggregations

PageTitle (io.imunity.furms.ui.components.PageTitle)6 UserContextMenuFactory (io.imunity.furms.ui.components.administrators.UserContextMenuFactory)6 UserGrid (io.imunity.furms.ui.components.administrators.UserGrid)6 UsersGridComponent (io.imunity.furms.ui.components.administrators.UsersGridComponent)6 NotificationUtils.showErrorNotification (io.imunity.furms.ui.utils.NotificationUtils.showErrorNotification)6 Route (com.vaadin.flow.router.Route)5 ViewHeaderLayout (io.imunity.furms.ui.components.ViewHeaderLayout)5 BreadCrumbParameter (io.imunity.furms.ui.components.layout.BreadCrumbParameter)5 MethodHandles (java.lang.invoke.MethodHandles)5 Logger (org.slf4j.Logger)5 LoggerFactory (org.slf4j.LoggerFactory)5 BeforeEvent (com.vaadin.flow.router.BeforeEvent)4 OptionalParameter (com.vaadin.flow.router.OptionalParameter)4 AuthzService (io.imunity.furms.api.authz.AuthzService)4 DuplicatedInvitationError (io.imunity.furms.api.validation.exceptions.DuplicatedInvitationError)4 UserAlreadyHasRoleError (io.imunity.furms.api.validation.exceptions.UserAlreadyHasRoleError)4 PersistentId (io.imunity.furms.domain.users.PersistentId)4 FurmsViewComponent (io.imunity.furms.ui.components.FurmsViewComponent)4 Optional (java.util.Optional)4 CommunityService (io.imunity.furms.api.communites.CommunityService)3