Class UserEndpoint

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

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

    • userDirectoryService

      protected UserDirectoryService userDirectoryService
      The role directory service
  • Constructor Details

    • UserEndpoint

      public UserEndpoint()
  • Method Details

    • setUserDirectoryService

      public void setUserDirectoryService(UserDirectoryService userDirectoryService)
      Sets the user directory service
      Parameters:
      userDirectoryService - the userDirectoryService to set
    • getUsersAsXml

      @GET @Path("users.xml") @Produces("application/xml") public javax.ws.rs.core.Response getUsersAsXml(@QueryParam("query") String queryString, @QueryParam("limit") int limit, @QueryParam("offset") int offset) throws IOException
      Throws:
      IOException
    • getUsersAsJson

      @GET @Path("users.json") @Produces("application/json") public javax.ws.rs.core.Response getUsersAsJson(@QueryParam("query") String queryString, @QueryParam("limit") int limit, @QueryParam("offset") int offset) throws IOException
      Throws:
      IOException
    • getUserAsXml

      @GET @Path("{username}.xml") @Produces("application/xml") public JaxbUser getUserAsXml(@PathParam("username") String username) throws NotFoundException
      Throws:
      NotFoundException
    • getUserAsJson

      @GET @Path("{username}.json") @Produces("application/json") public JaxbUser getUserAsJson(@PathParam("username") String username) throws NotFoundException
      Throws:
      NotFoundException