Class RolePrincipalsResource
java.lang.Object
com.xebialabs.xlrelease.api.internal.RolePrincipalsResource
@Path("/roles")
@Consumes("application/json")
@Produces("application/json")
@Controller
public class RolePrincipalsResource
extends Object
The login names or LDAP groups that are part of a security role.
-
Constructor Summary
ConstructorsConstructorDescriptionRolePrincipalsResource(com.xebialabs.xlrelease.security.PermissionChecker permissionChecker, com.xebialabs.deployit.security.RoleService roleService, TeamService teamService, com.xebialabs.xlrelease.security.ReleaseRoleService releaseRoleService, XLReleaseEventBus xlReleaseEventBus) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateOrUpdateGlobalRolePermission(RolePrincipalsView rolePrincipalsView) voiddeleteGlobalRolePermission(String roleId) Deprecated.org.springframework.data.domain.Page<RolePrincipalsView>readRolePrincipals(com.xebialabs.xlrelease.api.v1.filters.RolePrincipalsFilters filters, int page, int resultsPerPage)
-
Constructor Details
-
RolePrincipalsResource
@Autowired public RolePrincipalsResource(com.xebialabs.xlrelease.security.PermissionChecker permissionChecker, com.xebialabs.deployit.security.RoleService roleService, TeamService teamService, com.xebialabs.xlrelease.security.ReleaseRoleService releaseRoleService, XLReleaseEventBus xlReleaseEventBus)
-
-
Method Details
-
readRoleNames
-
readRolePrincipals
@GET @Path("principals") public org.springframework.data.domain.Page<RolePrincipalsView> readRolePrincipals(@BeanParam com.xebialabs.xlrelease.api.v1.filters.RolePrincipalsFilters filters, @DefaultValue("0") @QueryParam("page") int page, @DefaultValue("100") @QueryParam("resultsPerPage") int resultsPerPage) -
readRolePrincipals
Deprecated. -
createOrUpdateGlobalRolePermission
@PUT @Path("principals") public void createOrUpdateGlobalRolePermission(RolePrincipalsView rolePrincipalsView) -
deleteGlobalRolePermission
@DELETE @Path("principals/{roleId:.*}") public void deleteGlobalRolePermission(@PathParam("roleId") String roleId)
-