/** * Returns whether the enable trend graph link should be shown. * * @param request the request to get the cookie from * @return the graph configuration */ public boolean canShowEnableTrendLink(final StaplerRequest request) { GraphConfigurationView configuration = createUserConfiguration(request); if (configuration.hasMeaningfulGraph()) { return !configuration.isDeactivated() && !configuration.isVisible(); } return false; }