Class UserRole

java.lang.Object
io.goobi.viewer.model.security.user.UserRole
All Implemented Interfaces:
Serializable

@Entity public class UserRole extends Object implements Serializable
Objects that map roles to users within a user group.
See Also:
  • Constructor Details

    • UserRole

      public UserRole()
      Empty constructor.
    • UserRole

      public UserRole(UserGroup userGroup, User user, Role role)

      Constructor for UserRole.

      Parameters:
      userGroup - a UserGroup object.
      user - a User object.
      role - a Role object.
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getId

      public Long getId()

      Getter for the field id.

      Returns:
      the id
    • setId

      public void setId(Long id)

      Setter for the field id.

      Parameters:
      id - the id to set
    • getUserGroup

      public UserGroup getUserGroup()

      Getter for the field userGroup.

      Returns:
      the userGroup
    • setUserGroup

      public void setUserGroup(UserGroup userGroup)

      Setter for the field userGroup.

      Parameters:
      userGroup - the userGroup to set
    • getUser

      public User getUser()

      Getter for the field user.

      Returns:
      the user
    • setUser

      public void setUser(User user)

      Setter for the field user.

      Parameters:
      user - the user to set
    • getRole

      public Role getRole()

      Getter for the field role.

      Returns:
      the role
    • setRole

      public void setRole(Role role)

      Setter for the field role.

      Parameters:
      role - the role to set
    • toString

      public String toString()
      Overrides:
      toString in class Object