public static InteractionResultSet isVisibleResultSet(final FacetHolder facetHolder, final VisibilityContext<?> context, final InteractionResultSet resultSet) {
return resultSet.add(isVisibleResult(facetHolder, context));
}
public static InteractionResult isUsableResult(final FacetHolder facetHolder, final UsabilityContext<?> context) {
final InteractionResult result = new InteractionResult(context.createInteractionEvent());
final List<Facet> facets = facetHolder.getFacets(FacetFilters.isA(DisablingInteractionAdvisor.class));
for (final Facet facet : facets) {
final DisablingInteractionAdvisor advisor = (DisablingInteractionAdvisor) facet;
final String disables = advisor.disables(context);
result.advise(disables, advisor);
}
return result;
}