Interface RegRole.Grantee

All Superinterfaces:
CatalogObject, CatalogObject.AccessControlled<CatalogObject.Grant.OnRole>, CatalogObject.Addressed<RegRole>, CatalogObject.Named<Lexicals.Identifier.Simple>, RegRole
Enclosing interface:
RegRole

public static interface RegRole.Grantee extends RegRole
Subinterface of RegRole returned by methods of CatalogObject.AccessControlled identifying the role to which a privilege has been granted.

A RegRole appearing as a grantee can be PUBLIC, unlike a RegRole in any other context, so the isPublic() method appears only on this subinterface, as well as the nameAsGrantee method, which will return the correct name even in that case (the ordinary name method will not).

  • Method Details

    • isPublic

      default boolean isPublic()
      In the case of a RegRole obtained as the grantee of a CatalogObject.Grant, indicate whether it is a grant to "public".
    • nameAsGrantee

      Like name(), but also returns the expected name for a Grantee representing PUBLIC.