Class User

  • All Implemented Interfaces:
    io.mateu.mdd.shared.interfaces.UserPrincipal, io.mateu.util.interfaces.EditorViewStyler
    Direct Known Subclasses:
    AdminUser

    @Entity
    public class User
    extends Object
    implements io.mateu.util.interfaces.EditorViewStyler, io.mateu.mdd.shared.interfaces.UserPrincipal
    holder for users of our common. It can be an internal user or a user created for a customer or a supplier Created by miguel on 13/9/16.
    • Constructor Detail

      • User

        public User()
    • Method Detail

      • setPassword

        public void setPassword​(String password)
      • checkPassword

        public boolean checkPassword​(String password)
      • setLogin

        public void setLogin​(String login)
      • prePersist

        public void prePersist()
      • resetPassword

        public void resetPassword()
      • sendWelcomeEmail

        public String sendWelcomeEmail​(javax.persistence.EntityManager em)
                                throws Throwable
        Throws:
        Throwable
      • sendForgottenPasswordEmail

        public String sendForgottenPasswordEmail​(javax.persistence.EntityManager em)
                                          throws Throwable
        Throws:
        Throwable
      • post

        public void post()
      • hasPermission

        public boolean hasPermission​(long permissionId)
      • apply

        public void apply​(com.vaadin.ui.Component editorViewComponent)
        Specified by:
        apply in interface io.mateu.util.interfaces.EditorViewStyler
      • getRoles

        public List<String> getRoles()
        Specified by:
        getRoles in interface io.mateu.mdd.shared.interfaces.UserPrincipal
      • getPhoto

        public URL getPhoto()
        Specified by:
        getPhoto in interface io.mateu.mdd.shared.interfaces.UserPrincipal