Part of lp.soyuz.interfaces.archivepermission View In Hierarchy
ArchivePermissionSet.| Method | checkAuthenticated | The ArchivePermission records that authenticate the person. |
| Method | permissionsForArchive | All ArchivePermission records for the archive. |
| Method | permissionsForPerson | All ArchivePermission records for the person. |
| Method | uploadersForComponent | The ArchivePermission records for authorised component uploaders. |
| Method | componentsForUploader | The ArchivePermission records for the person's upload components. |
| Method | packagesForUploader | The ArchivePermission records for the person's upload packages. |
| Method | uploadersForPackage | The ArchivePermission records for authorised package uploaders. |
| Method | packagesetsForUploader | The ArchivePermission records for the person's package sets. |
| Method | packagesetsForSourceUploader | The package set based permissions for a given source and uploader. |
| Method | packagesetsForSource | All package set based permissions for the given archive and source. |
| Method | isSourceUploadAllowed | True if the person is allowed to upload the given source package. |
| Method | uploadersForPackageset | The ArchivePermission records for uploaders to the package set. |
| Method | uploadersForPocket | The ArchivePermission records for authorised pocket uploaders. |
| Method | pocketsForUploader | The ArchivePermission records for the person's upload pockets. |
| Method | queueAdminsForComponent | The ArchivePermission records for authorised queue admins. |
| Method | componentsForQueueAdmin | Return ArchivePermission for the person's queue admin components. |
| Method | queueAdminsForPocket | The ArchivePermission records for authorised pocket queue admins. |
| Method | pocketsForQueueAdmin | Return ArchivePermission for the person's queue admin pockets. |
| Method | newPackageUploader | Create and return a new ArchivePermission for an uploader. |
| Method | newPackagesetUploader | Create and return a new ArchivePermission for an uploader. |
| Method | newComponentUploader | Create and return a new ArchivePermission for an uploader. |
| Method | newPocketUploader | Create and return a new ArchivePermission for an uploader. |
| Method | newQueueAdmin | Create and return a new ArchivePermission for a queue admin. |
| Method | newPocketQueueAdmin | Create and return a new ArchivePermission for a queue admin. |
| Method | deletePackageUploader | Revoke upload permissions for a person. |
| Method | deletePackagesetUploader | Revoke upload permissions for a person. |
| Method | deleteComponentUploader | Revoke upload permissions for a person. |
| Method | deletePocketUploader | Revoke upload permissions for a person. |
| Method | deleteQueueAdmin | Revoke queue admin permissions for a person. |
| Method | deletePocketQueueAdmin | Revoke queue admin permissions for a person. |
The `ArchivePermission` records that authenticate the person.
:param person: An `IPerson` whom should be checked for authentication.
:param archive: The context `IArchive` for the permission check.
:param permission: The `ArchivePermissionType` to check.
:param item: The context `IComponent` or `ISourcePackageName` for the
permission check.
:return: all the `ArchivePermission` records that match the parameters
supplied. If none are returned, it means the person is not
authenticated in that context.
ArchivePermission records for the archive.| Parameters | archive | An IArchive. |
ArchivePermission records for the person.| Parameters | person | An IPerson |
| archive | An IArchive |
ArchivePermission records for authorised component uploaders.| Parameters | archive | The context IArchive for the permission check. |
| component | Optional IComponent, if specified will only
return records for uploaders to that component, otherwise
all components are considered. You can also supply a string
component name instead. | |
| Returns | ArchivePermission records for all the uploaders who
are authorised for the supplied component. | |
| Raises | ComponentNotFound | if the named component does not exist. |
ArchivePermission records for the person's upload components.| Parameters | archive | The context IArchive for the permission check. |
| person | An IPerson for whom you want to find out which
components they have access to. | |
| Returns | ArchivePermission records for all the components that
'person' is allowed to upload to. | |
ArchivePermission records for the person's upload packages.| Parameters | archive | The context IArchive for the permission check. |
| person | An IPerson for whom you want to find out which
packages they have access to. | |
| Returns | ArchivePermission records for all the packages that
'person' is allowed to upload to. | |
ArchivePermission records for authorised package uploaders.| Parameters | archive | The context IArchive for the permission check. |
| sourcepackagename | An ISourcePackageName or a string
package name. | |
| Returns | ArchivePermission records for all the uploaders who are
authorised to upload the named source package. | |
| Raises | SourceNotFound | if the string package name does not exist. |
ArchivePermission records for the person's package sets.| Parameters | archive | The archive the permission applies to. |
| person | An IPerson for whom you want to find out which
package sets they have access to. | |
| Returns | ArchivePermission records for all the package sets that
'person' is allowed to upload to. | |
The package set based permissions for a given source and uploader.
IArchivePermission records thatapply to the given archive
person| Parameters | archive | The archive the permission applies to. |
| sourcepackagename | the source package name; can be
either a string or a ISourcePackageName. | |
| person | An IPerson for whom you want to find out which
package sets they have access to. | |
| Returns | ArchivePermission records for the package sets that
include the given source package name and to which the given
person may upload. | |
| Raises | SourceNotFound | if a source package with the given name could not be found. |
This method is meant to aid the process of "debugging" package set based archive permission since It allows the listing of permissions for the given source package irrespective of a person.
| Parameters | archive | The archive the permission applies to. |
| sourcepackagename | the source package name; can be
either a string or a ISourcePackageName. | |
| direct_permissions | If set, only package sets that directly include the given source will be considered. | |
| Returns | ArchivePermission records for the package sets that
include the given source package name and apply to the
archive in question. | |
| Raises | SourceNotFound | if a source package with the given name could not be found. |
archiveIf the source package name is included by any package set with an explicit permission then only such explicit permissions will be considered.
| Parameters | archive | The archive the permission applies to. |
| sourcepackagename | the source package name; can be
either a string or a ISourcePackageName. | |
| person | An IPerson for whom you want to find out which
package sets they have access to. | |
| distroseries | The IDistroSeries for which to check
permissions. | |
| Returns | True if the person is allowed to upload the source package. | |
| Raises | SourceNotFound | if a source package with the given name could not be found. |
The ArchivePermission records for uploaders to the package set.
| Parameters | archive | The archive the permission applies to. |
| packageset | An IPackageset or a string package set name. | |
| direct_permissions | If True only consider permissions granted directly for the package set at hand. Otherwise, include any uploaders for package sets that include this one. | |
| Returns | ArchivePermission records for all the uploaders who are
authorized to upload to the named source package set. | |
| Raises | NotFoundError | if no package set exists with the given name. |
ArchivePermission records for authorised pocket uploaders.| Parameters | archive | The context IArchive for the permission check. |
A PackagePublishingPocket. | ||
| Returns | ArchivePermission records for all the uploaders who
are authorised for the supplied pocket. | |
ArchivePermission records for the person's upload pockets.| Parameters | archive | The context IArchive for the permission check. |
| person | An IPerson for whom you want to find out which
pockets they have access to. | |
| Returns | ArchivePermission records for all the pockets that
'person' is allowed to upload to. | |
ArchivePermission records for authorised queue admins.| Parameters | archive | The context IArchive for the permission check. |
| component | The context IComponent for the permission check.
You can also supply a string component name instead. | |
| Returns | ArchivePermission records for all the person who are
allowed to administer the distroseries upload queue. | |
Return `ArchivePermission` for the person's queue admin components.
:param archive: The context `IArchive` for the permission check, or
an iterable of `IArchive`s.
:param person: An `IPerson` for whom you want to find out which
components they have access to.
:return: `ArchivePermission` records for all the components that
'person' is allowed to administer the queue for.
ArchivePermission records for authorised pocket queue admins.| Parameters | archive | The context IArchive for the permission check. |
A PackagePublishingPocket. | ||
| distroseries | An optional IDistroSeries. | |
| Returns | ArchivePermission records for all the persons who are
allowed to administer the pocket upload queue. | |
Return `ArchivePermission` for the person's queue admin pockets.
:param archive: The context `IArchive` for the permission check, or
an iterable of `IArchive`s.
:param person: An `IPerson` for whom you want to find out which
pockets they have access to.
:return: `ArchivePermission` records for all the pockets that
'person' is allowed to administer the queue for.
ArchivePermission for an uploader.| Parameters | archive | The context IArchive for the permission check. |
| person | An IPerson for whom you want to add permission. | |
| sourcepackagename | An ISourcePackageName or a string
package name. | |
| Returns | The new ArchivePermission, or the existing one if it
already exists. | |
Create and return a new ArchivePermission for an uploader.
| Parameters | archive | The archive the permission applies to. |
| person | An IPerson for whom you want to add permission. | |
| packageset | An IPackageset or a string package set name. | |
| explicit | True if the permissions granted by this package set exclude permissions granted by non-explicit package sets. | |
| Returns | The new ArchivePermission, or the existing one if it
already exists. | |
| Raises | ValueError | if an ArchivePermission record for this
person and packageset already exists but with a different
'explicit' flag value. |
ArchivePermission for an uploader.| Parameters | archive | The context IArchive for the permission check. |
| person | An IPerson for whom you want to add permission. | |
| component | An IComponent or a string package name. | |
| Returns | The new ArchivePermission, or the existing one if it
already exists. | |
ArchivePermission for an uploader.| Parameters | archive | The context IArchive for the permission check. |
| person | An IPerson for whom you want to add permission. | |
| component | A PackagePublishingPocket. | |
| Returns | The new ArchivePermission, or the existing one if it
already exists. | |
ArchivePermission for a queue admin.| Parameters | archive | The context IArchive for the permission check. |
| person | An IPerson for whom you want to add permission. | |
| component | An IComponent or a string package name. | |
| Returns | The new ArchivePermission, or the existing one if it
already exists. | |
ArchivePermission for a queue admin.| Parameters | archive | The context IArchive for the permission check. |
| person | An IPerson for whom you want to add permission. | |
A PackagePublishingPocket. | ||
| distroseries | An optional IDistroSeries. | |
| Returns | The new ArchivePermission, or the existing one if it
already exists. | |
| Parameters | archive | The context IArchive for the permission check. |
| person | An IPerson for whom you want to revoke permission. | |
| sourcepackagename | An ISourcePackageName or a string
package name. |
Revoke upload permissions for a person.
| Parameters | archive | The archive the permission applies to. |
| person | An IPerson for whom you want to revoke permission. | |
| packageset | An IPackageset or a string package set name. | |
| explicit | The value of the 'explicit' flag for the permission to be revoked. |
| Parameters | archive | The context IArchive for the permission check. |
| person | An IPerson for whom you want to revoke permission. | |
| component | An IComponent or a string package name. |
| Parameters | archive | The context IArchive for the permission check. |
| person | An IPerson for whom you want to revoke permission. | |
A PackagePublishingPocket. |
| Parameters | archive | The context IArchive for the permission check. |
| person | An IPerson for whom you want to revoke permission. | |
| component | An IComponent or a string package name. |
| Parameters | archive | The context IArchive for the permission check. |
| person | An IPerson for whom you want to revoke permission. | |
A PackagePublishingPocket. | ||
| distroseries | An optional IDistroSeries. |