NdsBeisUi/src/main/java/com/northgateps/nds/beis/ui/controller/handler/AccountAddressHandler.java
/**
     * If partially registered (we have a logged on user) then move back to the personalised dashboard
     */
If partially registered (we have a logged on user) then move back to the personalised dashboard
If partially registered ( we have a logged on user ) then move back to the personalised dashboard
@Override
    public void onAfterNavigationUpdate(NdsFormModel model, ControllerState<?> controllerState) {
        logger.trace("onAfterNavigationUpdate Entry");
        final PlatformUser user = PlatformUser.getLoggedInUser();
        if (user != null) {
            final BeisAllModel beisModel = (BeisAllModel) model;  
            final UiData uiData = (UiData)beisModel.getUiData();
            uiData.setRegistrationStatus(RegistrationStatusType.USE_REGISTERED);
            controllerState.getPageFlowEngine().updateNavigationalState((AbstractNdsMvcModel) model,
                    "personalised-dashboard");
        }
        logger.trace("onAfterNavigationUpdate Exit");
    }
@ Override public void onAfterNavigationUpdate ( NdsFormModel model , ControllerState < ? > controllerState ) { logger . trace ( "onAfterNavigationUpdate Entry" ) ; final PlatformUser user = PlatformUser . getLoggedInUser ( ) ; if ( user != null ) { final BeisAllModel beisModel = ( BeisAllModel ) model ; final UiData uiData = ( UiData ) beisModel . getUiData ( ) ; uiData . setRegistrationStatus ( RegistrationStatusType . USE_REGISTERED ) ; controllerState . getPageFlowEngine ( ) . updateNavigationalState ( ( AbstractNdsMvcModel ) model , "personalised-dashboard" ) ; } logger . trace ( "onAfterNavigationUpdate Exit" ) ; }
If partially registered (we have a logged on user) then move back to the personalised dashboard
If partially registered ( we have a logged on user ) then move back to the personalised dashboard
//If we have a logged on user then this is a partial registration // cast the generic model to the beis model //Clear the registration status for the dash board to re-establish