com.esri.arcgis.server
Class User

java.lang.Object
  extended by com.esri.arcgis.server.User
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, IUser, ISupportErrorInfo, Serializable

public class User
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, ISupportErrorInfo, IUser

Product Availability

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

See Also:
Serialized Form

Constructor Summary
User()
          Constructs a User using ArcGIS Engine.
User(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
User theUser = (User) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 String getDescription()
          Returns the user description.
 String getEmail()
          Returns the user's email.
 String getFullname()
          Returns the user's full name.
 String getPassword()
          Returns the user password.
 String getSecretAnswer()
          Returns the user's answer to secret question.
 String getSecretQuestion()
          Returns the user's secret question.
 String getUsername()
          Returns the user name.
 int hashCode()
          the hashcode for this object
 void interfaceSupportsErrorInfo(GUID riid)
          interfaceSupportsErrorInfo
 void setDescription(String description)
          Sets the user description.
 void setEmail(String email)
          Sets the user's email.
 void setFullname(String fullname)
          Sets the user's full name.
 void setPassword(String password)
          Sets the user password.
 void setSecretAnswer(String secretAnswer)
          Sets the user's answer to the secret question.
 void setSecretQuestion(String secretQuestion)
          Sets the user's secret question.
 void setUsername(String userName)
          Sets the user name.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

User

public User()
     throws IOException,
            UnknownHostException
Constructs a User using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

User

public User(Object obj)
     throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
User theUser = (User) obj;

Construct a User using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to User.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

interfaceSupportsErrorInfo

public void interfaceSupportsErrorInfo(GUID riid)
                                throws IOException,
                                       AutomationException
interfaceSupportsErrorInfo

Description

Indicates whether the interface supports IErrorInfo.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
interfaceSupportsErrorInfo in interface ISupportErrorInfo
Parameters:
riid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setUsername

public void setUsername(String userName)
                 throws IOException,
                        AutomationException
Sets the user name.

Product Availability

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

Specified by:
setUsername in interface IUser
Parameters:
userName - The userName (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getUsername

public String getUsername()
                   throws IOException,
                          AutomationException
Returns the user name.

Product Availability

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

Specified by:
getUsername in interface IUser
Returns:
The userName
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setPassword

public void setPassword(String password)
                 throws IOException,
                        AutomationException
Sets the user password.

Product Availability

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

Specified by:
setPassword in interface IUser
Parameters:
password - The password (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getPassword

public String getPassword()
                   throws IOException,
                          AutomationException
Returns the user password.

Product Availability

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

Specified by:
getPassword in interface IUser
Returns:
The password
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDescription

public void setDescription(String description)
                    throws IOException,
                           AutomationException
Sets the user description.

Product Availability

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

Specified by:
setDescription in interface IUser
Parameters:
description - The description (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDescription

public String getDescription()
                      throws IOException,
                             AutomationException
Returns the user description.

Product Availability

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

Specified by:
getDescription in interface IUser
Returns:
The description
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setEmail

public void setEmail(String email)
              throws IOException,
                     AutomationException
Sets the user's email.

Product Availability

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

Specified by:
setEmail in interface IUser
Parameters:
email - The email (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getEmail

public String getEmail()
                throws IOException,
                       AutomationException
Returns the user's email.

Product Availability

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

Specified by:
getEmail in interface IUser
Returns:
The email
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setFullname

public void setFullname(String fullname)
                 throws IOException,
                        AutomationException
Sets the user's full name.

Product Availability

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

Specified by:
setFullname in interface IUser
Parameters:
fullname - The fullname (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFullname

public String getFullname()
                   throws IOException,
                          AutomationException
Returns the user's full name.

Product Availability

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

Specified by:
getFullname in interface IUser
Returns:
The fullname
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setSecretQuestion

public void setSecretQuestion(String secretQuestion)
                       throws IOException,
                              AutomationException
Sets the user's secret question.

Product Availability

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

Specified by:
setSecretQuestion in interface IUser
Parameters:
secretQuestion - The secretQuestion (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSecretQuestion

public String getSecretQuestion()
                         throws IOException,
                                AutomationException
Returns the user's secret question.

Product Availability

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

Specified by:
getSecretQuestion in interface IUser
Returns:
The secretQuestion
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setSecretAnswer

public void setSecretAnswer(String secretAnswer)
                     throws IOException,
                            AutomationException
Sets the user's answer to the secret question.

Product Availability

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

Specified by:
setSecretAnswer in interface IUser
Parameters:
secretAnswer - The secretAnswer (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSecretAnswer

public String getSecretAnswer()
                       throws IOException,
                              AutomationException
Returns the user's answer to secret question.

Product Availability

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

Specified by:
getSecretAnswer in interface IUser
Returns:
The secretAnswer
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.