Package com.sparc.knappsack.forms

Examples of com.sparc.knappsack.forms.InviteeForm


        boolean success = false;

        DomainRequest domainRequest = domainRequestService.get(requestId);
        for (Long domainId : domainIds) {
            Domain assignedDomain = domainService.get(domainId);
            InviteeForm inviteeForm = new InviteeForm();
            inviteeForm.setEmail(domainRequest.getEmailAddress());
            inviteeForm.setName(domainRequest.getFirstName() + " " + domainRequest.getLastName());
            UserRole userRole = DomainType.GROUP.equals(assignedDomain.getDomainType()) ? UserRole.ROLE_GROUP_USER : UserRole.ROLE_ORG_USER;
            inviteeForm.setUserRole(userRole);
            success = invitationControllerService.inviteUserToDomain(domainRequest.getEmailAddress(), domainId, userRole, false);
        }

        domainRequestService.delete(requestId);
View Full Code Here


        List<Invitation> invitations = invitationService.getAll(domain.getId());
        List<InviteeForm> inviteeForms = new ArrayList<InviteeForm>();

        for (Invitation invitation : invitations) {
            InviteeForm inviteeForm = new InviteeForm();
            inviteeForm.setId(invitation.getId());
            inviteeForm.setEmail(invitation.getEmail());
            inviteeForm.setUserRole(invitation.getRole().getUserRole());
            inviteeForms.add(inviteeForm);
        }
        model.addAttribute("inviteeForms", inviteeForms);
        model.addAttribute("domainId", domain.getId());
        model.addAttribute("domainType", domain.getDomainType().name());
View Full Code Here

TOP

Related Classes of com.sparc.knappsack.forms.InviteeForm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.