Search in sources :

Example 1 with UpdatePartnerHandler

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);
}
Also used : PartnerDTO(org.activityinfo.legacy.shared.model.PartnerDTO) UpdatePartnerHandler(org.activityinfo.server.command.handler.UpdatePartnerHandler) UpdatePartner(org.activityinfo.legacy.shared.command.UpdatePartner)

Aggregations

UpdatePartner (org.activityinfo.legacy.shared.command.UpdatePartner)1 PartnerDTO (org.activityinfo.legacy.shared.model.PartnerDTO)1 UpdatePartnerHandler (org.activityinfo.server.command.handler.UpdatePartnerHandler)1