* org.apache.struts.action.ActionForm,
* javax.servlet.http.HttpServletRequest,
* javax.servlet.http.HttpServletResponse)
*/
public ActionForward modify(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse resp) {
SenderEnterOrEditForm f = (SenderEnterOrEditForm)form;
SmsSenderManager senderManager = new SmsSenderManager(locale,session);
Sender sender = senderManager.getSmsSenderByMsisdn(f.getMsisdn());
if (sender == null) {
throw new InputException(getResources(req).getMessage(locale, "admin.SenderNotFound", f.getMsisdn()));
}
formToSender(f, sender);
ensureUniqueMSISDN(sender, req);
senderManager.modifySmsSender(sender);
LOGGER.info("User " + req.getUserPrincipal().getName().toLowerCase() + ": Modified sender `"+ sender.getMsisdn() + "`");