create pac-domain
This commit is contained in:
parent
d8268ddb71
commit
264870dec3
@ -100,12 +100,13 @@ public class PacModuleImpl extends AbstractModuleImpl {
|
|||||||
if (maxUid >= nUID) nUID = maxUid + 1;
|
if (maxUid >= nUID) nUID = maxUid + 1;
|
||||||
admin.setUserId(nUID);
|
admin.setUserId(nUID);
|
||||||
users.add(admin);
|
users.add(admin);
|
||||||
|
AbstractEntity newPacEntity = super.add(newEntity);
|
||||||
GenericModuleImpl helperModule = new GenericModuleImpl(getTransaction());
|
GenericModuleImpl helperModule = new GenericModuleImpl(getTransaction());
|
||||||
Domain pacDomain = new Domain();
|
Domain pacDomain = new Domain();
|
||||||
pacDomain.setName(pac.getName() + ".hostsharing.net");
|
pacDomain.setName(pac.getName() + ".hostsharing.net");
|
||||||
pacDomain.setUser(admin);
|
pacDomain.setUser(admin);
|
||||||
helperModule.add(pacDomain);
|
helperModule.add(pacDomain);
|
||||||
return super.add(newEntity);
|
return newPacEntity;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user