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

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


            // TODO: Should we allow a non-admin to list roles?
            // Note that roles are basically public
            throw new WebApplicationException(Status.FORBIDDEN);
        }

        Roles response = new Roles();
        response.roles = Lists.newArrayList();

        for (RoleData model : authRepository.getRoles().list()) {
            response.roles.add(toModel(model));
        }
View Full Code Here


    public Roles getProjectDetails(@PathParam("projectId") long projectId, @PathParam("userId") long userId)
            throws CloudException {
        UserData user = getUser(userId);
        ProjectData project = getProject(projectId);

        Roles response = new Roles();
        response.roles = Lists.newArrayList();

        ProjectRoles projectRoles = Users.findProjectRoles(user, project.getId());
        if (projectRoles != null) {
            for (long roleId : projectRoles.getRoleList()) {
View Full Code Here

TOP

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

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.