Class UserEndpoint

java.lang.Object
org.opencastproject.userdirectory.endpoint.UserEndpoint

@Path("/user-utils") public class UserEndpoint extends Object
Provides a sorted set of known users
  • Constructor Details

    • UserEndpoint

      public UserEndpoint()
  • Method Details

    • activate

      public void activate(org.osgi.service.component.ComponentContext cc)
      OSGi callback.
    • setSecurityService

      public void setSecurityService(SecurityService securityService)
      Parameters:
      securityService - the securityService to set
    • setJpaUserAndRoleProvider

      public void setJpaUserAndRoleProvider(JpaUserAndRoleProvider jpaUserAndRoleProvider)
      Parameters:
      jpaUserAndRoleProvider - the persistenceProperties to set
    • getUsersAsJson

      @GET @Path("users.json") @Produces("application/json") public JaxbUserList getUsersAsJson(@QueryParam("limit") int limit, @QueryParam("offset") int offset) throws IOException
      Throws:
      IOException
    • getUserAsJson

      @GET @Path("{username}.json") @Produces("application/json") public javax.ws.rs.core.Response getUserAsJson(@PathParam("username") String username) throws NotFoundException
      Throws:
      NotFoundException
    • getUserWithInsecurePasswordHashingAsJson

      @GET @Path("users/md5.json") @Produces("application/json") public JaxbUserList getUserWithInsecurePasswordHashingAsJson()
    • createUser

      @POST @Path("/") public javax.ws.rs.core.Response createUser(@FormParam("username") String username, @FormParam("password") String password, @FormParam("name") String name, @FormParam("email") String email, @FormParam("roles") String roles)
    • setUser

      @PUT @Path("{username}.json") public javax.ws.rs.core.Response setUser(@PathParam("username") String username, @FormParam("password") String password, @FormParam("name") String name, @FormParam("email") String email, @FormParam("roles") String roles)
    • deleteUser

      @DELETE @Path("{username}.json") public javax.ws.rs.core.Response deleteUser(@PathParam("username") String username)