Package io.goobi.viewer.model.security
Interface ILicensee
- All Known Implementing Classes:
- AbstractLicensee,- ClientApplication,- IpRange,- User,- UserGroup
public interface ILicensee
ILicensee interface.
- 
Method SummaryModifier 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- 
getNameString getName()getName. - Returns:
- a Stringobject.
 
- 
getLicensesgetLicenses. - Returns:
- a Listobject.
 
- 
hasLicenseAccessPermission 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.
 
- 
addLicenseAdds the given license to this ILicensee.- Parameters:
- license- a- Licenseobject.
- Returns:
- a boolean.
 
- 
removeLicenseRemoves the given license from this ILicensee.- Parameters:
- license- a- Licenseobject.
- Returns:
- a boolean.
 
 
-