Class RolePrincipalsResource


  • @Path("/roles")
    @Consumes("application/json")
    @Produces("application/json")
    @Controller
    public class RolePrincipalsResource
    extends java.lang.Object
    The login names or LDAP groups that are part of a security role.
    • Constructor Detail

      • RolePrincipalsResource

        @Autowired
        public RolePrincipalsResource​(com.xebialabs.xlrelease.security.PermissionChecker permissionChecker,
                                      com.xebialabs.deployit.security.RoleService roleService,
                                      TeamService teamService,
                                      UserViewConverter userViewConverter,
                                      XLReleaseEventBus xlReleaseEventBus)
    • Method Detail

      • readRoleNames

        @GET
        @Timed
        @Path("names")
        public java.util.List<java.lang.String> readRoleNames()
      • readRolePrincipals

        @GET
        @Timed
        @Path("principals")
        public java.util.List<RolePrincipalsView> readRolePrincipals()
      • createOrUpdateGlobalRolePermission

        @PUT
        @Timed
        @Path("principals")
        public void createOrUpdateGlobalRolePermission​(RolePrincipalsView rolePrincipalsView)
      • deleteGlobalRolePermission

        @DELETE
        @Timed
        @Path("principals/{roleId:.*}")
        public void deleteGlobalRolePermission​(@PathParam("roleId")
                                               java.lang.String roleId)