Class StoreMessagesAction
java.lang.Object
org.apache.struts.action.Action
com.softslate.commerce.customer.core.BaseAction
com.softslate.commerce.administrator.core.SettingsAction
com.softslate.commerce.administrator.core.StoreMessagesAction
- Author:
- David Tobey
-
Field Summary
FieldsFields inherited from class org.apache.struts.action.Action
servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.struts.action.ActionForwardexecute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) voidsaveMessageInMemory(Map messages, String key, String value) Saves a single message in memory for a given Map of messages, across all locales.voidsaveProperties(Properties customProperties, StoreMessagesForm baseForm) Saves a new set of properties for the give custom store messages.Methods inherited from class com.softslate.commerce.administrator.core.SettingsAction
saveComponentsMethods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
-
Field Details
-
log
static org.apache.commons.logging.Log log
-
-
Constructor Details
-
StoreMessagesAction
public StoreMessagesAction()
-
-
Method Details
-
execute
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception - Overrides:
executein classSettingsAction- Throws:
Exception
-
saveMessageInMemory
Saves a single message in memory for a given Map of messages, across all locales.- Parameters:
messages-key-value-
-
saveProperties
public void saveProperties(Properties customProperties, StoreMessagesForm baseForm) throws Exception Saves a new set of properties for the give custom store messages.- Parameters:
customProperties- The new set of properties to be saved.baseForm- The StoreMessageForm instance being processed.- Throws:
Exception
-