Part of lp.registry.interfaces.webservice View In Hierarchy
Method | checkPillarAccess | Check the person's access to the given pillars and information type. |
Method | getAccessPolicyGrantCounts | Return the number of grantees who have policy grants of each type. |
Method | getSharedProjects | Find projects for which person has one or more access policy grants. |
Method | getSharedDistributions | Find distributions for which person has one or more access policy |
Method | getSharedArtifacts | Return the artifacts shared between the pillar and person. |
Method | getSharedBugs | Return the bugs shared between the pillar and person. |
Method | getSharedBranches | Return the branches shared between the pillar and person. |
Method | getSharedGitRepositories | Return the Git repositories shared between the pillar and person. |
Method | getSharedSpecifications | Return the specifications shared between the pillar and person. |
Method | getVisibleArtifacts | Return the artifacts shared with person. |
Method | getInvisibleArtifacts | Return the artifacts which are not shared with person. |
Method | getPeopleWithoutAccess | Return the people who cannot access an artifact. |
Method | getAllowedInformationTypes | Return the allowed private information types for the given pillar. |
Method | getBugSharingPolicies | Return the allowed bug sharing policies for the given pillar. |
Method | getBranchSharingPolicies | Return the allowed branch sharing policies for the given pillar. |
Method | getSpecificationSharingPolicies | Return specification sharing policies for a given pillar. |
Method | getSharingPermissions | Return the information sharing permissions. |
Method | getPillarGrantees | Return people/teams who can see pillar artifacts. |
Method | getPillarGranteeData | Return people/teams who can see pillar artifacts. |
Method | jsonGranteeData | Return people/teams who can see pillar artifacts. |
Method | sharePillarInformation | Ensure grantee has the grants for information types on a pillar. |
Method | deletePillarGrantee | Remove a grantee from a pillar. |
Method | revokeAccessGrants | Remove a grantee's access to the specified artifacts. |
Method | ensureAccessGrants | Ensure a grantee has an access grant to the specified artifacts. |
Method | updatePillarSharingPolicies | Update the sharing policies for a pillar. |
Returns | True if the user has been granted SharingPermission.ALL on any of the specified pillars. |
Returns a resultset of (InformationType, count) tuples, where count is the number of grantees who have an access policy grant for the information type.
Parameters | user | the user making the request. If the user is an admin, then all projects are returned, else only those for which the user is a maintainer or driver. |
Returns | a collection of projects |
Parameters | user | the user making the request. If the user is an admin, then all distributions are returned, else only those for which the user is a maintainer or driver. |
Returns | a collection of distributions |
The result includes bugtasks rather than bugs since this is what the pillar filtering is applied to and is what the calling code uses. The shared bug can be obtained simply by reading the bugtask.bug attribute.
Parameters | user | the user making the request. Only artifacts visible to the user will be included in the result. |
Returns | a (bugtasks, branches, gitrepositories, specifications) tuple |
The result includes bugtasks rather than bugs since this is what the pillar filtering is applied to. The shared bug can be obtained simply by reading the bugtask.bug attribute.
Parameters | user | the user making the request. Only bugs visible to the user will be included in the result. |
Returns | a collection of bug tasks. |
Parameters | user | the user making the request. Only branches visible to the user will be included in the result. |
Returns | a collection of branches |
Parameters | user | the user making the request. Only Git repositories visible to the user will be included in the result. |
Returns | a collection of Git repositories. |
Parameters | user | the user making the request. Only branches visible to the user will be included in the result. |
Returns | a collection of specifications. |
Given lists of artifacts, return those a person has access to either via a policy grant or artifact grant.
Parameters | person | the person whose access is being checked. |
bugs | the bugs to check for which a person has access. | |
branches | the branches to check for which a person has access. | |
gitrepositories | the Git repositories to check for which a person has access. | |
specifications | the specifications to check for which a person has access. | |
Returns | a collection of artifacts the person can see. |
Return the artifacts which are not shared with person. Given lists of artifacts, return those a person does not have access to either via a policy grant or artifact grant. * Do not export this method to the API since it could be used to gain access to private information. Internal use only. * :param person: the person whose access is being checked. :param bugs: the bugs to check for which a person has access. :param branches: the branches to check for which a person has access. :param gitrepositories: the Git repositories to check for which a person has access. :return: a collection of artifacts the person can not see.
Given a list of people, return those who do not have access to the specified bug or branch.
Parameters | concrete_artifact | the bug or branch whose access is being checked. |
people | the people whose access is being checked. | |
Returns | a collection of people without access to the artifact. |
The allowed information types are those for which bugs and branches may be created. This does not mean that there will necessarily be bugs and branches of these types; the result is used to populate the allowed choices in the grantee sharing pillar and other similar things.
The allowed information types are determined by the pillar's bug and branch sharing policies. It is possible that there are bugs or branches of a given information type which is now nominally not allowed with a change in policy. Such information types are also included in the result.
Return people/teams who can see pillar artifacts.
Return people/teams who can see pillar artifacts.
Parameters | grant_permissions | a list of (grantee, accesspolicy, permission) tuples. |
Parameters | pillar | the pillar for which to grant access |
grantee | the person or team to grant | |
user | the user making the request | |
permissions | a dict of {InformationType: SharingPermission} if SharingPermission is ALL, then create an access policy grant if SharingPermission is SOME, then remove any access policy grants if SharingPermission is NONE, then remove all grants for the access policy |
Parameters | pillar | the pillar from which to remove access |
grantee | the person or team to remove | |
user | the user making the request | |
information_types | if None, remove all access, otherwise just remove the specified access_policies |
Parameters | pillar | the pillar from which to remove access |
grantee | the person or team for whom to revoke access | |
user | the user making the request | |
bugs | the bugs for which to revoke access | |
branches | the branches for which to revoke access | |
gitrepositories | the Git repositories for which to revoke access | |
specifications | the specifications for which to revoke access |
Parameters | grantees | the people or teams for whom to grant access |
user | the user making the request | |
bugs | the bugs for which to grant access | |
branches | the branches for which to grant access | |
gitrepositories | the Git repositories for which to grant access | |
specifications | the specifications for which to grant access |
Parameters | pillar | the pillar to update |
branch_sharing_policy | the new branch sharing policy | |
bug_sharing_policy | the new bug sharing policy | |
specification_sharing_policy | new specification sharing policy |