citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/pageclicklistener/RuleViolationPageItemRendererClickListener.java
private static void navigateToPage(final RuleViolation violation) {
		if (violation.getResourceType() == ResourceType.PARTY) {			
			UI.getCurrent().getNavigator().navigateTo(UserViews.PARTY_VIEW_NAME + PAGE_SEPARATOR + violation.getId());
		} else {
			UI.getCurrent().getNavigator().navigateTo(UserViews.POLITICIAN_VIEW_NAME + PAGE_SEPARATOR + violation.getId());
		}
	}
private static void navigateToPage(final RuleViolation violation) {
		if (violation.getResourceType() == ResourceType.PARTY) {			
			UI.getCurrent().getNavigator().navigateTo(UserViews.PARTY_VIEW_NAME + PAGE_SEPARATOR + violation.getId());
		} else {
			UI.getCurrent().getNavigator().navigateTo(UserViews.POLITICIAN_VIEW_NAME + PAGE_SEPARATOR + violation.getId());
		}
	}
private static void navigateToPage ( final RuleViolation violation ) { if ( violation . getResourceType ( ) == ResourceType . PARTY ) { UI . getCurrent ( ) . getNavigator ( ) . navigateTo ( UserViews . PARTY_VIEW_NAME + PAGE_SEPARATOR + violation . getId ( ) ) ; } else { UI . getCurrent ( ) . getNavigator ( ) . navigateTo ( UserViews . POLITICIAN_VIEW_NAME + PAGE_SEPARATOR + violation . getId ( ) ) ; } }
Navigate to page.

@param violation
the violation
Navigate to page .