Class UserEndpoint
java.lang.Object
org.opencastproject.userdirectory.UserEndpoint
Provides a sorted set of known users
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUserAsJson(String username) getUserAsXml(String username) javax.ws.rs.core.ResponsegetUsersAsJson(String queryString, int limit, int offset) javax.ws.rs.core.ResponsegetUsersAsXml(String queryString, int limit, int offset) voidsetUserDirectoryService(UserDirectoryService userDirectoryService) Sets the user directory service
-
Field Details
-
userDirectoryService
The role directory service
-
-
Constructor Details
-
UserEndpoint
public UserEndpoint()
-
-
Method Details
-
setUserDirectoryService
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
-