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

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


        if (domain == null) {
            // TODO: Should we allow a non-admin to list their own projects??
            throw new WebApplicationException(Status.FORBIDDEN);
        }

        Projects response = new Projects();
        response.projects = Lists.newArrayList();

        for (ProjectData data : authRepository.getProjects().list()) {
            if (data.getDomainId() != domain.getId()) {
                continue;
View Full Code Here


    @Path("{id}/projects")
    @Produces({ JSON })
    public Projects getUserProjects(@PathParam("id") long id) throws CloudException {
        UserData user = getUser(id);

        Projects response = new Projects();
        response.projects = Lists.newArrayList();

        for (ProjectRoles projectRole : user.getProjectRolesList()) {
            long projectId = projectRole.getProject();
View Full Code Here

TOP

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

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.