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

Examples of io.fathom.cloud.identity.api.os.model.v3.Token.ProjectInfo


    }

    private Token buildTokenModel(TokenInfo token) throws CloudException {
        Preconditions.checkNotNull(token);

        Token response = new Token();

        response.expires = TokenAuth.getExpiration(token);

        UserData user = authRepository.getUsers().find(token.getUserId());
        if (user == null) {
View Full Code Here


        model.name = domain.getName();
        return model;
    }

    private ProjectInfo toModel(DomainData domain, ProjectData project) {
        ProjectInfo model = new ProjectInfo();
        model.id = Long.toString(project.getId());
        model.name = project.getName();
        model.domain = toModel(domain);
        return model;
    }
View Full Code Here

        if (roles != null) {
            response.roles = Lists.newArrayList();

            for (RoleData role : roles) {
                RoleInfo model = toModel(role);
                response.roles.add(model);
            }
        }

        return response;
View Full Code Here

        return response;

    }

    private RoleInfo toModel(RoleData role) {
        RoleInfo model = new RoleInfo();
        model.id = Long.toString(role.getId());
        model.name = role.getName();
        return model;
    }
View Full Code Here

        model.name = role.getName();
        return model;
    }

    private UserInfo toModel(DomainData domain, UserData user) {
        UserInfo model = new UserInfo();
        model.id = Long.toString(user.getId());
        model.name = user.getName();
        model.domain = toModel(domain);
        return model;
    }
View Full Code Here

TOP

Related Classes of io.fathom.cloud.identity.api.os.model.v3.Token.ProjectInfo

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.