cleanup after code-review
This commit is contained in:
parent
75c3c6f716
commit
f2f43b9eba
@ -38,7 +38,6 @@ class HsManagedWebspaceHostingAssetValidator extends HostingAssetEntityValidator
|
|||||||
.caption(webspaceAsset.getIdentifier() + " webspace user")
|
.caption(webspaceAsset.getIdentifier() + " webspace user")
|
||||||
.build();
|
.build();
|
||||||
webspaceAsset.getSubHostingAssets().add(unixUserAsset);
|
webspaceAsset.getSubHostingAssets().add(unixUserAsset);
|
||||||
final var emw = new EntityManagerWrapper(em);
|
|
||||||
new HostingAssetEntitySaveProcessor(em, unixUserAsset)
|
new HostingAssetEntitySaveProcessor(em, unixUserAsset)
|
||||||
.preprocessEntity()
|
.preprocessEntity()
|
||||||
.validateEntity()
|
.validateEntity()
|
||||||
@ -49,11 +48,3 @@ class HsManagedWebspaceHostingAssetValidator extends HostingAssetEntityValidator
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
record EntityManagerWrapper(EntityManager em) {
|
|
||||||
|
|
||||||
HsHostingAsset persist(HsHostingAsset hsHostingAsset) {
|
|
||||||
em.persist(hsHostingAsset);
|
|
||||||
return hsHostingAsset;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user