Part of lp.soyuz.interfaces.archiveauthtoken View In Hierarchy
ArchiveAuthTokenSet.| Method | get | Retrieve a token by its database ID. |
| Method | getByToken | Retrieve a token by its token text. |
| Method | getByArchive | Retrieve all the tokens for an archive. |
| Method | getActiveTokenForArchiveAndPerson | Retrieve an active token for the given archive and person. |
| Method | getActiveNamedTokenForArchive | Retrieve an active named token for the given archive and name. |
| Method | getActiveNamedTokensForArchive | Retrieve a subset of active named tokens for the given archive if |
| Method | deactivateNamedTokensForArchive | Deactivate named tokens for the given archive. |
| Parameters | token_id | The database ID. |
| Returns | An object conforming to IArchiveAuthToken. | |
| Parameters | token | The token text for the token. |
| Returns | An object conforming to IArchiveAuthToken. | |
Retrieve all the tokens for an archive. :param archive: The context archive. :return: A result set containing `IArchiveAuthToken`s.
| Parameters | archive | The archive to which the token corresponds. |
| person | The person to which the token corresponds. | |
| Returns | An IArchiveAuthToken or None. | |
Retrieve an active named token for the given archive and name. :param archive: The archive to which the token corresponds. :param name: The name of a named authorization token. :return An object conforming to `IArchiveAuthToken` or None.
Retrieve a subset of active named tokens for the given archive if `names` is specified, or all active named tokens for the archive if `names` is null. :param archive: The archive to which the tokens correspond. :param names: An optional list of token names. :return: A result set containing `IArchiveAuthToken`s.