@Service(value="squashtest.tm.service.CustomFieldValueManagerService") @Transactional public class PrivateCustomFieldValueServiceImpl extends Object implements PrivateCustomFieldValueService
| Constructor and Description |
|---|
PrivateCustomFieldValueServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areValuesEditable(long boundEntityId,
org.squashtest.tm.domain.customfield.BindableEntity bindableEntity)
Tells if the CF values of the given entity are editable, according to both security rules and sensible business
rules.
|
void |
cascadeCustomFieldValuesCreation(org.squashtest.tm.domain.customfield.CustomFieldBinding binding)
Will create a custom field value for all the entities affected by the given binding
|
void |
cascadeCustomFieldValuesDeletion(org.squashtest.tm.domain.customfield.CustomFieldBinding binding)
Will remove the custom field values corresponding to the given binding
|
void |
cascadeCustomFieldValuesDeletion(List<Long> customFieldBindingIds)
Will remove the custom field values corresponding to the bindings, given their ids.
|
void |
changeValue(long customFieldValueId,
org.squashtest.tm.domain.customfield.RawValue newValue)
Will update the value of a
CustomFieldValue using its Id. |
void |
copyCustomFieldValues(org.squashtest.tm.domain.customfield.BoundEntity source,
org.squashtest.tm.domain.customfield.BoundEntity recipient)
Will copy the custom field values from an entity to another entity, creating them in the process
|
void |
copyCustomFieldValues(Map<Long,org.squashtest.tm.domain.customfield.BoundEntity> copiedEntityBySourceId,
org.squashtest.tm.domain.customfield.BindableEntity bindableEntityType)
*Will copy the custom field values from entities to others, creating them in the process
|
void |
copyCustomFieldValuesContent(org.squashtest.tm.domain.customfield.BoundEntity source,
org.squashtest.tm.domain.customfield.BoundEntity recipient)
Will copy the custom field values from an entity to another entity.
|
void |
createAllCustomFieldValues(org.squashtest.tm.domain.customfield.BoundEntity entity,
org.squashtest.tm.domain.project.Project project)
Will create all the custom field values for one entity.
|
void |
createAllCustomFieldValues(Collection<? extends org.squashtest.tm.domain.customfield.BoundEntity> entities,
org.squashtest.tm.domain.project.Project p)
batched version of
PrivateCustomFieldValueService.createAllCustomFieldValues(BoundEntity, Project). |
void |
deleteAllCustomFieldValues(org.squashtest.tm.domain.customfield.BindableEntity entityType,
List<Long> entityIds)
Will delete all the custom field values for multiple BoundEntities
|
void |
deleteAllCustomFieldValues(org.squashtest.tm.domain.customfield.BoundEntity entity)
will delete all the custom field vales for one entity
|
List<org.squashtest.tm.domain.customfield.CustomFieldValue> |
findAllCustomFieldValues(org.squashtest.tm.domain.customfield.BoundEntity boundEntity)
Will return the list of the custom field values associated to the specified bound entity.
|
List<org.squashtest.tm.domain.customfield.CustomFieldValue> |
findAllCustomFieldValues(Collection<? extends org.squashtest.tm.domain.customfield.BoundEntity> boundEntities)
Same as
CustomFieldValueFinderService.findAllCustomFieldValues(BoundEntity), using a List of entities instead. |
List<org.squashtest.tm.domain.customfield.CustomFieldValue> |
findAllCustomFieldValues(Collection<? extends org.squashtest.tm.domain.customfield.BoundEntity> boundEntities,
Collection<org.squashtest.tm.domain.customfield.CustomField> restrictedToThoseCustomfields)
Same as
CustomFieldValueFinderService.findAllCustomFieldValues(Collection), but only the values refering to one of the custom fields
given as argument will be retained. |
List<org.squashtest.tm.domain.customfield.CustomFieldValue> |
findAllCustomFieldValues(long boundEntityId,
org.squashtest.tm.domain.customfield.BindableEntity bindableEntity)
Same as
CustomFieldValueFinderService.findAllCustomFieldValues(BoundEntity), but the properties identifying a BoundEntity are broken
down into its ID and type. |
List<org.squashtest.tm.domain.customfield.CustomFieldValue> |
findAllForEntityAndRenderingLocation(org.squashtest.tm.domain.customfield.BoundEntity boundEntity,
org.squashtest.tm.domain.customfield.RenderingLocation renderingLocation) |
boolean |
hasCustomFields(org.squashtest.tm.domain.customfield.BoundEntity boundEntity)
Tells whether the given bound entity has custom fields or not.
|
boolean |
hasCustomFields(Long boundEntityId,
org.squashtest.tm.domain.customfield.BindableEntity bindableEntity)
Same as
CustomFieldValueFinderService.hasCustomFields(BoundEntity), the bound entity being identified by its type and id |
void |
migrateCustomFieldValues(org.squashtest.tm.domain.customfield.BoundEntity entity)
Will ensure that the custom field values of an entity are consistent with the custom fields bound to the project
it belongs to, at the time when the method is invoked.
|
void |
migrateCustomFieldValues(Collection<org.squashtest.tm.domain.customfield.BoundEntity> entities)
Same as
PrivateCustomFieldValueService.migrateCustomFieldValues(BoundEntity), batched version. |
void |
setPermissionService(PermissionEvaluationService permissionService) |
public void setPermissionService(PermissionEvaluationService permissionService)
@Transactional(readOnly=true) public boolean hasCustomFields(org.squashtest.tm.domain.customfield.BoundEntity boundEntity)
CustomFieldValueFinderServicehasCustomFields in interface CustomFieldValueFinderService@Transactional(readOnly=true) public boolean hasCustomFields(Long boundEntityId, org.squashtest.tm.domain.customfield.BindableEntity bindableEntity)
CustomFieldValueFinderServiceCustomFieldValueFinderService.hasCustomFields(BoundEntity), the bound entity being identified by its type and idhasCustomFields in interface CustomFieldValueFinderService@Transactional(readOnly=true) public List<org.squashtest.tm.domain.customfield.CustomFieldValue> findAllCustomFieldValues(org.squashtest.tm.domain.customfield.BoundEntity boundEntity)
CustomFieldValueFinderServicefindAllCustomFieldValues in interface CustomFieldValueFinderService@Transactional(readOnly=true) public List<org.squashtest.tm.domain.customfield.CustomFieldValue> findAllCustomFieldValues(long boundEntityId, org.squashtest.tm.domain.customfield.BindableEntity bindableEntity)
CustomFieldValueFinderServiceCustomFieldValueFinderService.findAllCustomFieldValues(BoundEntity), but the properties identifying a BoundEntity are broken
down into its ID and type.findAllCustomFieldValues in interface CustomFieldValueFinderServicepublic List<org.squashtest.tm.domain.customfield.CustomFieldValue> findAllCustomFieldValues(Collection<? extends org.squashtest.tm.domain.customfield.BoundEntity> boundEntities)
CustomFieldValueFinderServiceCustomFieldValueFinderService.findAllCustomFieldValues(BoundEntity), using a List of entities instead. This method is pure
convenience, to fetch custom fields in bulk (and soften the db queries overhead).
The order of the result is arbitrary.findAllCustomFieldValues in interface CustomFieldValueFinderServicepublic List<org.squashtest.tm.domain.customfield.CustomFieldValue> findAllCustomFieldValues(Collection<? extends org.squashtest.tm.domain.customfield.BoundEntity> boundEntities, Collection<org.squashtest.tm.domain.customfield.CustomField> restrictedToThoseCustomfields)
CustomFieldValueFinderServiceCustomFieldValueFinderService.findAllCustomFieldValues(Collection), but only the values refering to one of the custom fields
given as argument will be retained.findAllCustomFieldValues in interface CustomFieldValueFinderServicepublic void cascadeCustomFieldValuesCreation(org.squashtest.tm.domain.customfield.CustomFieldBinding binding)
PrivateCustomFieldValueServicecascadeCustomFieldValuesCreation in interface PrivateCustomFieldValueServicepublic void cascadeCustomFieldValuesDeletion(org.squashtest.tm.domain.customfield.CustomFieldBinding binding)
PrivateCustomFieldValueServicecascadeCustomFieldValuesDeletion in interface PrivateCustomFieldValueServicepublic void cascadeCustomFieldValuesDeletion(List<Long> customFieldBindingIds)
PrivateCustomFieldValueServicecascadeCustomFieldValuesDeletion in interface PrivateCustomFieldValueServicepublic void createAllCustomFieldValues(org.squashtest.tm.domain.customfield.BoundEntity entity,
org.squashtest.tm.domain.project.Project project)
PrivateCustomFieldValueServicecreateAllCustomFieldValues in interface PrivateCustomFieldValueServiceproject - . If null, the project of the given entity will be used.public void createAllCustomFieldValues(Collection<? extends org.squashtest.tm.domain.customfield.BoundEntity> entities, org.squashtest.tm.domain.project.Project p)
PrivateCustomFieldValueServicePrivateCustomFieldValueService.createAllCustomFieldValues(BoundEntity, Project).
The entities are assumed to be all of the same concrete class and of the
same project.createAllCustomFieldValues in interface PrivateCustomFieldValueServicepublic void deleteAllCustomFieldValues(org.squashtest.tm.domain.customfield.BoundEntity entity)
PrivateCustomFieldValueServicedeleteAllCustomFieldValues in interface PrivateCustomFieldValueServicepublic void deleteAllCustomFieldValues(org.squashtest.tm.domain.customfield.BindableEntity entityType,
List<Long> entityIds)
PrivateCustomFieldValueServicedeleteAllCustomFieldValues in interface PrivateCustomFieldValueServiceentityType - the BindableEntity that all of the BoundEntity must shareentityIds - the ids of those BoundEntitiespublic void copyCustomFieldValues(org.squashtest.tm.domain.customfield.BoundEntity source,
org.squashtest.tm.domain.customfield.BoundEntity recipient)
PrivateCustomFieldValueServicecopyCustomFieldValues in interface PrivateCustomFieldValueServicesource - : the BoundEntity from witch the cuf are copiedrecipient - : the BoundEntitypublic boolean areValuesEditable(long boundEntityId,
org.squashtest.tm.domain.customfield.BindableEntity bindableEntity)
CustomFieldValueFinderServiceareValuesEditable in interface CustomFieldValueFinderServiceCustomFieldValueFinderService.areValuesEditable(long,
org.squashtest.tm.domain.customfield.BindableEntity)public List<org.squashtest.tm.domain.customfield.CustomFieldValue> findAllForEntityAndRenderingLocation(org.squashtest.tm.domain.customfield.BoundEntity boundEntity, org.squashtest.tm.domain.customfield.RenderingLocation renderingLocation)
findAllForEntityAndRenderingLocation in interface CustomFieldValueFinderServicepublic void copyCustomFieldValues(Map<Long,org.squashtest.tm.domain.customfield.BoundEntity> copiedEntityBySourceId, org.squashtest.tm.domain.customfield.BindableEntity bindableEntityType)
PrivateCustomFieldValueServicecopyCustomFieldValues in interface PrivateCustomFieldValueServicecopiedEntityBySourceId - : a Map with
bindableEntityType - : the BindableEntity type for all BoundEntity in the "copiedEntityBySource" map.PrivateCustomFieldValueService.copyCustomFieldValues(Map, BindableEntity)public void copyCustomFieldValuesContent(org.squashtest.tm.domain.customfield.BoundEntity source,
org.squashtest.tm.domain.customfield.BoundEntity recipient)
PrivateCustomFieldValueServiceCustomFieldValue.setValue(String) from one to the other.copyCustomFieldValuesContent in interface PrivateCustomFieldValueServicepublic void changeValue(long customFieldValueId,
org.squashtest.tm.domain.customfield.RawValue newValue)
CustomFieldValueManagerServiceCustomFieldValue using its Id. The service will check that the requestor has
the correct credentials.changeValue in interface CustomFieldValueManagerServicepublic void migrateCustomFieldValues(org.squashtest.tm.domain.customfield.BoundEntity entity)
PrivateCustomFieldValueServicemigrateCustomFieldValues in interface PrivateCustomFieldValueServicepublic void migrateCustomFieldValues(Collection<org.squashtest.tm.domain.customfield.BoundEntity> entities)
PrivateCustomFieldValueServicePrivateCustomFieldValueService.migrateCustomFieldValues(BoundEntity), batched version.migrateCustomFieldValues in interface PrivateCustomFieldValueServiceCopyright © 2010–2017 Henix, henix.fr. All rights reserved.