Class GeneralRepositoryImpl

  • All Implemented Interfaces:
    io.mateu.util.interfaces.GeneralRepository

    public class GeneralRepositoryImpl
    extends Object
    implements io.mateu.util.interfaces.GeneralRepository
    • Constructor Detail

      • GeneralRepositoryImpl

        public GeneralRepositoryImpl()
    • Method Detail

      • findUser

        public io.mateu.mdd.shared.interfaces.UserPrincipal findUser​(String login)
        Specified by:
        findUser in interface io.mateu.util.interfaces.GeneralRepository
      • getNewResource

        public io.mateu.mdd.shared.interfaces.IResource getNewResource()
        Specified by:
        getNewResource in interface io.mateu.util.interfaces.GeneralRepository
      • getNewTranslated

        public io.mateu.util.interfaces.Translated getNewTranslated()
        Specified by:
        getNewTranslated in interface io.mateu.util.interfaces.GeneralRepository
      • findUserByPasswordResetKey

        public io.mateu.mdd.shared.interfaces.UserPrincipal findUserByPasswordResetKey​(String key)
                                                                                throws Throwable
        Specified by:
        findUserByPasswordResetKey in interface io.mateu.util.interfaces.GeneralRepository
        Throws:
        Throwable
      • setPassword

        public void setPassword​(String key,
                                String password)
                         throws Throwable
        Specified by:
        setPassword in interface io.mateu.util.interfaces.GeneralRepository
        Throws:
        Throwable
      • createUser

        public void createUser​(String login,
                               String email,
                               String name,
                               String avatarUrl)
                        throws Throwable
        Specified by:
        createUser in interface io.mateu.util.interfaces.GeneralRepository
        Throws:
        Throwable
      • changePassword

        public void changePassword​(String login,
                                   String currentPassword,
                                   String newPassword)
                            throws Throwable
        Specified by:
        changePassword in interface io.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:
        updateUser in interface io.mateu.util.interfaces.GeneralRepository
        Throws:
        Throwable
      • findAllIcons

        public List<io.mateu.util.interfaces.IIcon> findAllIcons()
                                                          throws Throwable
        Specified by:
        findAllIcons in interface io.mateu.util.interfaces.GeneralRepository
        Throws:
        Throwable
      • authenticate

        public io.mateu.mdd.shared.interfaces.UserPrincipal authenticate​(String login,
                                                                         String password)
                                                                  throws Throwable
        Specified by:
        authenticate in interface io.mateu.util.interfaces.GeneralRepository
        Throws:
        Throwable
      • recoverPassword

        public void recoverPassword​(String login)
                             throws Throwable
        Specified by:
        recoverPassword in interface io.mateu.util.interfaces.GeneralRepository
        Throws:
        Throwable
      • getNewAudit

        public io.mateu.util.interfaces.AuditRecord getNewAudit()
                                                         throws Throwable
        Specified by:
        getNewAudit in interface io.mateu.util.interfaces.GeneralRepository
        Throws:
        Throwable