com.esri.arcgis.system
Interface IAuthorizeLicense

All Superinterfaces:
Serializable
All Known Implementing Classes:
AoAuthorizeLicense

public interface IAuthorizeLicense
extends Serializable

Provides access to members that authorize Esri licenses.

Description

The IAoAuthorizeLicense interface is the starting point for developers who want to silently 'authorize' the ArcGIS Engine Runtime components on client systems.

Product Availability

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


Method Summary
 void authorizeASR(String strAsr, String password)
          Authorize new feature(s).
 void authorizeASRFromFile(String fileName, String password)
          Authorize new feature(s) from file.
 void checkASR(String strAsr, String password)
          Check feature(s).
 void checkASRFromFile(String fileName, String password)
          Check feature(s) from file.
 void deauthorizeASR(String strAsr, String password)
          Deauthorize feature(s).
 void deauthorizeASRFromFile(String fileName, String password)
          Deauthorize feature(s) from file.
 String getFeaturesAdded()
          Retrieves the details of the new authorized features.
 int getLastError(String[] lastError)
          Retrieves the last error message and code from an attempt to process features.
 void repairASR(String strAsr, String password)
          Repair feature(s).
 void repairASRFromFile(String fileName, String password)
          Repair feature(s) from file.
 

Method Detail

getLastError

int getLastError(String[] lastError)
                 throws IOException,
                        AutomationException
Retrieves the last error message and code from an attempt to process features.

Product Availability

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

Parameters:
lastError - The lastError (out: use single element array)
Returns:
The lastErrorCode
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFeaturesAdded

String getFeaturesAdded()
                        throws IOException,
                               AutomationException
Retrieves the details of the new authorized features.

Description

Use the FeaturesAdded property after the AddLicenseFromFile and AddLicense methods to return a list of the license features that were successfully added to the keycodes file.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

authorizeASR

void authorizeASR(String strAsr,
                  String password)
                  throws IOException,
                         AutomationException
Authorize new feature(s).

Product Availability

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

Parameters:
strAsr - The strAsr (in)
password - The password (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

authorizeASRFromFile

void authorizeASRFromFile(String fileName,
                          String password)
                          throws IOException,
                                 AutomationException
Authorize new feature(s) from file.

Product Availability

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

Parameters:
fileName - The fileName (in)
password - The password (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deauthorizeASR

void deauthorizeASR(String strAsr,
                    String password)
                    throws IOException,
                           AutomationException
Deauthorize feature(s).

Product Availability

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

Parameters:
strAsr - The strAsr (in)
password - The password (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deauthorizeASRFromFile

void deauthorizeASRFromFile(String fileName,
                            String password)
                            throws IOException,
                                   AutomationException
Deauthorize feature(s) from file.

Product Availability

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

Parameters:
fileName - The fileName (in)
password - The password (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

repairASR

void repairASR(String strAsr,
               String password)
               throws IOException,
                      AutomationException
Repair feature(s).

Product Availability

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

Parameters:
strAsr - The strAsr (in)
password - The password (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

repairASRFromFile

void repairASRFromFile(String fileName,
                       String password)
                       throws IOException,
                              AutomationException
Repair feature(s) from file.

Product Availability

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

Parameters:
fileName - The fileName (in)
password - The password (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

checkASR

void checkASR(String strAsr,
              String password)
              throws IOException,
                     AutomationException
Check feature(s).

Product Availability

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

Parameters:
strAsr - The strAsr (in)
password - The password (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

checkASRFromFile

void checkASRFromFile(String fileName,
                      String password)
                      throws IOException,
                             AutomationException
Check feature(s) from file.

Product Availability

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

Parameters:
fileName - The fileName (in)
password - The password (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.