X - public abstract class AbstractCustomFieldHelper<X extends org.squashtest.tm.domain.customfield.BoundEntity> extends Object implements CustomFieldHelper<X>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractCustomFieldHelper.BindingFieldCollector |
protected static class |
AbstractCustomFieldHelper.BindingLocationFilter |
protected static class |
AbstractCustomFieldHelper.BindingSorter |
protected static class |
AbstractCustomFieldHelper.CustomFieldDefinitionStrategy |
| Modifier and Type | Field and Description |
|---|---|
protected CustomFieldBindingFinderService |
cufBindingService |
protected List<org.squashtest.tm.domain.customfield.CustomField> |
customFields |
| Constructor and Description |
|---|
AbstractCustomFieldHelper() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract List<org.squashtest.tm.domain.customfield.CustomFieldValue> |
doGetCustomFieldValues() |
protected List<org.squashtest.tm.domain.customfield.CustomField> |
findCustomFields(long projectId,
org.squashtest.tm.domain.customfield.BindableEntity entityType,
Collection<org.squashtest.tm.domain.customfield.RenderingLocation> optionalLocations)
Return the CustomFields referenced by the CustomFieldBindings for the given project and BindableEntity type,
ordered by their position.
|
protected AbstractCustomFieldHelper.CustomFieldDefinitionStrategy |
getAddingStrategy() |
protected CustomFieldValueManagerService |
getCufValuesService() |
List<org.squashtest.tm.domain.customfield.CustomField> |
getCustomFieldConfiguration()
sorted by position, filtered by location.
|
List<org.squashtest.tm.domain.customfield.CustomFieldValue> |
getCustomFieldValues() |
protected Collection<org.squashtest.tm.domain.customfield.RenderingLocation> |
getLocations() |
CustomFieldHelper<X> |
includeAllCustomFields()
tells the helper to include every custom fields it finds.
|
protected abstract void |
initCustomFields()
When called, this method should initialize the
customFields attribute. |
CustomFieldHelper<X> |
restrictToCommonFields()
tells the helper to retain only the custom fields that are common to all the entities (in case they come from mixed projects, or are
of mixed concrete classes)
|
protected void |
setCufBindingService(CustomFieldBindingFinderService cufBindingService) |
protected void |
setCufValuesService(CustomFieldValueManagerService cufValuesService) |
CustomFieldHelper<X> |
setRenderingLocations(Collection<org.squashtest.tm.domain.customfield.RenderingLocation> locations) |
CustomFieldHelper<X> |
setRenderingLocations(org.squashtest.tm.domain.customfield.RenderingLocation... locations) |
protected CustomFieldBindingFinderService cufBindingService
protected List<org.squashtest.tm.domain.customfield.CustomField> customFields
protected abstract void initCustomFields()
customFields attribute.protected abstract List<org.squashtest.tm.domain.customfield.CustomFieldValue> doGetCustomFieldValues()
public CustomFieldHelper<X> setRenderingLocations(org.squashtest.tm.domain.customfield.RenderingLocation... locations)
setRenderingLocations in interface CustomFieldHelper<X extends org.squashtest.tm.domain.customfield.BoundEntity>public CustomFieldHelper<X> setRenderingLocations(Collection<org.squashtest.tm.domain.customfield.RenderingLocation> locations)
setRenderingLocations in interface CustomFieldHelper<X extends org.squashtest.tm.domain.customfield.BoundEntity>public CustomFieldHelper<X> restrictToCommonFields()
CustomFieldHelperrestrictToCommonFields in interface CustomFieldHelper<X extends org.squashtest.tm.domain.customfield.BoundEntity>public CustomFieldHelper<X> includeAllCustomFields()
CustomFieldHelperincludeAllCustomFields in interface CustomFieldHelper<X extends org.squashtest.tm.domain.customfield.BoundEntity>public final List<org.squashtest.tm.domain.customfield.CustomField> getCustomFieldConfiguration()
CustomFieldHelpergetCustomFieldConfiguration in interface CustomFieldHelper<X extends org.squashtest.tm.domain.customfield.BoundEntity>public final List<org.squashtest.tm.domain.customfield.CustomFieldValue> getCustomFieldValues()
getCustomFieldValues in interface CustomFieldHelper<X extends org.squashtest.tm.domain.customfield.BoundEntity>protected final List<org.squashtest.tm.domain.customfield.CustomField> findCustomFields(long projectId, org.squashtest.tm.domain.customfield.BindableEntity entityType, Collection<org.squashtest.tm.domain.customfield.RenderingLocation> optionalLocations)
projectId - entityType - protected void setCufBindingService(CustomFieldBindingFinderService cufBindingService)
protected CustomFieldValueManagerService getCufValuesService()
protected void setCufValuesService(CustomFieldValueManagerService cufValuesService)
protected final AbstractCustomFieldHelper.CustomFieldDefinitionStrategy getAddingStrategy()
protected Collection<org.squashtest.tm.domain.customfield.RenderingLocation> getLocations()
Copyright © 2010–2017 Henix, henix.fr. All rights reserved.