com.atlassian.jira.issue.fields.screen.tab
Class FieldScreenRenderLayoutItemFilterImpl
java.lang.Object
com.atlassian.jira.issue.fields.screen.tab.FieldScreenRenderLayoutItemFilterImpl
- All Implemented Interfaces:
- FieldScreenRenderLayoutItemFilter
public class FieldScreenRenderLayoutItemFilterImpl
- extends Object
- implements FieldScreenRenderLayoutItemFilter
This class is providing filtering functionality for collections of 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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FieldScreenRenderLayoutItemFilterImpl
public FieldScreenRenderLayoutItemFilterImpl(FieldManager fieldManager,
FieldLayoutManager fieldLayoutManager)
filterAvailableFieldScreenLayoutItems
public Collection<FieldScreenLayoutItem> filterAvailableFieldScreenLayoutItems(Predicate<? super Field> condition,
List<FieldScreenLayoutItem> fieldLayoutItems)
- Specified by:
filterAvailableFieldScreenLayoutItems
in interface FieldScreenRenderLayoutItemFilter
filterVisibleFieldScreenLayoutItems
public Collection<FieldScreenLayoutItem> filterVisibleFieldScreenLayoutItems(Issue issue,
Collection<FieldScreenLayoutItem> fieldLayoutItems)
- Specified by:
filterVisibleFieldScreenLayoutItems
in interface FieldScreenRenderLayoutItemFilter
Copyright © 2002-2014 Atlassian. All Rights Reserved.