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) org.opencastproject.security.api.JaxbUserListgetUsersAsJson(int limit, int offset) org.opencastproject.security.api.JaxbUserListvoidsetJpaUserAndRoleProvider(JpaUserAndRoleProvider jpaUserAndRoleProvider) voidsetSecurityService(org.opencastproject.security.api.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
public void setSecurityService(org.opencastproject.security.api.SecurityService securityService) - Parameters:
securityService- the securityService to set
-
setJpaUserAndRoleProvider
- Parameters:
jpaUserAndRoleProvider- the persistenceProperties to set
-
getUsersAsJson
@GET @Path("users.json") @Produces("application/json") public org.opencastproject.security.api.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 org.opencastproject.util.NotFoundException - Throws:
org.opencastproject.util.NotFoundException
-
getUserWithInsecurePasswordHashingAsJson
@GET @Path("users/md5.json") @Produces("application/json") public org.opencastproject.security.api.JaxbUserList getUserWithInsecurePasswordHashingAsJson() -
createUser
-
setUser
-
deleteUser
@DELETE @Path("{username}.json") public javax.ws.rs.core.Response deleteUser(@PathParam("username") String username)
-