public class ClientUserManagementController
extends org.springframework.web.servlet.mvc.multiaction.MultiActionController
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_GROUP_ID
parameter name for the kenmei group entity id
|
static String |
PARAM_USER_ID
parameter name for the user id
|
static String |
PARAM_USER_ROLE
parameter name for the user role
|
DEFAULT_COMMAND_NAME, LAST_MODIFIED_METHOD_SUFFIX, PAGE_NOT_FOUND_LOG_CATEGORY, pageNotFoundLogger
Constructor and Description |
---|
ClientUserManagementController() |
Modifier and Type | Method and Description |
---|---|
void |
activateUser(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Activates a user.
|
void |
assignRole(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Assigns a role to a user.
|
void |
confirmUserDeletion(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles a request for confirming the user deletion.
|
void |
deleteUser(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method deletes the requested user by setting its status to
UserStatus.DELETED . |
void |
disableUser(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method temporarily disables the selected user.
|
void |
removeRole(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Tries to remove a role from a user.
|
void |
removeUserFromGroupEntity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Removes a CommunoteEntity from a KenmeiGroupEntity and sends a JSON response to the client.
|
bind, createBinder, getCommandName, getExceptionHandler, getLastModified, getMethodNameResolver, getValidators, getWebBindingInitializer, handleNoSuchRequestHandlingMethod, handleRequestInternal, initBinder, invokeNamedMethod, newCommandObject, setDelegate, setMethodNameResolver, setValidators, setWebBindingInitializer
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setAlwaysMustRevalidate, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
public static final String PARAM_USER_ID
public static final String PARAM_GROUP_ID
public static final String PARAM_USER_ROLE
public void activateUser(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
request
- the requestresponse
- the responseIOException
- in case of IO error when writing responsepublic void assignRole(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
request
- the http servlet requestresponse
- the servlet responseIOException
- in case of IO error when writing responsepublic void confirmUserDeletion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
request
- the http servlet requestresponse
- the servlet responseIOException
- in case an exception occurs while writing the responsepublic void deleteUser(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
UserStatus.DELETED
.request
- The request.response
- The response.IOException
- in case of IO error when writing responsepublic void disableUser(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
request
- The request.response
- The response.IOException
- in case an exception occurs while writing the responsepublic void removeRole(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
request
- the requestresponse
- the responseIOException
- in case of an IO exceptionpublic void removeUserFromGroupEntity(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
request
- the http servlet requestresponse
- the servlet responseIOException
- in case of a IO errorCopyright © 2019 Communote team. All rights reserved.