// check to see if the user logged on is a member
if (!adminSecurityCheck(request)) {
return mapping.findForward(BaseConstants.FWD_ADMIN_LOGIN);
}
ScrollForm scrollForm = (ScrollForm) form;
if (scrollForm.getType().equalsIgnoreCase("list")) {
allScrolls = systemConfigService.getAllScrolls();
setSessionObject(request, BaseConstants.LIST_OF_SCROLLS, allScrolls);
}
else if (scrollForm.getType().equalsIgnoreCase("update")) {
systemConfigService.updateScroll(scrollForm.getScrollId(), getLastModifiedBy(request));
sCtx.setAttribute(BaseConstants.SCROLL_VO, systemConfigService.getLatestScroll());
}
else if (scrollForm.getType().equalsIgnoreCase("new")) {
ScrollVO scrollVO = new ScrollVO();
BeanUtils.copyProperties(scrollVO, scrollForm);
scrollVO.setLastModifiedBy(getLastModifiedBy(request));
scrollVO.setScrollId(null);
systemConfigService.addScroll(scrollVO);