Package io.goobi.viewer.model.security
Interface ILicensee
- All Known Implementing Classes:
AbstractLicensee,ClientApplication,IpRange,User,UserGroup
public interface ILicensee
ILicensee interface.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddLicense(License license) Adds the given license to this ILicensee.getLicenses.getName()getName.hasLicense(String licenseName, String privilegeName, String pi) Checks whether the licensee has a license with the given name.booleanremoveLicense(License license) Removes the given license from this ILicensee.
-
Method Details
-
getName
String getName()getName.
- Returns:
- a
Stringobject.
-
getLicenses
getLicenses.
- Returns:
- a
Listobject.
-
hasLicense
AccessPermission hasLicense(String licenseName, String privilegeName, String pi) throws PresentationException, IndexUnreachableException Checks whether the licensee has a license with the given name. IF a privilege name is passed, the licensee must also have this privilege for that license.- Parameters:
licenseName- License name.privilegeName- Required privilege (optional).pi- Checks the privilege in connection with a specific record identifier (optional).- Returns:
- a boolean.
- Throws:
PresentationException- if any.IndexUnreachableException- if any.
-
addLicense
Adds the given license to this ILicensee.- Parameters:
license- aLicenseobject.- Returns:
- a boolean.
-
removeLicense
Removes the given license from this ILicensee.- Parameters:
license- aLicenseobject.- Returns:
- a boolean.
-