@Component @Path(value="/") @Scope(value="request") public class AuthenticationResource extends Object
| Constructor and Description |
|---|
AuthenticationResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createCloudUser(String username,
String password)
Creates a new ecloud-user with the specified username + password.
|
javax.ws.rs.core.Response |
deleteCloudUser(String username)
Deletes a user with the specified username.
|
javax.ws.rs.core.Response |
updateCloudUser(String username,
String password)
Updates an ecloud-user with the specified username + password.
|
@POST
@Path(value="/create-user")
@Produces(value={"application/json","application/xml"})
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
public javax.ws.rs.core.Response createCloudUser(@QueryParam(value="username")
String username,
@QueryParam(value="password")
String password)
throws eu.europeana.cloud.service.aas.authentication.exception.DatabaseConnectionException,
eu.europeana.cloud.service.aas.authentication.exception.UserExistsException,
eu.europeana.cloud.service.aas.authentication.exception.InvalidUsernameException,
eu.europeana.cloud.service.aas.authentication.exception.InvalidPasswordException
eu.europeana.cloud.service.aas.authentication.exception.DatabaseConnectionExceptioneu.europeana.cloud.service.aas.authentication.exception.UserExistsExceptioneu.europeana.cloud.service.aas.authentication.exception.InvalidUsernameExceptioneu.europeana.cloud.service.aas.authentication.exception.InvalidPasswordException@POST
@Path(value="/delete-user")
@Produces(value={"application/json","application/xml"})
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
public javax.ws.rs.core.Response deleteCloudUser(@QueryParam(value="username")
String username)
throws eu.europeana.cloud.service.aas.authentication.exception.DatabaseConnectionException,
eu.europeana.cloud.service.aas.authentication.exception.UserDoesNotExistException
eu.europeana.cloud.service.aas.authentication.exception.DatabaseConnectionExceptioneu.europeana.cloud.service.aas.authentication.exception.UserDoesNotExistException@POST
@Path(value="/update-user")
@Produces(value={"application/json","application/xml"})
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
public javax.ws.rs.core.Response updateCloudUser(@QueryParam(value="username")
String username,
@QueryParam(value="password")
String password)
throws eu.europeana.cloud.service.aas.authentication.exception.DatabaseConnectionException,
eu.europeana.cloud.service.aas.authentication.exception.UserDoesNotExistException,
eu.europeana.cloud.service.aas.authentication.exception.InvalidPasswordException
eu.europeana.cloud.service.aas.authentication.exception.DatabaseConnectionExceptioneu.europeana.cloud.service.aas.authentication.exception.UserDoesNotExistExceptioneu.europeana.cloud.service.aas.authentication.exception.InvalidPasswordExceptionCopyright © 2013–2017 Europeana Cloud Development Team. All rights reserved.