blob: 9bcf6145a60bb5867dd8193258238416ab341ae6 [file] [log] [blame]
margaretha69e8adc2018-03-15 15:14:22 +01001package de.ids_mannheim.korap.interfaces;
Michael Hanlca740d72015-06-16 10:04:58 +02002
3import de.ids_mannheim.korap.exceptions.EmptyResultException;
Michael Hanl482f30d2015-09-25 12:39:46 +02004import de.ids_mannheim.korap.exceptions.KustvaktException;
Michael Hanlca740d72015-06-16 10:04:58 +02005import de.ids_mannheim.korap.user.User;
Michael Hanlca740d72015-06-16 10:04:58 +02006
7/**
8 * User: hanl
9 * Date: 8/19/13
10 * Time: 11:04 AM
11 */
12public interface EntityHandlerIface {
Michael Hanlca740d72015-06-16 10:04:58 +020013
Michael Hanl8abaf9e2016-05-23 16:46:35 +020014 User getAccount (String username) throws EmptyResultException,
15 KustvaktException;
Michael Hanlca740d72015-06-16 10:04:58 +020016
Michael Hanlca740d72015-06-16 10:04:58 +020017
Michael Hanl8abaf9e2016-05-23 16:46:35 +020018 int updateAccount (User user) throws KustvaktException;
Michael Hanlca740d72015-06-16 10:04:58 +020019
Michael Hanlca740d72015-06-16 10:04:58 +020020
Michael Hanl8abaf9e2016-05-23 16:46:35 +020021 int createAccount (User user) throws KustvaktException;
Michael Hanldaf86602016-05-12 14:31:52 +020022
Michael Hanl8abaf9e2016-05-23 16:46:35 +020023
24 int deleteAccount (Integer userid) throws KustvaktException;
25
26
27 int truncate () throws KustvaktException;
28
29
30 int resetPassphrase (String username, String uriToken, String passphrase)
Michael Hanl4f9002d2016-01-27 23:21:45 +010031 throws KustvaktException;
Michael Hanlca740d72015-06-16 10:04:58 +020032
Michael Hanl8abaf9e2016-05-23 16:46:35 +020033
34 int activateAccount (String username, String uriToken)
Michael Hanl482f30d2015-09-25 12:39:46 +020035 throws KustvaktException;
Michael Hanlca740d72015-06-16 10:04:58 +020036}