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 TypeMethodDescriptiongetLicenses.getName()getName.hasLicense(String licenseName, String privilegeName, String pi) Checks whether the licensee has a license with the given name.
-
Method Details
-
getName
String getName()getName.
- Returns:
- a
Stringobject.
-
getAccessType
License.AccessType getAccessType()- Returns:
- AccessType corresponding to the licensee's class
-
getLicenses
getLicenses.
- Returns:
- a
Listobject.
-
hasLicense
AccessPermission hasLicense(String licenseName, String privilegeName, String pi) throws DAOException, IndexUnreachableException, PresentationException 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:
DAOExceptionIndexUnreachableException- if any.PresentationException- if any.
-