Package org.javlo.module.user
Class UserAction
- java.lang.Object
-
- org.javlo.actions.AbstractModuleAction
-
- org.javlo.module.user.UserAction
-
- All Implemented Interfaces:
IAction
,IModuleAction
public class UserAction extends AbstractModuleAction
-
-
Field Summary
Fields Modifier and Type Field Description static String
INIT_TOKEN
static String
JAVLO_LOGIN_ID
-
Constructor Summary
Constructors Constructor Description UserAction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getActionGroupName()
the group name of the actionstatic String
performAjaxUserList(RequestService rs, javax.servlet.http.HttpSession session, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)
static String
performAskChangePassword(RequestService rs, ContentContext ctx, EditContext editContext, GlobalContext globalContext, MessageRepository messageRepository, I18nAccess i18nAccess)
String
performChangeMode(ContentContext ctx, RequestService requestService)
static String
performChangePassword(RequestService rs, ContentContext ctx, EditContext editContext, GlobalContext globalContext, javax.servlet.http.HttpSession session, StaticConfig staticConfig, MessageRepository messageRepository, I18nAccess i18nAccess)
static String
performChangePassword2Check(RequestService rs, GlobalContext globalContext, javax.servlet.http.HttpSession session, ContentContext ctx, StaticConfig staticConfig, MessageRepository messageRepository, I18nAccess i18nAccess)
static String
performChangePasswordWithToken(RequestService rs, ContentContext ctx, EditContext editContext, GlobalContext globalContext, javax.servlet.http.HttpSession session, StaticConfig staticConfig, MessageRepository messageRepository, I18nAccess i18nAccess)
String
performCreateUser(ContentContext ctx, StaticConfig staticConfig, RequestService requestService, I18nAccess i18nAccess, MessageRepository messageRepository)
String
performCreateuserwidthemail(ContentContext ctx, StaticConfig staticConfig, RequestService requestService, I18nAccess i18nAccess, MessageRepository messageRepository)
static String
performDeleteFile(RequestService rs, User user, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)
String
performDeleteUser(ContentContext ctx, RequestService requestService, I18nAccess i18nAccess, MessageRepository messageRepository)
String
performEdit(Module currentModule)
static String
performLogin(ContentContext ctx, javax.servlet.http.HttpServletRequest request, RequestService rs, GlobalContext globalContext, I18nAccess i18nAccess)
static String
performLogout(ContentContext ctx, javax.servlet.http.HttpServletRequest request, RequestService rs, GlobalContext globalContext, I18nAccess i18nAccess)
static String
performMailingRegistration(RequestService rs, User user, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)
static String
performRestoreshadowaccess(javax.servlet.http.HttpServletRequest request, RequestService rs, I18nAccess i18nAccess, ContentContext ctx, GlobalContext globalContext, javax.servlet.http.HttpSession session)
static String
performSelectRole(javax.servlet.http.HttpServletRequest request, ContentContext ctx, GlobalContext globalContext, javax.servlet.http.HttpSession session, MessageRepository messageRepository, I18nAccess i18nAccess)
static String
performToken(javax.servlet.http.HttpServletRequest request, ContentContext ctx, GlobalContext globalContext, javax.servlet.http.HttpSession session)
String
performUpdate(ContentContext ctx, GlobalContext globalContext, RequestService requestService, StaticConfig staticConfig, AdminUserSecurity adminUserSecurity, AdminUserFactory adminUserFactory, javax.servlet.http.HttpSession session, Module currentModule, I18nAccess i18nAccess, MessageRepository messageRepository)
String
performUpdateCurrent(ContentContext ctx, GlobalContext globalContext, EditContext editContext, RequestService requestService, StaticConfig staticConfig, AdminUserSecurity adminUserSecurity, AdminUserFactory adminUserFactory, javax.servlet.http.HttpSession session, Module currentModule, I18nAccess i18nAccess, MessageRepository messageRepository)
static String
performUpload(RequestService rs, javax.servlet.http.HttpSession session, User user, ContentContext ctx, GlobalContext globalContext, MessageRepository messageRepository, I18nAccess i18nAccess)
String
prepare(ContentContext ctx, ModulesContext moduleContext)
method called before module rendering-
Methods inherited from class org.javlo.actions.AbstractModuleAction
getModuleContext, haveRight, haveRight, isLightInterface, performChangeRenderer, performSearch, performWizard
-
-
-
-
Field Detail
-
JAVLO_LOGIN_ID
public static final String JAVLO_LOGIN_ID
- See Also:
- Constant Field Values
-
INIT_TOKEN
public static final String INIT_TOKEN
- See Also:
- Constant Field Values
-
-
Method Detail
-
getActionGroupName
public String getActionGroupName()
Description copied from interface:IAction
the group name of the action- Returns:
- a group name.
-
prepare
public String prepare(ContentContext ctx, ModulesContext moduleContext) throws Exception
Description copied from interface:IModuleAction
method called before module rendering- Specified by:
prepare
in interfaceIModuleAction
- Overrides:
prepare
in classAbstractModuleAction
- Parameters:
ctx
- the current context.moduleContext
- the context of the module. You can call getCurrentModule for recover the module.- Returns:
- eventually the error message
- Throws:
Exception
-
performChangeMode
public String performChangeMode(ContentContext ctx, RequestService requestService)
-
performEdit
public String performEdit(Module currentModule) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
-
performUpdateCurrent
public String performUpdateCurrent(ContentContext ctx, GlobalContext globalContext, EditContext editContext, RequestService requestService, StaticConfig staticConfig, AdminUserSecurity adminUserSecurity, AdminUserFactory adminUserFactory, javax.servlet.http.HttpSession session, Module currentModule, I18nAccess i18nAccess, MessageRepository messageRepository)
-
performUpdate
public String performUpdate(ContentContext ctx, GlobalContext globalContext, RequestService requestService, StaticConfig staticConfig, AdminUserSecurity adminUserSecurity, AdminUserFactory adminUserFactory, javax.servlet.http.HttpSession session, Module currentModule, I18nAccess i18nAccess, MessageRepository messageRepository)
-
performCreateuserwidthemail
public String performCreateuserwidthemail(ContentContext ctx, StaticConfig staticConfig, RequestService requestService, I18nAccess i18nAccess, MessageRepository messageRepository) throws IOException, Exception
- Throws:
IOException
Exception
-
performCreateUser
public String performCreateUser(ContentContext ctx, StaticConfig staticConfig, RequestService requestService, I18nAccess i18nAccess, MessageRepository messageRepository)
-
performDeleteUser
public String performDeleteUser(ContentContext ctx, RequestService requestService, I18nAccess i18nAccess, MessageRepository messageRepository) throws UserAllreadyExistException
- Throws:
UserAllreadyExistException
-
performAskChangePassword
public static String performAskChangePassword(RequestService rs, ContentContext ctx, EditContext editContext, GlobalContext globalContext, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
performChangePasswordWithToken
public static String performChangePasswordWithToken(RequestService rs, ContentContext ctx, EditContext editContext, GlobalContext globalContext, javax.servlet.http.HttpSession session, StaticConfig staticConfig, MessageRepository messageRepository, I18nAccess i18nAccess)
-
performChangePassword
public static String performChangePassword(RequestService rs, ContentContext ctx, EditContext editContext, GlobalContext globalContext, javax.servlet.http.HttpSession session, StaticConfig staticConfig, MessageRepository messageRepository, I18nAccess i18nAccess)
-
performChangePassword2Check
public static String performChangePassword2Check(RequestService rs, GlobalContext globalContext, javax.servlet.http.HttpSession session, ContentContext ctx, StaticConfig staticConfig, MessageRepository messageRepository, I18nAccess i18nAccess) throws IOException
- Throws:
IOException
-
performToken
public static String performToken(javax.servlet.http.HttpServletRequest request, ContentContext ctx, GlobalContext globalContext, javax.servlet.http.HttpSession session)
-
performRestoreshadowaccess
public static String performRestoreshadowaccess(javax.servlet.http.HttpServletRequest request, RequestService rs, I18nAccess i18nAccess, ContentContext ctx, GlobalContext globalContext, javax.servlet.http.HttpSession session) throws Exception
- Throws:
Exception
-
performUpload
public static String performUpload(RequestService rs, javax.servlet.http.HttpSession session, User user, ContentContext ctx, GlobalContext globalContext, MessageRepository messageRepository, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
performSelectRole
public static String performSelectRole(javax.servlet.http.HttpServletRequest request, ContentContext ctx, GlobalContext globalContext, javax.servlet.http.HttpSession session, MessageRepository messageRepository, I18nAccess i18nAccess) throws IOException
- Throws:
IOException
-
performAjaxUserList
public static String performAjaxUserList(RequestService rs, javax.servlet.http.HttpSession session, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)
-
performDeleteFile
public static String performDeleteFile(RequestService rs, User user, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess)
-
performMailingRegistration
public static String performMailingRegistration(RequestService rs, User user, ContentContext ctx, MessageRepository messageRepository, I18nAccess i18nAccess) throws UserAllreadyExistException
- Throws:
UserAllreadyExistException
-
performLogin
public static String performLogin(ContentContext ctx, javax.servlet.http.HttpServletRequest request, RequestService rs, GlobalContext globalContext, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
performLogout
public static String performLogout(ContentContext ctx, javax.servlet.http.HttpServletRequest request, RequestService rs, GlobalContext globalContext, I18nAccess i18nAccess) throws Exception
- Throws:
Exception
-
-