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, String privilegeName, String pi) throws PresentationException, IndexUnreachableException, DAOException

      canSatisfyAllAccessConditions.

      Parameters:
      requiredAccessConditions - a Set object.
      privilegeName - a String object.
      pi - a String object.
      Returns:
      a boolean.
      Throws:
      PresentationException - if any.
      IndexUnreachableException - if any.
      DAOException - if any.
    • 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
    • getAccessType

      public License.AccessType getAccessType()
      Specified by:
      getAccessType in interface ILicensee
      Returns:
      AccessType corresponding to the licensee's class
    • main

      public static void main(String[] args)

      main.

      Parameters:
      args - an array of String objects.
    • toString

      public String toString()
      Overrides:
      toString in class Object