add-webspace-gid-and-create-webspace-main-user #94

Merged
hsh-michaelhoennig merged 6 commits from add-webspace-gid-and-create-webspace-main-user into master 2024-09-03 10:28:58 +02:00
Showing only changes of commit f2f43b9eba - Show all commits

View File

@ -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)
hsh-michaelhoennig marked this conversation as resolved
Review

kann weg

kann weg
.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;
}
}