Package com.sparc.knappsack.models

Examples of com.sparc.knappsack.models.GroupModel


        return createGroupModel(get(groupId));
    }

    @Override
    public GroupModel createGroupModel(Group group) {
        GroupModel model = null;
        if (group != null) {
            model = new GroupModel();
            model.setId(group.getId());
            model.setName(group.getName());
        }
        return model;
    }
View Full Code Here


        return model;
    }

    @Override
    public GroupModel createGroupModelWithOrganization(Group group, boolean includeOrgStorageConfig, boolean includeExternalData) {
        GroupModel model = createGroupModel(group);

        if (model != null) {
            OrganizationModel organizationModel = null;

            if (includeOrgStorageConfig) {
                organizationModel = organizationService.createOrganizationModel(group.getOrganization(), includeExternalData);
            } else {
                organizationModel = organizationService.createOrganizationModelWithoutStorageConfiguration(group.getOrganization(), includeExternalData);
            }

            model.setOrganization(organizationModel);
        }

        return model;
    }
View Full Code Here

        userModel.setFirstName(user.getFirstName());
        userModel.setLastName(user.getLastName());
        model.setUser(userModel);
        model.setId(domainUserRequest.getId());
        model.setStatus(domainUserRequest.getStatus());
        GroupModel groupModel = new GroupModel();
        groupModel.setId(domainUserRequest.getDomain().getId());
        groupModel.setName(domainUserRequest.getDomain().getName());
        model.setDomain(groupModel);
        emailService.sendDomainUserAccessConfirmationEmail(model);

        assertEquals(1, wiser.getMessages().size());
View Full Code Here

                            userModel.setUserName((String) userModelMap.get("userName"));

                            domainUserRequestModel.setUser(userModel);
                        }

                        GroupModel groupModel = new GroupModel();
                        Integer groupId = (Integer) groupModelMap.get("id");
                        if (groupId != null) {
                            groupModel.setId(groupId.longValue());
                        }
                        groupModel.setName((String) groupModelMap.get("name"));
                        domainUserRequestModel.setDomain(groupModel);

                        domainUserRequestModel.setStatus(Status.valueOf((String) modelMap.get("status")));
                        if (domainUserRequestModel != null && domainUserRequestModel.getUser() != null) {
                            success = emailService.sendDomainUserAccessConfirmationEmail(domainUserRequestModel);
View Full Code Here

TOP

Related Classes of com.sparc.knappsack.models.GroupModel

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.