Interface CatalogObject.AccessControlled<T extends CatalogObject.Grant>
- Type Parameters:
T
- The subtype ofGrant
that applies to catalog objects of this type.
- All Known Subinterfaces:
Attribute
,Database
,ProceduralLanguage
,RegClass
,RegClass.Known<T>
,RegNamespace
,RegProcedure<M>
,RegRole
,RegRole.Grantee
,RegType
,RegType.Unresolved
- Enclosing interface:
CatalogObject
Grant
).-
Method Summary
-
Method Details
-
grants
Simple list of direct grants.For any T except
Grant.OnRole
, simply returns the list of grants directly found in this catalog object's ACL. When T isGrant.OnRole
, this catalog object is aRegRole
, and the result contains aGrant.OnRole
for every role R that is directly a member of the role this catalog object represents; each such grant hasmaySetRole()
by definition, andmayExercisePrivileges()
if and only if R hasinherit
. -
grants
Computed list of (possibly transitive) grants to grantee.For any T except
Grant.OnRole
, a list of grants to grantee assembled from: direct grants in this object's ACL toPUBLIC
, or to grantee, or to any role R for whichR.grants(grantee).mayExercisePrivileges()
is true.When T is
Grant.OnRole
, this catalog object is aRegRole
, and the result contains aGrant.OnRole
for whichmaySetRole()
is true if a membership path from grantee to this role exists, andmayExercisePrivileges()
is true if such a path exists using only roles withinherit()
true. (Theinherit()
status of this object itself is not considered.)
-