Package io.mateu.mdd.core.model
Class GeneralRepositoryImpl
- java.lang.Object
-
- io.mateu.mdd.core.model.GeneralRepositoryImpl
-
- All Implemented Interfaces:
io.mateu.util.interfaces.GeneralRepository
public class GeneralRepositoryImpl extends Object implements io.mateu.util.interfaces.GeneralRepository
-
-
Constructor Summary
Constructors Constructor Description GeneralRepositoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.mateu.mdd.shared.interfaces.UserPrincipalauthenticate(String login, String password)voidchangePassword(String login, String currentPassword, String newPassword)voidcreateUser(String login, String email, String name, String avatarUrl)List<io.mateu.util.interfaces.IIcon>findAllIcons()io.mateu.mdd.shared.interfaces.UserPrincipalfindUser(String login)io.mateu.mdd.shared.interfaces.UserPrincipalfindUserByPasswordResetKey(String key)io.mateu.util.interfaces.AuditRecordgetNewAudit()io.mateu.mdd.shared.interfaces.IResourcegetNewResource()io.mateu.util.interfaces.TranslatedgetNewTranslated()voidrecoverPassword(String login)voidsetPassword(String key, String password)voidupdateUser(String login, String name, String email, io.mateu.mdd.shared.interfaces.IResource photo)
-
-
-
Method Detail
-
findUser
public io.mateu.mdd.shared.interfaces.UserPrincipal findUser(String login)
- Specified by:
findUserin interfaceio.mateu.util.interfaces.GeneralRepository
-
getNewResource
public io.mateu.mdd.shared.interfaces.IResource getNewResource()
- Specified by:
getNewResourcein interfaceio.mateu.util.interfaces.GeneralRepository
-
getNewTranslated
public io.mateu.util.interfaces.Translated getNewTranslated()
- Specified by:
getNewTranslatedin interfaceio.mateu.util.interfaces.GeneralRepository
-
findUserByPasswordResetKey
public io.mateu.mdd.shared.interfaces.UserPrincipal findUserByPasswordResetKey(String key) throws Throwable
- Specified by:
findUserByPasswordResetKeyin interfaceio.mateu.util.interfaces.GeneralRepository- Throws:
Throwable
-
setPassword
public void setPassword(String key, String password) throws Throwable
- Specified by:
setPasswordin interfaceio.mateu.util.interfaces.GeneralRepository- Throws:
Throwable
-
createUser
public void createUser(String login, String email, String name, String avatarUrl) throws Throwable
- Specified by:
createUserin interfaceio.mateu.util.interfaces.GeneralRepository- Throws:
Throwable
-
changePassword
public void changePassword(String login, String currentPassword, String newPassword) throws Throwable
- Specified by:
changePasswordin interfaceio.mateu.util.interfaces.GeneralRepository- Throws:
Throwable
-
updateUser
public void updateUser(String login, String name, String email, io.mateu.mdd.shared.interfaces.IResource photo) throws Throwable
- Specified by:
updateUserin interfaceio.mateu.util.interfaces.GeneralRepository- Throws:
Throwable
-
findAllIcons
public List<io.mateu.util.interfaces.IIcon> findAllIcons() throws Throwable
- Specified by:
findAllIconsin interfaceio.mateu.util.interfaces.GeneralRepository- Throws:
Throwable
-
authenticate
public io.mateu.mdd.shared.interfaces.UserPrincipal authenticate(String login, String password) throws Throwable
- Specified by:
authenticatein interfaceio.mateu.util.interfaces.GeneralRepository- Throws:
Throwable
-
recoverPassword
public void recoverPassword(String login) throws Throwable
- Specified by:
recoverPasswordin interfaceio.mateu.util.interfaces.GeneralRepository- Throws:
Throwable
-
-