Interface InternalSecurityProxy


@Path("/internal/security") @Consumes({"application/xml","application/json"}) @Produces({"application/xml","application/json"}) public interface InternalSecurityProxy
  • Method Details

    • exists

      @Deprecated @GET @Path("exists/{name}") Boolean exists(@PathParam("name") String roleName)
      Deprecated.
      Method @Deprecated use com.xebialabs.deployit.engine.api.RoleService.exists(String) instead Checks if role with given name exists
      Parameters:
      roleName - checked role name
      Returns:
    • list

      @Deprecated @GET @Path("roles/v2/{id:.+}") List<com.xebialabs.deployit.engine.api.security.Role> list(@PathParam("id") String id, @QueryParam("rolePattern") String rolePattern, @BeanParam com.xebialabs.deployit.engine.api.dto.Paging paging, @QueryParam("order") com.xebialabs.deployit.engine.api.dto.Ordering order)
      Deprecated.
      Method @Deprecated use com.xebialabs.deployit.engine.api.RoleService.list(String, String, Paging, Ordering) instead List the roles for given configuration item ID
      Parameters:
      id - configuration item ID
      rolePattern - the role name pattern used for search
      paging - search paging
      order - search order
      Returns:
    • list

      @Deprecated @GET @Path("roles") default List<com.xebialabs.deployit.engine.api.security.Role> list()
      Deprecated.
      Method @Deprecated use com.xebialabs.deployit.engine.api.RoleService.list() instead Lists the names of all available roles in the security system.
      Returns:
      a list of role names.
    • readRolePrincipals

      @Deprecated @GET @Path("roles/v2/principals") List<com.xebialabs.deployit.engine.api.security.RolePrincipals> readRolePrincipals(@QueryParam("rolePattern") String rolePattern, @BeanParam com.xebialabs.deployit.engine.api.dto.Paging paging, @QueryParam("order") com.xebialabs.deployit.engine.api.dto.Ordering order)
      Deprecated.
      Method @Deprecated use com.xebialabs.deployit.engine.api.RoleService.readRolePrincipals(String, Paging, Ordering) instead Lists paged role principals available in the security system for given role name pattern
      Parameters:
      rolePattern - the role name pattern used for search
      paging - search paging
      order - search order
    • readRolePrincipals

      @Deprecated @GET @Path("roles/principals") default List<com.xebialabs.deployit.engine.api.security.RolePrincipals> readRolePrincipals()
      Deprecated.
      Method @Deprecated use com.xebialabs.deployit.engine.api.RoleService.readRolePrincipals() instead Lists all role principals available in the security system.
    • writeRolePrincipals

      @POST @Path("roles/principals") void writeRolePrincipals(List<com.xebialabs.deployit.engine.api.security.RolePrincipals> rolePrincipals)
      Lists all role principals available in the security system.
      Parameters:
      rolePrincipals - the list of all RolePrincipals to be overwrite old ones
    • readRolePermissions

      @GET @Path("roles/v2/permissions/{id:.+}") List<RolePermissions> readRolePermissions(@PathParam("id") String id, @QueryParam("rolePattern") String rolePattern, @BeanParam com.xebialabs.deployit.engine.api.dto.Paging paging, @QueryParam("order") com.xebialabs.deployit.engine.api.dto.Ordering order, @DefaultValue("false") @QueryParam("includeInherited") Boolean includeInherited)
    • readRolePermissions

      default List<RolePermissions> readRolePermissions(String id, String rolePattern, com.xebialabs.deployit.engine.api.dto.Paging paging, com.xebialabs.deployit.engine.api.dto.Ordering order)
    • readRolePrincipals

      @GET @Path("roles/permissions/{id:.+}") default List<RolePermissions> readRolePrincipals(@PathParam("id") String id)
    • writeRolePermissions

      @POST @Path("roles/permissions/{id:.+}") void writeRolePermissions(@PathParam("id") String id, List<RolePermissions> permissions)