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 TypeMethodDescriptionbooleanaddLicense(License license) Adds the given license to this ILicensee.canSatisfyAllAccessConditions(Set<String> requiredAccessConditions, List<LicenseType> relevantLicenseTypes, String privilegeName, String pi) canSatisfyAllAccessConditions.booleanGetter for the fielddescription.getId()Getter for the fieldid.getLicenses.getName()getName.Getter for the fieldsubnetMask.inthashCode()static voidmain.booleanmatchIp.booleanremoveLicense(License license) Removes the given license from this ILicensee.voidsetDescription(String description) Setter for the fielddescription.voidSetter for the fieldid.voidsetLicenses(List<License> licenses) Setter for the fieldlicenses.voidSetter for the fieldname.voidsetSubnetMask(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- aStringobject.- Returns:
- a boolean.
-
canSatisfyAllAccessConditions
public AccessPermission canSatisfyAllAccessConditions(Set<String> requiredAccessConditions, List<LicenseType> relevantLicenseTypes, String privilegeName, String pi) throws PresentationException, IndexUnreachableException, DAOException canSatisfyAllAccessConditions.
- Parameters:
requiredAccessConditions- aSetobject.relevantLicenseTypes- a list of relevant license types. If null, the DAO may be queried to check for any restrictions in OpenAccessprivilegeName- aStringobject.pi- aStringobject.- Returns:
- a boolean.
- Throws:
PresentationException- if any.IndexUnreachableException- if any.DAOException- if any.
-
addLicense
Adds the given license to this ILicensee.- Specified by:
addLicensein interfaceILicensee- Parameters:
license- aLicenseobject.- Returns:
- a boolean.
-
removeLicense
Removes the given license from this ILicensee.- Specified by:
removeLicensein interfaceILicensee- Parameters:
license- aLicenseobject.- 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:
getLicensesin interfaceILicensee- Returns:
- a
Listobject.
-
setLicenses
Setter for the field
licenses.- Parameters:
licenses- the licenses to set
-
main
main.
- Parameters:
args- an array ofStringobjects.
-