l.r.s.s.SharingService : class documentation

Part of lp.registry.services.sharingservice View In Hierarchy

Service providing operations for adding and removing pillar grantees.

Service is accessed via a url of the form '/+services/sharing?ws.op=...

Method name See IService.
Method checkPillarAccess See ISharingService.
Method getAccessPolicyGrantCounts See ISharingService.
Method getSharedProjects See ISharingService.
Method getSharedDistributions See ISharingService.
Method getArtifactGrantsForPersonOnPillar Return the artifact grants for the given person and pillar.
Method getSharedArtifacts See ISharingService.
Method getSharedBugs See ISharingService.
Method getSharedBranches See ISharingService.
Method getSharedGitRepositories See ISharingService.
Method getSharedSpecifications See ISharingService.
Method getVisibleArtifacts See ISharingService.
Method getInvisibleArtifacts See ISharingService.
Method getPeopleWithoutAccess See ISharingService.
Method getAllowedInformationTypes See ISharingService.
Method getBranchSharingPolicies See ISharingService.
Method getBugSharingPolicies See ISharingService.
Method getSpecificationSharingPolicies See ISharingService.
Method getSharingPermissions See ISharingService.
Method getPillarGrantees See ISharingService.
Method getPillarGranteeData See ISharingService.
Method jsonGranteeData See ISharingService.
Method sharePillarInformation See ISharingService.
Method deletePillarGrantee See ISharingService.
Method revokeAccessGrants See ISharingService.
Method ensureAccessGrants See ISharingService.
Method updatePillarSharingPolicies Undocumented
Method _getSharedPillars Helper method for getSharedProjects and getSharedDistributions.
Method _getVisiblePrivateSpecificationIDs Undocumented
Method _makeEnumData Undocumented
@property
def name(self):
See IService.
def checkPillarAccess(self, pillars, information_type, person):
See ISharingService.
def getAccessPolicyGrantCounts(self, pillar):
See ISharingService.
def _getSharedPillars(self, person, user, pillar_class, extra_filter=None):
Helper method for getSharedProjects and getSharedDistributions.

pillar_class is either Product or Distribution. Products define the owner foreign key attribute as _owner so we need to account for that, but otherwise the logic is the same for both pillar types.

def getSharedProjects(self, person, user):
See ISharingService.
def getSharedDistributions(self, person, user):
See ISharingService.
def getArtifactGrantsForPersonOnPillar(self, pillar, person):
Return the artifact grants for the given person and pillar.
@available_with_permission('launchpad.Driver', 'pillar')
def getSharedArtifacts(self, pillar, person, user, include_bugs=True, include_branches=True, include_gitrepositories=True, include_specifications=True):
See ISharingService.
@available_with_permission('launchpad.Driver', 'pillar')
def getSharedBugs(self, pillar, person, user):
See ISharingService.
@available_with_permission('launchpad.Driver', 'pillar')
def getSharedBranches(self, pillar, person, user):
See ISharingService.
@available_with_permission('launchpad.Driver', 'pillar')
def getSharedGitRepositories(self, pillar, person, user):
See ISharingService.
@available_with_permission('launchpad.Driver', 'pillar')
def getSharedSpecifications(self, pillar, person, user):
See ISharingService.
def _getVisiblePrivateSpecificationIDs(self, person, specifications):
Undocumented
def getVisibleArtifacts(self, person, bugs=None, branches=None, gitrepositories=None, specifications=None, ignore_permissions=False):
See ISharingService.
def getInvisibleArtifacts(self, person, bugs=None, branches=None, gitrepositories=None):
See ISharingService.
def getPeopleWithoutAccess(self, concrete_artifact, people):
See ISharingService.
def _makeEnumData(self, enums):
Undocumented
def getAllowedInformationTypes(self, pillar):
See ISharingService.
def getBranchSharingPolicies(self, pillar):
See ISharingService.
def getBugSharingPolicies(self, pillar):
See ISharingService.
def getSpecificationSharingPolicies(self, pillar):
See ISharingService.
def getSharingPermissions(self):
See ISharingService.
@available_with_permission('launchpad.Driver', 'pillar')
def getPillarGrantees(self, pillar):
See ISharingService.
@available_with_permission('launchpad.Driver', 'pillar')
def getPillarGranteeData(self, pillar):
See ISharingService.
def jsonGranteeData(self, grant_permissions):
See ISharingService.
@available_with_permission('launchpad.Edit', 'pillar')
def sharePillarInformation(self, pillar, grantee, user, permissions):
See ISharingService.
@available_with_permission('launchpad.Edit', 'pillar')
def deletePillarGrantee(self, pillar, grantee, user, information_types=None):
See ISharingService.
@available_with_permission('launchpad.Edit', 'pillar')
def revokeAccessGrants(self, pillar, grantee, user, bugs=None, branches=None, gitrepositories=None, specifications=None):
See ISharingService.
def ensureAccessGrants(self, grantees, user, bugs=None, branches=None, gitrepositories=None, specifications=None, ignore_permissions=False):
See ISharingService.
@available_with_permission('launchpad.Edit', 'pillar')
def updatePillarSharingPolicies(self, pillar, branch_sharing_policy=None, bug_sharing_policy=None, specification_sharing_policy=None):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.