Class IpRange

java.lang.Object
io.goobi.viewer.model.security.user.AbstractLicensee
io.goobi.viewer.model.security.user.IpRange
All Implemented Interfaces:
ILicensee, Serializable

@Entity public class IpRange extends AbstractLicensee implements Serializable

IpRange class.

See Also:
  • Constructor Details

    • IpRange

      public IpRange()
  • Method Details

    • hashCode

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

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

      public boolean matchIp(String inIp)

      matchIp.

      Parameters:
      inIp - a String object.
      Returns:
      a boolean.
    • canSatisfyAllAccessConditions

      public AccessPermission canSatisfyAllAccessConditions(Set<String> requiredAccessConditions, List<LicenseType> relevantLicenseTypes, String privilegeName, String pi) throws PresentationException, IndexUnreachableException, DAOException

      canSatisfyAllAccessConditions.

      Parameters:
      requiredAccessConditions - a Set object.
      relevantLicenseTypes - a list of relevant license types. If null, the DAO may be queried to check for any restrictions in OpenAccess
      privilegeName - a String object.
      pi - a String object.
      Returns:
      a boolean.
      Throws:
      PresentationException - if any.
      IndexUnreachableException - if any.
      DAOException - if any.
    • addLicense

      public boolean addLicense(License license)
      Adds the given license to this ILicensee.
      Specified by:
      addLicense in interface ILicensee
      Parameters:
      license - a License object.
      Returns:
      a boolean.
    • removeLicense

      public boolean removeLicense(License license)
      Removes the given license from this ILicensee.
      Specified by:
      removeLicense in interface ILicensee
      Parameters:
      license - a License object.
      Returns:
      a boolean.
    • 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
    • getName

      public String getName()

      getName.

      Specified by:
      getName in interface ILicensee
      Returns:
      a String object.
    • setName

      public void setName(String name)

      Setter for the field name.

      Parameters:
      name - the name to set
    • getSubnetMask

      public String getSubnetMask()

      Getter for the field subnetMask.

      Returns:
      the subnetMask
    • setSubnetMask

      public void setSubnetMask(String subnetMask)

      Setter for the field subnetMask.

      Parameters:
      subnetMask - the subnetMask to set
    • getDescription

      public String getDescription()

      Getter for the field description.

      Returns:
      the description
    • setDescription

      public void setDescription(String description)

      Setter for the field description.

      Parameters:
      description - the description to set
    • getLicenses

      public List<License> getLicenses()

      getLicenses.

      Specified by:
      getLicenses in interface ILicensee
      Returns:
      a List object.
    • setLicenses

      public void setLicenses(List<License> licenses)

      Setter for the field licenses.

      Parameters:
      licenses - the licenses to set
    • main

      public static void main(String[] args)

      main.

      Parameters:
      args - an array of String objects.