Class LicenseRightsHolder

java.lang.Object
io.goobi.viewer.model.security.LicenseRightsHolder

@Entity public class LicenseRightsHolder extends Object
Licensee wrapper.
  • Constructor Details

    • LicenseRightsHolder

      public LicenseRightsHolder()
    • LicenseRightsHolder

      public LicenseRightsHolder(License owner)
  • Method Details

    • isDisabled

      public boolean isDisabled()
    • getLicensee

      public ILicensee getLicensee()
    • getId

      public Long getId()
    • setId

      public void setId(Long id)
    • getType

      public License.AccessType getType()
    • getOwner

      public License getOwner()
    • setOwner

      public void setOwner(License owner)
    • setType

      public void setType(License.AccessType type)
    • getUser

      public User getUser()
    • setUser

      public void setUser(User user)
      Parameters:
      user - the user this rights holder represents (clears userGroup, ipRange and client when non-null)
    • getUserGroup

      public UserGroup getUserGroup()
    • setUserGroup

      public void setUserGroup(UserGroup userGroup)
      Parameters:
      userGroup - the user group this rights holder represents (clears user, ipRange and client when non-null)
    • getIpRange

      public IpRange getIpRange()
    • setIpRange

      public void setIpRange(IpRange ipRange)
      Parameters:
      ipRange - the IP range this rights holder represents (clears user, userGroup and client when non-null)
    • getClient

      public ClientApplication getClient()
    • setClient

      public void setClient(ClientApplication client)
    • getClientId

      public Long getClientId()
    • setClientId

      public void setClientId(Long clientId) throws DAOException
      Parameters:
      clientId - the database ID of the client application to associate with this rights holder
      Throws:
      DAOException