@Test(expected = QuickLinksProfileEvaluationException.class) public void testBuildProfileInvalidProfileDefiniton_contradictingFilters() throws Exception { Set<Map<String, String>> filters = newHashSet( filter(null, "sso", true), filter(null, "sso", false) ); new QuickLinksProfileBuilder().buildQuickLinksProfile(filters, null); }
public String buildQuickLinksProfile(@Nullable Object globalFiltersRaw, @Nullable Object serviceFiltersRaw) throws QuickLinksProfileEvaluationException { try { List<Filter> globalFilters = buildQuickLinkFilters(globalFiltersRaw); List<Service> services = buildServices(serviceFiltersRaw); QuickLinksProfile profile = QuickLinksProfile.create(globalFilters, services); new DefaultQuickLinkVisibilityController(profile); return new QuickLinksProfileParser().encode(profile); } catch (QuickLinksProfileEvaluationException ex) { throw ex; } catch (Exception ex) { throw new QuickLinksProfileEvaluationException("Error interpreting quicklinks profile data", ex); } }
QuickLinksProfileBuilder { public String buildQuickLinksProfile(@Nullable Object globalFiltersRaw, @Nullable Object serviceFiltersRaw) throws QuickLinksProfileEvaluationException { try { List<Filter> globalFilters = buildQuickLinkFilters(globalFiltersRaw); List<Service> services = buildServices(serviceFiltersRaw); QuickLinksProfile profile = QuickLinksProfile.create(globalFilters, services); new DefaultQuickLinkVisibilityController(profile); return new QuickLinksProfileParser().encode(profile); } catch (QuickLinksProfileEvaluationException ex) { throw ex; } catch (Exception ex) { throw new QuickLinksProfileEvaluationException("Error interpreting quicklinks profile data", ex); } } }
QuickLinksProfileBuilder { public String buildQuickLinksProfile(@Nullable Object globalFiltersRaw, @Nullable Object serviceFiltersRaw) throws QuickLinksProfileEvaluationException { try { List<Filter> globalFilters = buildQuickLinkFilters(globalFiltersRaw); List<Service> services = buildServices(serviceFiltersRaw); QuickLinksProfile profile = QuickLinksProfile.create(globalFilters, services); new DefaultQuickLinkVisibilityController(profile); return new QuickLinksProfileParser().encode(profile); } catch (QuickLinksProfileEvaluationException ex) { throw ex; } catch (Exception ex) { throw new QuickLinksProfileEvaluationException("Error interpreting quicklinks profile data", ex); } }  }
QuickLinksProfileBuilder { public String buildQuickLinksProfile(@Nullable Object globalFiltersRaw, @Nullable Object serviceFiltersRaw) throws QuickLinksProfileEvaluationException { try { List<Filter> globalFilters = buildQuickLinkFilters(globalFiltersRaw); List<Service> services = buildServices(serviceFiltersRaw); QuickLinksProfile profile = QuickLinksProfile.create(globalFilters, services); new DefaultQuickLinkVisibilityController(profile); return new QuickLinksProfileParser().encode(profile); } catch (QuickLinksProfileEvaluationException ex) { throw ex; } catch (Exception ex) { throw new QuickLinksProfileEvaluationException("Error interpreting quicklinks profile data", ex); } }  String buildQuickLinksProfile(@Nullable Object globalFiltersRaw, @Nullable Object serviceFiltersRaw); }
QuickLinksProfileBuilder { public String buildQuickLinksProfile(@Nullable Object globalFiltersRaw, @Nullable Object serviceFiltersRaw) throws QuickLinksProfileEvaluationException { try { List<Filter> globalFilters = buildQuickLinkFilters(globalFiltersRaw); List<Service> services = buildServices(serviceFiltersRaw); QuickLinksProfile profile = QuickLinksProfile.create(globalFilters, services); new DefaultQuickLinkVisibilityController(profile); return new QuickLinksProfileParser().encode(profile); } catch (QuickLinksProfileEvaluationException ex) { throw ex; } catch (Exception ex) { throw new QuickLinksProfileEvaluationException("Error interpreting quicklinks profile data", ex); } }  String buildQuickLinksProfile(@Nullable Object globalFiltersRaw, @Nullable Object serviceFiltersRaw); static final String NAME; static final String COMPONENTS; static final String FILTERS; static final Set<String> ALLOWED_FILTER_ATTRIBUTES; }