Interface ILicensee

All Known Implementing Classes:
AbstractLicensee, ClientApplication, IpRange, User, UserGroup

public interface ILicensee

ILicensee interface.

  • Method Details

    • getName

      String getName()

      getName.

      Returns:
      a String object.
    • getLicenses

      List<License> getLicenses()

      getLicenses.

      Returns:
      a List object.
    • 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

      boolean addLicense(License license)
      Adds the given license to this ILicensee.
      Parameters:
      license - a License object.
      Returns:
      a boolean.
    • removeLicense

      boolean removeLicense(License license)
      Removes the given license from this ILicensee.
      Parameters:
      license - a License object.
      Returns:
      a boolean.