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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addLicense
(License license) Adds the given license to this ILicensee.canSatisfyAllAccessConditions
(Set<String> requiredAccessConditions, List<LicenseType> relevantLicenseTypes, String privilegeName, String pi) canSatisfyAllAccessConditions.boolean
Getter for the fielddescription
.getId()
Getter for the fieldid
.getLicenses.getName()
getName.Getter for the fieldsubnetMask
.int
hashCode()
static void
main.boolean
matchIp.boolean
removeLicense
(License license) Removes the given license from this ILicensee.void
setDescription
(String description) Setter for the fielddescription
.void
Setter for the fieldid
.void
setLicenses
(List<License> licenses) Setter for the fieldlicenses
.void
Setter for the fieldname
.void
setSubnetMask
(String subnetMask) Setter for the fieldsubnetMask
.Methods inherited from class io.goobi.viewer.model.security.user.AbstractLicensee
getAccessPermissionFromMap, hasLicense
-
Constructor Details
-
IpRange
public IpRange()
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
matchIp
matchIp.
- Parameters:
inIp
- aString
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
- aSet
object.relevantLicenseTypes
- a list of relevant license types. If null, the DAO may be queried to check for any restrictions in OpenAccessprivilegeName
- aString
object.pi
- aString
object.- Returns:
- a boolean.
- Throws:
PresentationException
- if any.IndexUnreachableException
- if any.DAOException
- if any.
-
addLicense
Adds the given license to this ILicensee.- Specified by:
addLicense
in interfaceILicensee
- Parameters:
license
- aLicense
object.- Returns:
- a boolean.
-
removeLicense
Removes the given license from this ILicensee.- Specified by:
removeLicense
in interfaceILicensee
- Parameters:
license
- aLicense
object.- Returns:
- a boolean.
-
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
-
getLicenses
getLicenses.
- Specified by:
getLicenses
in interfaceILicensee
- Returns:
- a
List
object.
-
setLicenses
Setter for the field
licenses
.- Parameters:
licenses
- the licenses to set
-
main
main.
- Parameters:
args
- an array ofString
objects.
-