l.r.i.a.IAccessPolicyGrantFlatSource(Interface) : interface documentation

Part of lp.registry.interfaces.accesspolicy View In Hierarchy

Experimental query utility to search through the flattened schema.
Method findGranteesByPolicy Find teams or users with access grants for the policies.
Method findGranteePermissionsByPolicy Find teams or users with access grants for the policies.
Method findArtifactsByGrantee Find the `IAccessArtifact`s for grantee and policies.
def findGranteesByPolicy(policies):
Find teams or users with access grants for the policies.

This includes grants for artifacts in the policies.

:param policies: a collection of `IAccesPolicy`s.
:return: a collection of `IPerson`.
def findGranteePermissionsByPolicy(policies, grantees=None):
Find teams or users with access grants for the policies.

This includes grants for artifacts in the policies.

:param policies: a collection of `IAccesPolicy`s.
:param grantees: if not None, the result only includes people in the
    specified list of grantees.
:return: a collection of
    (`IPerson`, `IAccessPolicy`, permission, shared_artifact_types)
    where permission is a SharingPermission enum value.
    ALL means the person has an access policy grant and can see all
    artifacts for the associated pillar.
    SOME means the person only has specified access artifact grants.
    shared_artifact_types contains the information_types for which the
    user has been granted access for one or more artifacts of that
    type.
def findArtifactsByGrantee(grantee, policies):
Find the `IAccessArtifact`s for grantee and policies.

:param grantee: the access artifact grantee.
:param policies: a collection of `IAccessPolicy`s.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.