use of org.activityinfo.server.command.handler.UpdatePartnerHandler in project activityinfo by bedatadriven.
the class UserDatabasePolicy method addDefaultPartner.
private void addDefaultPartner(int databaseId, User user) {
PartnerDTO partner = new PartnerDTO();
partner.setName(PartnerDTO.DEFAULT_PARTNER_NAME);
UpdatePartner command = new UpdatePartner(databaseId, partner);
new UpdatePartnerHandler(em).execute(command, user);
}
Aggregations