create pac-domain

This commit is contained in:
Peter Hormanns 2011-07-14 16:51:06 +00:00
parent d8268ddb71
commit 264870dec3

View File

@ -100,12 +100,13 @@ public class PacModuleImpl extends AbstractModuleImpl {
if (maxUid >= nUID) nUID = maxUid + 1;
admin.setUserId(nUID);
users.add(admin);
AbstractEntity newPacEntity = super.add(newEntity);
GenericModuleImpl helperModule = new GenericModuleImpl(getTransaction());
Domain pacDomain = new Domain();
pacDomain.setName(pac.getName() + ".hostsharing.net");
pacDomain.setUser(admin);
helperModule.add(pacDomain);
return super.add(newEntity);
return newPacEntity;
}
@Override