- All Superinterfaces:
CatalogObject
,CatalogObject.AccessControlled<CatalogObject.Grant.OnRole>
,CatalogObject.Addressed<RegRole>
,CatalogObject.Named<Lexicals.Identifier.Simple>
,RegRole
- Enclosing interface:
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).
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.postgresql.pljava.model.CatalogObject
CatalogObject.AccessControlled<T extends CatalogObject.Grant>, CatalogObject.Addressed<T extends CatalogObject.Addressed<T>>, CatalogObject.Component, CatalogObject.Grant, CatalogObject.Named<T extends Lexicals.Identifier.Unqualified<T>>, CatalogObject.Namespaced<T extends Lexicals.Identifier.Unqualified<T>>, CatalogObject.Owned
Nested classes/interfaces inherited from interface org.postgresql.pljava.model.RegRole
RegRole.Grantee
-
Field Summary
Fields inherited from interface org.postgresql.pljava.model.CatalogObject
InvalidOid
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
isPublic()
In the case of aRegRole
obtained as thegrantee
of aCatalogObject.Grant
, indicate whether it is a grant to "public".Likename()
, but also returns the expected name for aGrantee
representingPUBLIC
.Methods inherited from interface org.postgresql.pljava.model.CatalogObject
isValid, of, oid
Methods inherited from interface org.postgresql.pljava.model.CatalogObject.AccessControlled
grants, grants
Methods inherited from interface org.postgresql.pljava.model.CatalogObject.Addressed
classId, exists, shared
Methods inherited from interface org.postgresql.pljava.model.CatalogObject.Named
name
Methods inherited from interface org.postgresql.pljava.model.RegRole
authenticatedPrincipal, bypassRLS, canLogIn, connectionLimit, createDB, createRole, currentPrincipal, inherit, memberOf, outerPrincipal, replication, sessionPrincipal, superuser
-
Method Details
-
isPublic
default boolean isPublic()In the case of aRegRole
obtained as thegrantee
of aCatalogObject.Grant
, indicate whether it is a grant to "public". -
nameAsGrantee
Lexicals.Identifier.Simple nameAsGrantee()Likename()
, but also returns the expected name for aGrantee
representingPUBLIC
.
-