Package io.fathom.cloud.identity.api.os.model

Examples of io.fathom.cloud.identity.api.os.model.User


            List<Service> v3Services = loginService.buildServiceMap(getBaseUrl(), project);

            access.services = toV2Services(project, v3Services);
        }

        User user = access.user = new User();
        user.id = "" + authentication.getUserData().getId();
        user.name = authentication.getUserData().getName();

        if (authentication.getProjectRoleIds() != null) {
            user.roles = Lists.newArrayList();
View Full Code Here


        for (UserData data : authRepository.getUsers().list()) {
            if (data.getDomainId() != domain.getId()) {
                continue;
            }

            User user = toModel(data);
            response.users.add(user);
        }

        return response;
    }
View Full Code Here

            // Tricky to change password
            // TODO: Support changing non-encrypted fields?
            throw new UnsupportedOperationException();
        }

        User req = wrapped.user;

        UserData updated;

        {
            UserData.Builder b = UserData.newBuilder(user.getUserData());
View Full Code Here

        if (domain == null) {
            // TODO: Allow foreign domain creation?
            throw new WebApplicationException(Status.FORBIDDEN);
        }

        User req = wrappedUser.user;

        DomainData domainData = authRepository.getDomains().find(domain.getId());
        if (domainData == null) {
            throw new IllegalStateException();
        }
View Full Code Here

        return response;
    }

    private User toModel(UserData data) {
        User user = new User();

        user.id = "" + data.getId();
        user.name = data.getName();

        if (data.hasEmail()) {
View Full Code Here

TOP

Related Classes of io.fathom.cloud.identity.api.os.model.User

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.