class NavigationUtils {

    public String getRedirectToDashboardUrlForRole(Role role) {

        if (LIVE_PROJECTS_USER.equals(role)) {
            return "redirect:" + liveProjectsLandingPageUrl;
        }

        String roleUrl = DEFAULT_LANDING_PAGE_URLS_FOR_ROLES.get(role);

        return format("redirect:/%s", hasText(roleUrl) ? roleUrl : "dashboard");
    }

    private  NavigationUtils();

}