Skip to content
Snippets Groups Projects
Commit cc562acb authored by buczekp's avatar buczekp
Browse files

[LMS-2048] batch update of managed properties for materials with overwriting behaviour

SVN: 19971
parent 83854ce3
No related branches found
No related tags found
No related merge requests found
......@@ -605,6 +605,10 @@ public final class GenericServer extends AbstractServer<IGenericServer> implemen
final Map<String/* code */, Material> existingMaterials =
listMaterials(sessionToken, materialTypeCode);
final Session session = getSession(sessionToken);
final MaterialTypePE materialTypePE = findMaterialType(materialTypeCode);
getPropertiesBatchManager().manageProperties(materialTypePE, newMaterials,
session.tryGetPerson());
IBatchOperation<NewMaterial> strategy = new IBatchOperation<NewMaterial>()
{
public void execute(List<NewMaterial> entities)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment