Class IpRange
java.lang.Object
io.goobi.viewer.model.security.user.AbstractLicensee
io.goobi.viewer.model.security.user.IpRange
- All Implemented Interfaces:
ILicensee,Serializable
IpRange class.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncanSatisfyAllAccessConditions(Set<String> requiredAccessConditions, String privilegeName, String pi) canSatisfyAllAccessConditions.booleanGetter for the fielddescription.getId()Getter for the fieldid.getName()getName.Getter for the fieldsubnetMask.inthashCode()static voidmain.booleanmatchIp.voidsetDescription(String description) Setter for the fielddescription.voidSetter for the fieldid.voidSetter for the fieldname.voidsetSubnetMask(String subnetMask) Setter for the fieldsubnetMask.toString()Methods inherited from class io.goobi.viewer.model.security.user.AbstractLicensee
getAccessPermissionFromMap, getLicenses, hasLicense
-
Constructor Details
-
IpRange
public IpRange()
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
matchIp
matchIp.
- Parameters:
inIp- aStringobject.- Returns:
- a boolean.
-
canSatisfyAllAccessConditions
public AccessPermission canSatisfyAllAccessConditions(Set<String> requiredAccessConditions, String privilegeName, String pi) throws PresentationException, IndexUnreachableException, DAOException canSatisfyAllAccessConditions.
- Parameters:
requiredAccessConditions- aSetobject.privilegeName- aStringobject.pi- aStringobject.- Returns:
- a boolean.
- Throws:
PresentationException- if any.IndexUnreachableException- if any.DAOException- if any.
-
getId
Getter for the field
id.- Returns:
- the id
-
setId
Setter for the field
id.- Parameters:
id- the id to set
-
getName
getName.
-
setName
Setter for the field
name.- Parameters:
name- the name to set
-
getSubnetMask
Getter for the field
subnetMask.- Returns:
- the subnetMask
-
setSubnetMask
Setter for the field
subnetMask.- Parameters:
subnetMask- the subnetMask to set
-
getDescription
Getter for the field
description.- Returns:
- the description
-
setDescription
Setter for the field
description.- Parameters:
description- the description to set
-
getAccessType
- Specified by:
getAccessTypein interfaceILicensee- Returns:
- AccessType corresponding to the licensee's class
-
main
main.
- Parameters:
args- an array ofStringobjects.
-
toString
-