/** * Switch to the root conversation and redirect to the * last defined view-id for the root conversation. * * @return true if a redirect occurred */ public boolean redirectToRoot() { root(); return redirect(); }
/** * Pop the conversation stack and redirect to the last defined * view-id for the parent conversation. * * @return true if a redirect occurred */ public boolean redirectToParent() { pop(); return redirect(); }
/** * Switch back to the last defined view-id for the * current conversation. * * @return true if a redirect occurred */ public boolean redirect() { Manager manager = Manager.instance(); return redirect( manager, manager.getCurrentConversationViewId() ); }
/** * End a child conversation and redirect to the last defined * view-id for the parent conversation. * * @param endBeforeRedirect should the conversation be destroyed before the redirect? * @return true if a redirect occurred */ public boolean endAndRedirect(boolean endBeforeRedirect) { end(endBeforeRedirect); Manager manager = Manager.instance(); return redirect( manager, manager.getParentConversationViewId() ); }