Class JpaUserReference

java.lang.Object
org.opencastproject.security.impl.jpa.JpaUserReference

@Entity public class JpaUserReference extends Object
JPA-annotated user reference object.
  • Field Details

    • username

      protected String username
    • name

      protected String name
    • email

      protected String email
    • loginMechanism

      protected String loginMechanism
    • lastLogin

      protected Date lastLogin
    • organization

      protected JpaOrganization organization
    • roles

      protected Set<JpaRole> roles
  • Constructor Details

    • JpaUserReference

      public JpaUserReference()
      No-arg constructor needed by JPA
    • JpaUserReference

      public JpaUserReference(String username, String name, String email, String loginMechanism, Date lastLogin, JpaOrganization organization)
      Constructs a user with the specified username, name, email, login mechanism, last login date and organization.
      Parameters:
      username - the username
      name - the name
      email - the email address
      loginMechanism - the login mechanism
      lastLogin - the last login date
      organization - the organization
    • JpaUserReference

      public JpaUserReference(String username, String name, String email, String loginMechanism, Date lastLogin, JpaOrganization organization, Set<JpaRole> roles)
      Constructs a user with the specified username, name, email, login mechanism, last login date, organization and roles.
      Parameters:
      username - the username
      name - the name
      email - the email address
      loginMechanism - the login mechanism
      lastLogin - the last login date
      organization - the organization
      roles - the roles
  • Method Details