l.a.s.AuthorizationBase : class documentation

Part of lp.app.security View In Hierarchy

Known subclasses: lp.app.security.AnonymousAuthorization, lp.app.security.DelegatedAuthorization, lp.app.tests.test_security.FakeSecurityAdapter, lp.bugs.security.AdminBugTracker, lp.bugs.security.AdminBugWatch, lp.bugs.security.AppendBug, lp.bugs.security.DeleteBugTask, lp.bugs.security.EditBug, lp.bugs.security.EditBugNominationStatus, lp.bugs.security.EditBugSubscription, lp.bugs.security.EditBugSubscriptionFilter, lp.bugs.security.EditBugTask, lp.bugs.security.EditBugTracker, lp.bugs.security.EditStructuralSubscription, lp.bugs.security.PublicToAllOrPrivateToExplicitSubscribersForBug, lp.bugs.security.PublicToAllOrPrivateToExplicitSubscribersForBugTask, lp.code.security.BranchSubscriptionEdit, lp.code.security.GitSubscriptionEdit, lp.security.AccessBranch, lp.security.AdminArchive, lp.security.AdminBranch, lp.security.AdminByAdminsTeam, lp.security.AdminByBuilddAdmin, lp.security.AdminByCommercialTeamOrAdmins, lp.security.AdminCustomLanguageCode, lp.security.AdminDistributionMirrorByDistroOwnerOrMirrorAdminsOrAdmins, lp.security.AdminDistributionTranslations, lp.security.AdminDistroSeriesDifference, lp.security.AdminDistroSeriesTranslations, lp.security.AdminLiveFS, lp.security.AdminMilestoneByLaunchpadAdmins, lp.security.AdminProductSeriesTranslations, lp.security.AdminProductTranslations, lp.security.AdminProjectTranslations, lp.security.AdminQuestion, lp.security.AdminSnap, lp.security.AdminSourcePackageRecipeBuilds, lp.security.AdminSpecification, lp.security.AdminTranslationImportQueueEntry, lp.security.AnyAllowedPersonDeferredToView, lp.security.AnyLegitimatePerson, lp.security.AppendArchive, lp.security.BranchMergeProposalEdit, lp.security.BranchMergeProposalView, lp.security.BugSuperviseDistributionSourcePackage, lp.security.BugTargetOwnerOrBugSupervisorOrAdmins, lp.security.DeleteFAQ, lp.security.DeleteSourcePackageRecipe, lp.security.DriverSpecification, lp.security.DriveSprint, lp.security.EditAccountBySelfOrAdmin, lp.security.EditAnnouncement, lp.security.EditArchive, lp.security.EditBranch, lp.security.EditByOwnersOrAdmins, lp.security.EditByRegistryExpertsOrAdmins, lp.security.EditDistributionByDistroOwnersOrAdmins, lp.security.EditDistributionMirrorByOwnerOrDistroOwnerOrMirrorAdminsOrAdmins, lp.security.EditDistributionSourcePackage, lp.security.EditDistroSeriesByReleaseManagerOrDistroOwnersOrAdmins, lp.security.EditDistroSeriesParent, lp.security.EditFAQ, lp.security.EditGitRepository, lp.security.EditLibraryFileAliasWithParent, lp.security.EditLiveFS, lp.security.EditMilestoneByTargetOwnerOrAdmins, lp.security.EditOAuthAccessToken, lp.security.EditPackageset, lp.security.EditPackagesetSet, lp.security.EditPersonBySelf, lp.security.EditPersonBySelfOrAdmins, lp.security.EditPlainPackageCopyJob, lp.security.EditPOFile, lp.security.EditPollOptionByTeamOwnerOrTeamAdminsOrAdmins, lp.security.EditPOTemplateDetails, lp.security.EditProductReleaseFile, lp.security.EditProjectMilestoneNever, lp.security.EditQuestion, lp.security.EditSnap, lp.security.EditSpecificationBranch, lp.security.EditSpecificationByRelatedPeople, lp.security.EditSpecificationSubscription, lp.security.EditSprintSpecification, lp.security.EditStructuralSubscription, lp.security.EditTeamByTeamOwnerOrLaunchpadAdmins, lp.security.EditTeamByTeamOwnerOrTeamAdminsOrAdmins, lp.security.EditTeamMembershipByTeamOwnerOrTeamAdminsOrAdmins, lp.security.EditTranslationImportQueueEntry, lp.security.EditTranslationsPersonByPerson, lp.security.LimitedViewArchive, lp.security.LimitedViewDeferredToView, lp.security.ModerateAccountByRegistryExpert, lp.security.ModerateArchive, lp.security.ModerateByRegistryExpertsOrAdmins, lp.security.ModerateDistributionByDriversOrOwnersOrAdmins, lp.security.ModerateDistroArchSeries, lp.security.ModerateQuestionMessage, lp.security.NominateBugForDistroSeries, lp.security.NominateBugForProductSeries, lp.security.OnlyBazaarExpertsAndAdmins, lp.security.OnlyRosettaExpertsAndAdmins, lp.security.OnlyVcsImportsAndAdmins, lp.security.PillarPersonSharingDriver, lp.security.PublicOrPrivateTeamsExistence, lp.security.QuestionOwner, lp.security.SeriesDrivers, lp.security.SetMessageVisibility, lp.security.ViewAnnouncement, lp.security.ViewArchive, lp.security.ViewArchiveAuthToken, lp.security.ViewByLoggedInUser, lp.security.ViewEmailAddress, lp.security.ViewGitRepository, lp.security.ViewHWDBBase, lp.security.ViewHWSubmission, lp.security.ViewLibraryFileAliasWithParent, lp.security.ViewMilestone, lp.security.ViewOpenIdIdentifierBySelfOrAdmin, lp.security.ViewPackageUpload, lp.security.ViewPersonLocation, lp.security.ViewPillar, lp.security.ViewProduct, lp.security.ViewProductSeries, lp.security.ViewPublicOrPrivateTeamMembers, lp.security.ViewSnap, lp.security.ViewSourcePackagePublishingHistory, lp.security.ViewSourcePackageRelease, lp.security.ViewSpecification, lp.security.ViewSprint, lp.security.ViewTeamMembership, lp.security.ViewWebhook, lp.services.webapp.tests.test_authorization.Allow, lp.services.webapp.tests.test_authorization.Checker, lp.services.webapp.tests.test_authorization.Delegate, lp.services.webapp.tests.test_authorization.Deny, lp.services.webapp.tests.test_authorization.Explode

No class docstring
Method __init__ Undocumented
Method checkUnauthenticated See IAuthorization.checkUnauthenticated.
Method checkAuthenticated Return True if the given person has the given permission.
Method checkPermissionIsRegistered Pass through to checkPermission.
Method forwardCheckAuthenticated Forward request to another security adapter.
Method forwardCheckUnauthenticated Forward request to another security adapter.
Method _checkAndFetchNext Undocumented
def __init__(self, obj):
Undocumented
def checkUnauthenticated(self):
See IAuthorization.checkUnauthenticated.
ReturnsTrue or False.
def checkAuthenticated(self, user):
overridden in lp.app.security.AnonymousAuthorization, lp.app.security.DelegatedAuthorization, lp.bugs.security.AdminBugTracker, lp.bugs.security.AdminBugWatch, lp.bugs.security.AppendBug, lp.bugs.security.DeleteBugTask, lp.bugs.security.EditBug, lp.bugs.security.EditBugNominationStatus, lp.bugs.security.EditBugSubscription, lp.bugs.security.EditBugSubscriptionFilter, lp.bugs.security.EditBugTask, lp.bugs.security.EditBugTracker, lp.bugs.security.EditStructuralSubscription, lp.bugs.security.PublicToAllOrPrivateToExplicitSubscribersForBug, lp.bugs.security.PublicToAllOrPrivateToExplicitSubscribersForBugTask, lp.code.security.BranchSubscriptionEdit, lp.code.security.GitSubscriptionEdit, lp.security.AccessBranch, lp.security.AdminArchive, lp.security.AdminBranch, lp.security.AdminByAdminsTeam, lp.security.AdminByBuilddAdmin, lp.security.AdminByCommercialTeamOrAdmins, lp.security.AdminCustomLanguageCode, lp.security.AdminDistributionMirrorByDistroOwnerOrMirrorAdminsOrAdmins, lp.security.AdminDistributionTranslations, lp.security.AdminDistroSeriesDifference, lp.security.AdminDistroSeriesTranslations, lp.security.AdminLiveFS, lp.security.AdminMilestoneByLaunchpadAdmins, lp.security.AdminProductSeriesTranslations, lp.security.AdminProductTranslations, lp.security.AdminProjectTranslations, lp.security.AdminQuestion, lp.security.AdminSnap, lp.security.AdminSourcePackageRecipeBuilds, lp.security.AdminSpecification, lp.security.AdminTranslationImportQueueEntry, lp.security.AnyAllowedPersonDeferredToView, lp.security.AnyLegitimatePerson, lp.security.AppendArchive, lp.security.BranchMergeProposalEdit, lp.security.BranchMergeProposalView, lp.security.BugSuperviseDistributionSourcePackage, lp.security.BugTargetOwnerOrBugSupervisorOrAdmins, lp.security.DeleteFAQ, lp.security.DeleteSourcePackageRecipe, lp.security.DriverSpecification, lp.security.DriveSprint, lp.security.EditAccountBySelfOrAdmin, lp.security.EditAnnouncement, lp.security.EditArchive, lp.security.EditBranch, lp.security.EditByOwnersOrAdmins, lp.security.EditByRegistryExpertsOrAdmins, lp.security.EditDistributionByDistroOwnersOrAdmins, lp.security.EditDistributionMirrorByOwnerOrDistroOwnerOrMirrorAdminsOrAdmins, lp.security.EditDistributionSourcePackage, lp.security.EditDistroSeriesByReleaseManagerOrDistroOwnersOrAdmins, lp.security.EditDistroSeriesParent, lp.security.EditFAQ, lp.security.EditGitRepository, lp.security.EditLibraryFileAliasWithParent, lp.security.EditLiveFS, lp.security.EditMilestoneByTargetOwnerOrAdmins, lp.security.EditOAuthAccessToken, lp.security.EditPackageset, lp.security.EditPackagesetSet, lp.security.EditPersonBySelf, lp.security.EditPersonBySelfOrAdmins, lp.security.EditPlainPackageCopyJob, lp.security.EditPOFile, lp.security.EditPollOptionByTeamOwnerOrTeamAdminsOrAdmins, lp.security.EditPOTemplateDetails, lp.security.EditProductReleaseFile, lp.security.EditProjectMilestoneNever, lp.security.EditQuestion, lp.security.EditSnap, lp.security.EditSpecificationBranch, lp.security.EditSpecificationByRelatedPeople, lp.security.EditSpecificationSubscription, lp.security.EditSprintSpecification, lp.security.EditStructuralSubscription, lp.security.EditTeamByTeamOwnerOrLaunchpadAdmins, lp.security.EditTeamByTeamOwnerOrTeamAdminsOrAdmins, lp.security.EditTeamMembershipByTeamOwnerOrTeamAdminsOrAdmins, lp.security.EditTranslationImportQueueEntry, lp.security.EditTranslationsPersonByPerson, lp.security.LimitedViewArchive, lp.security.LimitedViewDeferredToView, lp.security.ModerateAccountByRegistryExpert, lp.security.ModerateArchive, lp.security.ModerateByRegistryExpertsOrAdmins, lp.security.ModerateDistributionByDriversOrOwnersOrAdmins, lp.security.ModerateDistroArchSeries, lp.security.ModerateQuestionMessage, lp.security.NominateBugForDistroSeries, lp.security.NominateBugForProductSeries, lp.security.OnlyBazaarExpertsAndAdmins, lp.security.OnlyRosettaExpertsAndAdmins, lp.security.OnlyVcsImportsAndAdmins, lp.security.PillarPersonSharingDriver, lp.security.PublicOrPrivateTeamsExistence, lp.security.QuestionOwner, lp.security.SeriesDrivers, lp.security.SetMessageVisibility, lp.security.ViewAnnouncement, lp.security.ViewArchive, lp.security.ViewArchiveAuthToken, lp.security.ViewByLoggedInUser, lp.security.ViewEmailAddress, lp.security.ViewGitRepository, lp.security.ViewHWDBBase, lp.security.ViewHWSubmission, lp.security.ViewLibraryFileAliasWithParent, lp.security.ViewMilestone, lp.security.ViewOpenIdIdentifierBySelfOrAdmin, lp.security.ViewPackageUpload, lp.security.ViewPersonLocation, lp.security.ViewPillar, lp.security.ViewProduct, lp.security.ViewProductSeries, lp.security.ViewPublicOrPrivateTeamMembers, lp.security.ViewSnap, lp.security.ViewSourcePackagePublishingHistory, lp.security.ViewSourcePackageRelease, lp.security.ViewSpecification, lp.security.ViewSprint, lp.security.ViewTeamMembership, lp.security.ViewWebhook, lp.services.webapp.tests.test_authorization.Allow, lp.services.webapp.tests.test_authorization.Checker, lp.services.webapp.tests.test_authorization.Delegate, lp.services.webapp.tests.test_authorization.Deny, lp.services.webapp.tests.test_authorization.Explode
Return True if the given person has the given permission.

This method is implemented by security adapters that have not been updated to work in terms of IAccount.

ReturnsTrue or False.
def checkPermissionIsRegistered(self, obj, permission):
Pass through to checkPermission.

To be replaced during testing.

def _checkAndFetchNext(self, obj, permission):
Undocumented
def forwardCheckAuthenticated(self, user, obj=None, permission=None):
Forward request to another security adapter.

Find a matching adapter and call checkAuthenticated on it. Intended to be used in checkAuthenticated.

ParametersuserThe IRolesPerson object that was passed in.
objThe object to check the permission for. If None, use the same object as this adapter.
permissionThe permission to check. If None, use the same permission as this adapter.
ReturnsTrue or False.
def forwardCheckUnauthenticated(self, obj=None, permission=None):
Forward request to another security adapter.

Find a matching adapter and call checkUnauthenticated on it. Intended to be used in checkUnauthenticated.

ParametersuserThe IRolesPerson object that was passed in.
objThe object to check the permission for. If None, use the same object as this adapter.
permissionThe permission to check. If None, use the same permission as this adapter.
ReturnsTrue or False.
API Documentation for Launchpad, generated by pydoctor at 2019-06-20 00:00:12.