com.esri.arcgis.geodatabase
Interface IUserInfo

All Superinterfaces:
Serializable

public interface IUserInfo
extends Serializable

Provides access to members describing a user connected to a database.

Remarks

Returns information about the Geodatabase user.

The users name and its corresponding sessionID can used to disconnect the particular user with the IDatabaseConnectionInfo3.DisconnectUser method.

Additional information such as the time the user connected to the database and the computer from which they are connected is also available.
ClientName returns the name of the computer that is connected to the workspace.

ConnectionTime returns the time the connection was made to the workspace in database time.

IsDirectConnection is used to determine the style of connection. Returning True would indicate that the load was on the client side (Direct Connection) while returning False would indicate that the load was on the server side (Application Connection)

IsOwnConnection indicates if the IUserInfo references the connection made by the user.

Name returns the user name as a string.

SessionID returns the identifier of the connection. The sessionID can be used by a Geodatabase administrator with IDatabaseConnectionInfo3 to disconnect the associated connection.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 String getClientName()
          The name of the connected computer
 Object getConnectionTime()
          The time that the connection was made
 String getName()
          The name of the connected user.
 int getSessionID()
          The unique ID of the connection.
 boolean isDirectConnection()
          The type of connection.
 boolean isOwnConnection()
          Whether this connection is the current users' connection.
 

Method Detail

getSessionID

int getSessionID()
                 throws IOException,
                        AutomationException
The unique ID of the connection.

Description

The Session ID is the unique identifier generated by the Enterprise Geodatabase for every connection.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
The sessionID
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getName

String getName()
               throws IOException,
                      AutomationException
The name of the connected user.

Description

The User name used to authenticate the connection to the Enterprise Geodatabase.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
The name
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getClientName

String getClientName()
                     throws IOException,
                            AutomationException
The name of the connected computer

Description

The name of the client machine where the connection to the Enterprise Geodatabase was made from.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
The name
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getConnectionTime

Object getConnectionTime()
                         throws IOException,
                                AutomationException
The time that the connection was made

Description

Server time when the connection was established.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
A Variant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isDirectConnection

boolean isDirectConnection()
                           throws IOException,
                                  AutomationException
The type of connection.

Description

Boolean property specifying if the connection is a direct connection.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
The isDirectConnect
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isOwnConnection

boolean isOwnConnection()
                        throws IOException,
                               AutomationException
Whether this connection is the current users' connection.

Description

Boolean property specifying if the connection is the same connection that was used for the get_ConnectedUsers call.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
The isOwnConnection
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.