Class UserEndpoint
java.lang.Object
org.opencastproject.userdirectory.endpoint.UserEndpoint
Provides a sorted set of known users
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) OSGi callback.javax.ws.rs.core.Responsejavax.ws.rs.core.ResponsedeleteUser(String username) javax.ws.rs.core.ResponsegetUserAsJson(String username) getUsersAsJson(int limit, int offset) voidsetJpaUserAndRoleProvider(JpaUserAndRoleProvider jpaUserAndRoleProvider) voidsetSecurityService(SecurityService securityService) javax.ws.rs.core.Response
-
Constructor Details
-
UserEndpoint
public UserEndpoint()
-
-
Method Details
-
activate
public void activate(org.osgi.service.component.ComponentContext cc) OSGi callback. -
setSecurityService
- Parameters:
securityService- the securityService to set
-
setJpaUserAndRoleProvider
- 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
-
setUser
-
deleteUser
@DELETE @Path("{username}.json") public javax.ws.rs.core.Response deleteUser(@PathParam("username") String username)
-