Package net.naijatek.myalumni.modules.common.presentation.form

Examples of net.naijatek.myalumni.modules.common.presentation.form.SystemGroupForm


    public ActionForward addLookupCode(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
        logger.debug("in addLookupCode...");       
        if ( !isTokenValid(request) ) {
            return mapping.findForward(BaseConstants.FWD_INVALID_TOKEN);
        }
        SystemGroupForm detailForm = (SystemGroupForm)form;
        XlatDetailVO detailVO = new XlatDetailVO();
        BeanUtils.copyProperties(detailVO, detailForm);
        detailVO.setLastModifiedBy(getLastModifiedBy(request));
        xlatService.addXlatDetail(detailVO);
        listLookupCodesHelper(request, form);
View Full Code Here


    }
   
    public ActionForward prepareUpdateLookupCode(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
        logger.debug("in prepareUpdateLookupCode...");
        saveToken(request);
        SystemGroupForm groupForm = (SystemGroupForm)form;
        XlatDetailVO detailVO = xlatService.getDetail(groupForm.getLookupGroupId(), groupForm.getLookupCodeId());
        BeanUtils.copyProperties(groupForm, detailVO);
        BeanUtils.copyProperties(groupForm, detailVO.getGroup());
        return mapping.findForward(BaseConstants.FWD_SUCCESS);
    }
View Full Code Here

    public ActionForward updateLookupCode(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
        logger.debug("in updateLookupCode...");       
        if ( !isTokenValid(request) ) {
            return mapping.findForward(BaseConstants.FWD_INVALID_TOKEN);
        }
        SystemGroupForm groupForm = (SystemGroupForm)form;
        xlatService.updateXlatDetail(getLastModifiedBy(request), groupForm.getLookupGroupId(), groupForm.getLookupCodeId(),
        groupForm.getStatus(), groupForm.getLabel());
        listLookupCodesHelper(request, form);
        resetToken(request);
        return mapping.findForward(BaseConstants.FWD_SUCCESS);
    }   
View Full Code Here

        return mapping.findForward(BaseConstants.FWD_SUCCESS);
    }   
   
    public void listLookupCodesHelper(HttpServletRequest request, ActionForm form) throws Exception {
        logger.debug("in listLookupCodesHelper...");
        SystemGroupForm groupForm = (SystemGroupForm)form;
        XlatGroupVO group = xlatGroupService.findById(groupForm.getLookupGroupId());
        group.setDetails(xlatService.getGroupDetails(groupForm.getLookupGroupId()));
        setRequestObject(request, BaseConstants.LIST_OF_CODES_FROM_GROUP, group);
    }   
View Full Code Here

TOP

Related Classes of net.naijatek.myalumni.modules.common.presentation.form.SystemGroupForm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.