add-webspace-gid-and-create-webspace-main-user #94
@ -38,7 +38,6 @@ class HsManagedWebspaceHostingAssetValidator extends HostingAssetEntityValidator
|
||||
.caption(webspaceAsset.getIdentifier() + " webspace user")
|
||||
.build();
|
||||
webspaceAsset.getSubHostingAssets().add(unixUserAsset);
|
||||
final var emw = new EntityManagerWrapper(em);
|
||||
new HostingAssetEntitySaveProcessor(em, unixUserAsset)
|
||||
hsh-michaelhoennig marked this conversation as resolved
|
||||
.preprocessEntity()
|
||||
.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
kann weg