Table of Contents

Class: AuthenticatedUser Zope-2.2.1-src/lib/python/Products/OFSP/help/AuthenticatedUser.py

This interface needs to be supported by objects that are returned by user validation and used for access control.

Methods   
getDatabasePath
getId
getRoles
getUserName
hasRole
  getDatabasePath 
getDatabasePath ()

Get a physical path to the user's UserDatabase. A Traversal facility can be used to get the user database from the path returned by this method.

Permission - Python only

  getId 
getId ()

Get the ID of the user. The ID can be used, at least from Python, to get the user from the user's UserDatabase.

Permission - Python only

  getRoles 
getRoles ( object )

Returns a list of the roles the user has on the given object (in the current context?)

Permission - Always available

  getUserName 
getUserName ()

Return the name of a user

Permission - Always available

  hasRole 
hasRole ( object,  roles )

Return a value that is true if the user has the given roles on the given object and return false otherwise.

Permission - Always available


Table of Contents

This document was automatically generated on Mon Sep 4 07:33:06 2000 by HappyDoc version r0_6