Class AbstractLicensee
java.lang.Object
io.goobi.viewer.model.security.user.AbstractLicensee
- All Implemented Interfaces:
ILicensee
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AccessPermissiongetAccessPermissionFromMap(Map<String, AccessPermission> permissionMap) hasLicense(String licenseName, String privilegeName, String pi) Checks whether the licensee has a license with the given name.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.goobi.viewer.model.security.ILicensee
addLicense, getLicenses, getName, removeLicense
-
Constructor Details
-
AbstractLicensee
public AbstractLicensee()
-
-
Method Details
-
hasLicense
public 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.- Specified by:
hasLicensein interfaceILicensee- 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.
-
getAccessPermissionFromMap
public static AccessPermission getAccessPermissionFromMap(Map<String, AccessPermission> permissionMap) - Parameters:
permissionMap- Map containing permission check outcome for different license names- Returns:
AccessPermission
-