Package omeroweb :: Package webgateway :: Module views :: Class UserProxy
[hide private]
[frames] | no frames]

Class UserProxy

source code


Represents the current user of the connection, with methods delegating to the connection itself.

Instance Methods [hide private]
 
__init__(self, blitzcon)
Initialises the User proxy with the omero.gateway.BlitzGateway connection
source code
 
logIn(self)
Sets the loggedIn Flag to True
source code
Boolean
isAdmin(self)
True if the current user is an admin
source code
Boolean
canBeAdmin(self)
True if the current user can be admin
source code
Long
getId(self)
Returns the ID of the current user
source code
String
getName(self)
Returns the Name of the current user
source code
String
getFirstName(self)
Returns the first name of the current user
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, blitzcon)
(Constructor)

source code 

Initialises the User proxy with the omero.gateway.BlitzGateway connection

Parameters:
Overrides: object.__init__

isAdmin(self)

source code 

True if the current user is an admin

Returns: Boolean
True if the current user is an admin

canBeAdmin(self)

source code 

True if the current user can be admin

Returns: Boolean
True if the current user can be admin

getId(self)

source code 

Returns the ID of the current user

Returns: Long
User ID

getName(self)

source code 

Returns the Name of the current user

Returns: String
User Name

getFirstName(self)

source code 

Returns the first name of the current user

Returns: String
First Name