|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.system.AoAuthorizeLicense
public class AoAuthorizeLicense
Class performs license authorization.
The AoAuthorizeLicense object can be used by developers to silently 'authorize' the ArcGIS Engine Runtime components on client systems.
If the end user of the standalone custom ArcGIS Engine application has no direct contact with ESRI, the application can either call the SoftwareAuthorization.exe or use the AoAuthorizeLicense object to unlock the functionality of ArcGIS Engine. The advantage of this method is that the software will be authorized silently and does not require the end user to enter registration information.
The developer would follows the steps below to deploy the ArcGIS Engine Runtime to the end user:
The client would install the custom built ArcGIS Engine application. The installation would:
See the topics on licensing and deployment for more information on deploying the ArcGIS Engine Runtime.
| Constructor Summary | |
|---|---|
AoAuthorizeLicense()
Constructs a AoAuthorizeLicense using ArcGIS Engine. |
|
AoAuthorizeLicense(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. AoAuthorizeLicense theAoAuthorizeLicense = (AoAuthorizeLicense) obj; |
|
| Method Summary | |
|---|---|
void |
addLicense(String featureName,
int versionNumber,
String timeoutDate,
String registrationNumber,
String authorizationCode)
Add a new feature to the authorization file. |
void |
addLicenseFromFile(String fileName)
Add new feature authorizations from file. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
String |
getFeaturesAdded()
Retrieves the details of the new features added to the authorization file. |
String |
getLastError()
Retrieves the last error message from an attempt to add new features to the authorization file. |
int |
hashCode()
the hashcode for this object |
| 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 |
|---|
public AoAuthorizeLicense()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public AoAuthorizeLicense(Object obj)
throws IOException
AoAuthorizeLicense theAoAuthorizeLicense = (AoAuthorizeLicense) obj;
obj to AoAuthorizeLicense.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public String getLastError()
throws IOException,
AutomationException
The LastError property returns information about why the AddLicense method failed to add the specified license to the keycodes file. Use the LastError property after the AddLicense method to retrieve information on the nature of any error.
getLastError in interface IAuthorizeLicenseIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getFeaturesAdded()
throws IOException,
AutomationException
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.
getFeaturesAdded in interface IAuthorizeLicenseIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addLicense(String featureName,
int versionNumber,
String timeoutDate,
String registrationNumber,
String authorizationCode)
throws IOException,
AutomationException
The AddLicense method takes the specified license information and adds it to the keycodes file.
Use the LastError property to returns information about why the AddLicense method failed to add the specified license to the keycodes file.
addLicense in interface IAuthorizeLicensefeatureName - The featureName (in)versionNumber - The versionNumber (in)timeoutDate - The timeoutDate (in)registrationNumber - The registrationNumber (in)authorizationCode - The authorizationCode (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addLicenseFromFile(String fileName)
throws IOException,
AutomationException
The AddLicenseFromFile method reads the authorization information in the supplied esri copy protected license file (*.ecp) and adds it to the keycodes file.
addLicenseFromFile in interface IAuthorizeLicensefileName - The fileName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||