3
6ßL]ô  ã               @   sH   d dl mZ d dlmZmZmZmZmZ ddlm	Z	 G dd„ deƒZ
dS )é    )ÚAction)ÚBoolÚEventÚInstanceÚ	InterfaceÚListé   )ÚIUserc               @   sX   e Zd ZdZeeeƒƒZeeƒZ	eeeƒƒZ
eeƒZdd„ Zdd„ Zdd„ Zdd	„ Zd
S )ÚIUserManagerz<The interface implemented by a user manager to manage users.c             C   s   dS )zmReturn True if the user manager is bootstrapping.  Typically this is
        when no users have been defined.N© )Úselfr   r   úI/tmp/pip-install-5sebvq2j/apptools/apptools/permissions/i_user_manager.pyÚbootstrapping*   s    zIUserManager.bootstrappingc             C   s   dS )zšAuthenticate (ie. login) the user.  If successfully authenticated
        all secured objects are re-enabled according to the user's permissions.
        Nr   )r   r   r   r   Úauthenticate_user.   s    zIUserManager.authenticate_userc             C   s   dS )zPUnauthenticate (ie. logout) the user.  All secured objects are
        disabled.Nr   )r   r   r   r   Úunauthenticate_user3   s    z IUserManager.unauthenticate_userc             C   s   dS )zûReturn an object that implements IUser for the user selected based
        on the given name.  If there was no user selected then return None.
        How the name is interpreted (eg. as a regular expression) is determined
        by the user manager.Nr   )r   Únamer   r   r   Úselect_user7   s    zIUserManager.select_userN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   Zmanagement_actionsr	   ÚuserZuser_actionsr   Zuser_authenticatedr   r   r   r   r   r   r   r   r
      s   r
   N)Zpyface.action.apir   Z
traits.apir   r   r   r   r   Zi_userr	   r
   r   r   r   r   Ú<module>   s   