|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CustomFieldBindingModificationService
An interface for services around CustomField.
The user calling the following methods must have a role 'admin' or 'project manager'.
| Method Summary | |
|---|---|
void |
addNewCustomFieldBinding(long projectId,
BindableEntity entity,
long customFieldId,
CustomFieldBinding newBinding)
Will attach a CustomField to a Project. |
void |
copyCustomFieldsSettingsFromTemplate(Project newProject,
ProjectTemplate projectTemplate)
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. |
| Methods inherited from interface org.squashtest.csp.tm.service.customfield.CustomFieldBindingFinderService |
|---|
findAvailableCustomFields, findAvailableCustomFields, findCustomFieldsForBoundEntity, findCustomFieldsForGenericProject, findCustomFieldsForProjectAndEntity, findCustomFieldsForProjectAndEntity |
| Method Detail |
|---|
void addNewCustomFieldBinding(long projectId,
BindableEntity entity,
long customFieldId,
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 removeCustomFieldBindings(List<Long> bindingIds)
void removeCustomFieldBindings(Long projectId)
projectId - the id of the project
void 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(Project newProject,
ProjectTemplate projectTemplate)
newProject - projectTemplate -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||