Class UserId

java.lang.Object
org.imixs.marty.security.UserId
All Implemented Interfaces:
Serializable

@Entity public class UserId extends Object implements Serializable
User object to provide a database for username/password/groups. The user object is managed by the UserDBPlugin.
Author:
rsoika
See Also:
  • Constructor Details

    • UserId

      public UserId()
      default constructor for JPA
    • UserId

      public UserId(String aid)
      A User will be automatically initialized with an id and password
    • UserId

      public UserId(String id, String password)
  • Method Details

    • getId

      public String getId()
      returns the unique identifier for the Entity.
      Returns:
      universal id
    • setId

      protected void setId(String aID)
    • getPassword

      public String getPassword()
    • setPassword

      public void setPassword(String password)
      Set the password.
      Parameters:
      password -
    • getUserGroups

      public Set<UserGroup> getUserGroups()
      It is important to rename the joinColum to 'ID' so the GlassFish jdbcRealm configuration will work on this colum
      Returns:
    • setUserGroups

      public void setUserGroups(Set<UserGroup> groups)