23 lines
991 B
Java
23 lines
991 B
Java
package gr.cite.notification.service.user;
|
|
|
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
|
import gr.cite.notification.integrationevent.inbox.usertouched.UserTouchedIntegrationEvent;
|
|
import gr.cite.notification.model.User;
|
|
import gr.cite.notification.model.persist.UserTouchedIntegrationEventPersist;
|
|
import gr.cite.tools.exception.MyApplicationException;
|
|
import gr.cite.tools.exception.MyForbiddenException;
|
|
import gr.cite.tools.exception.MyNotFoundException;
|
|
import gr.cite.tools.exception.MyValidationException;
|
|
import gr.cite.tools.fieldset.FieldSet;
|
|
|
|
import javax.management.InvalidApplicationException;
|
|
import java.util.UUID;
|
|
|
|
public interface UserService {
|
|
|
|
User persist(UserTouchedIntegrationEvent model, FieldSet fields) throws MyForbiddenException, MyValidationException, MyApplicationException, MyNotFoundException, InvalidApplicationException, JsonProcessingException;
|
|
|
|
void deleteAndSave(UUID id) throws MyForbiddenException, InvalidApplicationException;
|
|
|
|
}
|