public class FieldScreenRenderLayoutItemFilterImpl extends Object implements FieldScreenRenderLayoutItemFilter
FieldScreenLayoutItem
. Each filtering logic is wrapped with SafePluginPointAccess.safe(com.google.common.base.Predicate)
to provide sufficient exception handling. Every FieldScreenLayoutItem
throwing unhandled exceptions while evaluating Predicates will be filtered out from result collection.
This class was added during (JDEV-27272 - Hardening customfield plugin points) as a protection against unhandled exception from CustomFieldType plugins.Constructor and Description |
---|
FieldScreenRenderLayoutItemFilterImpl(FieldManager fieldManager,
FieldLayoutManager fieldLayoutManager) |
Modifier and Type | Method and Description |
---|---|
Collection<FieldScreenLayoutItem> |
filterAvailableFieldScreenLayoutItems(Predicate<? super Field> condition,
List<FieldScreenLayoutItem> fieldLayoutItems) |
Collection<FieldScreenLayoutItem> |
filterVisibleFieldScreenLayoutItems(Issue issue,
Collection<FieldScreenLayoutItem> fieldLayoutItems) |
public FieldScreenRenderLayoutItemFilterImpl(FieldManager fieldManager, FieldLayoutManager fieldLayoutManager)
public Collection<FieldScreenLayoutItem> filterAvailableFieldScreenLayoutItems(Predicate<? super Field> condition, List<FieldScreenLayoutItem> fieldLayoutItems)
filterAvailableFieldScreenLayoutItems
in interface FieldScreenRenderLayoutItemFilter
public Collection<FieldScreenLayoutItem> filterVisibleFieldScreenLayoutItems(Issue issue, Collection<FieldScreenLayoutItem> fieldLayoutItems)
filterVisibleFieldScreenLayoutItems
in interface FieldScreenRenderLayoutItemFilter
Copyright © 2002-2015 Atlassian. All Rights Reserved.