fmeobjects.FMELicenseManager¶
FMELicenseManager.get3rdLicenseProperty(…) |
Retrieves the value of a property from a 3rd party license file. | ||
FMELicenseManager.getAllFactories() |
Returns all the factory names for the current license. | ||
FMELicenseManager.getAllFormats() |
Returns all the format names for the current license. | ||
FMELicenseManager.getAllFunctions() |
Returns all the function names for the current license. | ||
FMELicenseManager.getAppLicenseProperty(…) |
Retrieves the value of a property for a given application. | ||
FMELicenseManager.getFactoryLicenseProperty(…) |
Retrieves the value of a property for a given factory. | ||
FMELicenseManager.getFactoryMinBaseCapability |
getFactoryMinBaseCapability(factoryName), | ||
FMELicenseManager.getFunctionLicenseProperty(…) |
Retrieves the value of a property for a given function. | ||
FMELicenseManager.getFunctionMinBaseCapability(…) |
Returns the minimum base capability for the specified function to be licensed. | ||
FMELicenseManager.getLicenseProperty(property) |
Retrieves the value of a property from the current license. | ||
FMELicenseManager.getLicenseType() |
Returns the current license type. | ||
FMELicenseManager.getMaxFMEProcesses() |
This routine returns the maximum number of licensed fme processes. | ||
FMELicenseManager.getMaxFMEWorkerProcesses() |
This routine returns the maximum number of licensed fmeworker processes. | ||
FMELicenseManager.getReaderLicenseProperty(…) |
Retrieves the value of a property for a given reader. | ||
FMELicenseManager.getReaderMinBaseCapability(…) |
Returns the minimum base capability for the specified reader to be licensed. | ||
FMELicenseManager.getWriterLicenseProperty(…) |
Retrieves the value of a property for a given writer. | ||
FMELicenseManager.getWriterMinBaseCapability(…) |
Returns the minimum base capability for the writer factory to be licensed. | ||
FMELicenseManager.hasBaseCapability(capability) |
Returns whether or not the minimum base capability is met. | ||
FMELicenseManager.isAppLicensed(appName) |
Returns whether or not an application is licensed. | ||
FMELicenseManager.isArcGISInstalled(productName) |
Returns whether or not a given ArcGIS product is installed. | ||
FMELicenseManager.isArcObjectsLicensed() |
|
||
FMELicenseManager.isFactoryLicensed(factoryName) |
Returns whether or not a given factory is licensed. | ||
FMELicenseManager.isFunctionLicensed(…) |
Returns whether or not a given function is licensed. | ||
FMELicenseManager.isGtransInstalled() |
Returns whether or not the Gtrans reprojection library is installed. | ||
FMELicenseManager.isReaderLicensed(readerName) |
Returns whether or not a given reader is licensed. | ||
FMELicenseManager.isWriterLicensed(writerName) |
Returns whether or not a given writer is licensed. | ||
FMELicenseManager.validateLicenseFile(…) |
This method is used to validate a license file. |
-
class
FMELicenseManager¶ Bases:
objectFME License Manager Class
init()
This class provides an interface to security functionality.
-
__init__¶ Initialize self. See help(type(self)) for accurate signature.
-
get3rdLicenseProperty(licenseFileName, vendorID)¶ Retrieves the value of a property from a 3rd party license file.
Parameters: - licenseFileName (str) – The file name of a 3rd party license file.
- vendorID (int) – The custom key assigned by the vendor, used to verify that the property is licensed.
- vendorRegKey (int) – The registration code of the vendor assigned by Safe Software, used to verify that the property is licensed.
- property (str) – The name of the property to be retrieved.
Return type: Returns: The value of the property if successful or
Noneotherwise.
-
getAllFactories()¶ Returns all the factory names for the current license. For all factories the list will be populated with <factory name>/<license value> pairs. <license value> can be either
kFME_FormatLicensedorkFME_FormatUnlicensed.Return type: tuple[str] or NoneReturns: All the factories for the current license or Noneif unsuccessful.
-
getAllFormats()¶ Returns all the format names for the current license. For all formats the list will be populated with <format name>/<license value> pairs. <license value> can be one of the following:
kFME_FormatRead: Only reader is licensed.kFME_FormatWrite: Only writer is licensed.kFME_FormatBoth: Both reader and writer are licensed.kFME_FormatUnlicensed: Neither reader nor writer is licensed.Return type: tuple[str] or None Returns: All the formats for the current license or Noneif unsuccessful.
-
getAllFunctions()¶ Returns all the function names for the current license. For all functions the list will be populated with <function name>/<license value> pairs. <license value> can be either
kFME_FormatLicensedorkFME_FormatUnlicensed.Return type: tuple[str] or None Returns: All the functions for the current license or Noneif unsuccessful.
-
getAppLicenseProperty(appName, property)¶ Retrieves the value of a property for a given application. This is only used for application in which there are different levels of support.
Parameters: Return type: Returns: The value of the property if successful or
Noneotherwise.
-
getFactoryLicenseProperty(factoryName, property)¶ Retrieves the value of a property for a given factory. This is only used for factories in which there are different levels of support.
Parameters: Return type: Returns: The value of the property if successful or
Noneotherwise.
-
getFactoryMinBaseCapability()¶ getFactoryMinBaseCapability(factoryName),
Returns the minimum base capability for the specified factory to be licensed. Will return one of the following capability names:
- DESKTOP
- PROFESSIONAL
- ENTERPRISE_GIS
- ENTERPRISE_DB
- SERVER
- SMALLWORLD
- NATIONAL
- BASIC_RASTER
- ADVANCED_RASTER
- EXTRA_COST
Parameters: factoryName (str) – The name of the factory. Return type: str Returns: The minimum base capability or Noneotherwise.
-
getFunctionLicenseProperty(functionName, property)¶ Retrieves the value of a property for a given function. This is only used for function in which there are different levels of support.
Parameters: Return type: Returns: The value of the property if successful or
Noneotherwise.
-
getFunctionMinBaseCapability(functionName)¶ Returns the minimum base capability for the specified function to be licensed. Will return one of the following capability names:
- DESKTOP
- PROFESSIONAL
- ENTERPRISE_GIS
- ENTERPRISE_DB
- SERVER
- SMALLWORLD
- NATIONAL
- BASIC_RASTER
- ADVANCED_RASTER
- EXTRA_COST
Parameters: functionName (str) – The name of the function. Return type: str Returns: The minimum base capability or Noneotherwise.
-
getLicenseProperty(property)¶ Retrieves the value of a property from the current license.
Parameters: property (str) – The name of the property to be retrieved. Return type: str Returns: The value of the property if successful or Noneotherwise.
-
getLicenseType()¶ Returns the current license type. Possible values are:
- MACHINE SPECIFIC
- OEM
- GENERIC
- FLOATING.
Return type: str Returns: The current license type if successful or Noneotherwise.
-
getMaxFMEProcesses()¶ This routine returns the maximum number of licensed fme processes.
Return type: int Returns: Returns the maximum number of licensed fme processes.
-
getMaxFMEWorkerProcesses()¶ This routine returns the maximum number of licensed fmeworker processes.
Return type: int Returns: Returns the maximum number of licensed fmeworker processes.
-
getReaderLicenseProperty(readerName, property)¶ Retrieves the value of a property for a given reader. This is only used for reader in which there are different levels of support.
Parameters: Return type: Returns: The value of the property if successful or
Noneotherwise.
-
getReaderMinBaseCapability(readerName)¶ Returns the minimum base capability for the specified reader to be licensed. Will return one of the following capability names:
- DESKTOP
- PROFESSIONAL
- ENTERPRISE_GIS
- ENTERPRISE_DB
- SERVER
- SMALLWORLD
- NATIONAL
- BASIC_RASTER
- ADVANCED_RASTER
- EXTRA_COST
Parameters: readerName (str) – The name of the reader. Return type: str Returns: The minimum base capability or Noneotherwise.
-
getWriterLicenseProperty(writerName, property)¶ Retrieves the value of a property for a given writer. This is only used for writer in which there are different levels of support.
Parameters: Return type: Returns: The value of the property if successful or
Noneotherwise.
-
getWriterMinBaseCapability(writerName)¶ Returns the minimum base capability for the writer factory to be licensed. Will return one of the following capability names:
- DESKTOP
- PROFESSIONAL
- ENTERPRISE_GIS
- ENTERPRISE_DB
- SERVER
- SMALLWORLD
- NATIONAL
- BASIC_RASTER
- ADVANCED_RASTER
- EXTRA_COST
Parameters: writerName (str) – The name of the writer. Return type: str Returns: The minimum base capability or Noneotherwise.
-
hasBaseCapability(capability)¶ - Returns whether or not the minimum base capability is met.
Return type: bool Returns: Trueif the capability is met,Falseotherwise.
-
isAppLicensed(appName)¶ Returns whether or not an application is licensed.
Parameters: appName (str) – The name of the application. Return type: bool Returns: Returns Trueif the application is licensed andFalseotherwise.
-
isArcGISInstalled(productName)¶ Returns whether or not a given ArcGIS product is installed. The following products are supported:
- ArcGIS Desktop
- ArcGIS Engine
- ArcGIS Server
None- any ArcGIS product
Parameters: productName (str) – The name of the ArcGIS product. Return type: bool Returns: Returns Trueif the product is installed andFalseotherwise.
-
isFactoryLicensed(factoryName)¶ Returns whether or not a given factory is licensed.
Parameters: factoryName (str) – The name of a given factory. Return type: bool Returns: Returns Trueif the factory is licensed andFalseotherwise.
-
isFunctionLicensed(functionName)¶ Returns whether or not a given function is licensed.
Parameters: functionName (str) – The name of a given function. Return type: bool Returns: Returns Trueif the function is licensed andFalseotherwise.
-
isGtransInstalled()¶ Returns whether or not the Gtrans reprojection library is installed.
Return type: bool Returns: Returns Trueif the Gtrans reprojection library is installed andFalseotherwise.
-
isReaderLicensed(readerName)¶ Returns whether or not a given reader is licensed.
Parameters: readerName (str) – The name of a given reader. Return type: bool Returns: Returns Trueif the reader is licensed andFalseotherwise.
-
isWriterLicensed(writerName)¶ Returns whether or not a given writer is licensed.
Parameters: writerName (str) – The name of a given writer. Return type: bool Returns: Returns Trueif the writer is licensed andFalseotherwise.
-
validateLicenseFile(licenseFilePath)¶ This method is used to validate a license file. Note: It is not using the license file but rather merely returning whether or not the license file is valid for the current machine if it is installed.
Parameters: licenseFilePath (str) – The full path of the license file. Return type: int Returns: If the file is valid it returns 0 otherwise a non-zero error code.
-