Examples of DomainRequest


Examples of com.sparc.knappsack.components.entities.DomainRequest

    Result acceptDomainRequest(@RequestParam Long requestId, @RequestParam(value = "domainIds[]") List<Long> domainIds) {
        Result result = new Result();
        result.setResult(false);
        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);

        result.setResult(success);
View Full Code Here

Examples of com.sparc.knappsack.components.entities.DomainRequest

        } else {

            Domain domain = domainService.getByUUID(domainRequestForm.getDomainUUID());

            if (domain != null) {
                DomainRequest domainRequest = domainRequestService.createDomainRequest(domainRequestForm);

                if (domainRequest != null && domainRequest.getId() != null && domainRequest.getId() > 0) {
                    redirectAttributes.addFlashAttribute("success", true);

                    boolean emailsSent = false;
                    EventDelivery deliveryMechanism = eventDeliveryFactory.getEventDelivery(EventType.DOMAIN_ACCESS_REQUEST);
                    if (deliveryMechanism != null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.