public boolean isAccessDenied ( final String viewName ) { final List < DashboardMenuItem > accessibleViews = getAccessibleViews ( ) ; boolean accessDeined = Boolean . TRUE . booleanValue ( ) ; for ( final DashboardMenuItem dashboardViewType : accessibleViews ) { if ( dashboardViewType . getViewName ( ) . equals ( viewName ) ) { accessDeined = Boolean . FALSE . booleanValue ( ) ; } } return accessDeined ; }
Is the given view accessible .