|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squashtest.tm.service.internal.customfield.PrivateCustomFieldValueServiceImpl
@Service(value="squashtest.tm.service.CustomFieldValueManagerService") @Transactional public class PrivateCustomFieldValueServiceImpl
| Constructor Summary | |
|---|---|
PrivateCustomFieldValueServiceImpl()
|
|
| Method Summary | |
|---|---|
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,
String 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 |
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)
Will create all the custom field values for one entity. |
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. |
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrivateCustomFieldValueServiceImpl()
| Method Detail |
|---|
public void setPermissionService(PermissionEvaluationService permissionService)
@Transactional(readOnly=true) public boolean hasCustomFields(org.squashtest.tm.domain.customfield.BoundEntity boundEntity)
CustomFieldValueFinderService
hasCustomFields 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 id
hasCustomFields in interface CustomFieldValueFinderService@Transactional(readOnly=true) public List<org.squashtest.tm.domain.customfield.CustomFieldValue> findAllCustomFieldValues(org.squashtest.tm.domain.customfield.BoundEntity boundEntity)
CustomFieldValueFinderService
findAllCustomFieldValues 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 CustomFieldValueFinderService
public 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)
PrivateCustomFieldValueService
cascadeCustomFieldValuesCreation in interface PrivateCustomFieldValueServicepublic void cascadeCustomFieldValuesDeletion(org.squashtest.tm.domain.customfield.CustomFieldBinding binding)
PrivateCustomFieldValueService
cascadeCustomFieldValuesDeletion in interface PrivateCustomFieldValueServicepublic void cascadeCustomFieldValuesDeletion(List<Long> customFieldBindingIds)
PrivateCustomFieldValueService
cascadeCustomFieldValuesDeletion in interface PrivateCustomFieldValueServicepublic void createAllCustomFieldValues(org.squashtest.tm.domain.customfield.BoundEntity entity)
PrivateCustomFieldValueService
createAllCustomFieldValues in interface PrivateCustomFieldValueServicepublic void deleteAllCustomFieldValues(org.squashtest.tm.domain.customfield.BoundEntity entity)
PrivateCustomFieldValueService
deleteAllCustomFieldValues in interface PrivateCustomFieldValueService
public void deleteAllCustomFieldValues(org.squashtest.tm.domain.customfield.BindableEntity entityType,
List<Long> entityIds)
PrivateCustomFieldValueService
deleteAllCustomFieldValues in interface PrivateCustomFieldValueServiceentityType - the BindableEntity that all of the BoundEntity must shareentityIds - the ids of those BoundEntities
public void copyCustomFieldValues(org.squashtest.tm.domain.customfield.BoundEntity source,
org.squashtest.tm.domain.customfield.BoundEntity recipient)
PrivateCustomFieldValueService
copyCustomFieldValues in interface PrivateCustomFieldValueService
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 PrivateCustomFieldValueService
public void changeValue(long customFieldValueId,
String 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)
PrivateCustomFieldValueService
migrateCustomFieldValues in interface PrivateCustomFieldValueServicepublic void migrateCustomFieldValues(Collection<org.squashtest.tm.domain.customfield.BoundEntity> entities)
PrivateCustomFieldValueServicePrivateCustomFieldValueService.migrateCustomFieldValues(BoundEntity), batched version.
migrateCustomFieldValues in interface PrivateCustomFieldValueService
public boolean areValuesEditable(long boundEntityId,
org.squashtest.tm.domain.customfield.BindableEntity bindableEntity)
CustomFieldValueFinderService
areValuesEditable in interface CustomFieldValueFinderServiceCustomFieldValueFinderService.areValuesEditable(long,
org.squashtest.tm.domain.customfield.BindableEntity)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||