public interface CustomFieldBindingModificationService extends CustomFieldBindingFinderService
CustomField. The user calling the following methods must have a role 'admin'
or 'project manager'.| Modifier and Type | Method and Description |
|---|---|
void |
addNewCustomFieldBinding(long projectId,
org.squashtest.tm.domain.customfield.BindableEntity entity,
long customFieldId,
org.squashtest.tm.domain.customfield.CustomFieldBinding newBinding)
Will attach a
CustomField to a Project. |
void |
addRenderingLocation(long bindingId,
org.squashtest.tm.domain.customfield.RenderingLocation location)
Add a rendering location to a custom field binding
|
void |
copyCustomFieldsSettingsFromTemplate(org.squashtest.tm.domain.project.GenericProject target,
org.squashtest.tm.domain.project.GenericProject source)
Will copy the custom field bindings of the template and apply them to the project.
|
void |
moveCustomFieldbindings(List<Long> bindingIds,
int newIndex)
Given a list of
CustomFieldBindings, will reorder them with respect to their project and bound entity. |
void |
removeCustomFieldBindings(List<Long> bindingIds)
removes a batch of custom field bindings using their ids.
|
void |
removeCustomFieldBindings(Long projectId)
removes all the custom field bindings defined for a project.
|
void |
removeRenderingLocation(long bindingId,
org.squashtest.tm.domain.customfield.RenderingLocation location)
Remove the rendering location from a custom field binding
|
findAvailableCustomFields, findAvailableCustomFields, findBoundCustomFields, findCustomFieldsForBoundEntity, findCustomFieldsForGenericProject, findCustomFieldsForProjectAndEntity, findCustomFieldsForProjectAndEntityvoid addNewCustomFieldBinding(long projectId,
org.squashtest.tm.domain.customfield.BindableEntity entity,
long customFieldId,
org.squashtest.tm.domain.customfield.CustomFieldBinding newBinding)
CustomField to a Project. The details and conditions of that binding is described
in the CustomFieldBinding newBinding. The new binding will be inserted last.projectId - customFieldId - entity - newBinding - void addRenderingLocation(long bindingId,
org.squashtest.tm.domain.customfield.RenderingLocation location)
bindingId - location - void removeRenderingLocation(long bindingId,
org.squashtest.tm.domain.customfield.RenderingLocation location)
bindingId - location - void removeCustomFieldBindings(List<Long> bindingIds)
void removeCustomFieldBindings(Long projectId)
projectId - the id of the projectvoid moveCustomFieldbindings(List<Long> bindingIds, int newIndex)
CustomFieldBindings, will reorder them with respect to their project and bound entity.
This method assumes that they all bind the same entity to the same project. If the input list mixes binding for
different projects and/or entities, unexpected behavior may occur.bindingIds - newIndex - void copyCustomFieldsSettingsFromTemplate(org.squashtest.tm.domain.project.GenericProject target,
org.squashtest.tm.domain.project.GenericProject source)
target - source - Copyright © 2010–2017 Henix, henix.fr. All rights reserved.