com.remedy.cmdb.api
Class CMDBUtil

java.lang.Object
  extended bycom.remedy.cmdb.api.CMDBUtil

public class CMDBUtil
extends java.lang.Object

The CMDBUtil class defines all the utility methods for the Class Manager API.


Field Summary
static int AR_BULK_ENTRY_ACTION_CANCEL
          Cancels all bulked transactions.
static int AR_BULK_ENTRY_ACTION_SEND
          Sends all bulked transactions to AR System.
static java.lang.String CMDB_ALL_OBJECT
          All-relationship graph query.
static java.lang.String CMDB_ALL_RELATIONSHIP
          All-relationship graph query.
static int CMDB_FEDERATION_ACTIVATION_EXPAND
          Return the expanded federated link
static int CMDB_FEDERATION_ACTIVATION_LAUNCH
          Launch the federated link in context
static int CMDB_FEDERATION_ACTIVATION_NONE
          Take no action
static int CMDB_RELATIONSHIP_DIRECTION_IN
          Relation on an object where the object is on the right, with an arrow pointing at the node.
static int CMDB_RELATIONSHIP_DIRECTION_OUT
          Relation on an object where the object is on the left, with an arrow coming out from the node.
static java.lang.String CMDB_VER_APP_ID_CMDB
          Application ID for CMDB
static java.lang.String CMDB_VER_APP_ID_RECON_ENG
          Application ID for Reconciliation Engine
static java.lang.String CMDB_WEAK_OBJECT
          Weak relationship-only graph query.
static java.lang.String CMDB_WEAK_RELATIONSHIP
          Weak relationship-only graph query.
 
Constructor Summary
CMDBUtil()
           
 
Method Summary
static CMDBFederatedActivateInfo CMDBActivateFederatedInContext(ARServerUser context, CMDBClassNameKey aClassKey, java.lang.String instanceId, java.lang.String federatedInstanceId, int activateOption)
          Get Activate Federated In Context
static CMDBFederatedActivateInfo CMDBActivateFederatedInContext(ARServerUser context, CMDBClassNameKey aClassKey, java.lang.String aDataSetId, java.lang.String instanceId, java.lang.String federatedInstanceId, int activateOption)
          Get Activate Federated In Context
static void CMDBBeginBulkEntryTransaction(ARServerUser context)
          Utility method to start a bulk entry transaction.
static java.lang.String CMDBCreateGuid(ARServerUser context)
          Creates a GUID and returns it.
static BulkEntryReturn[] CMDBEndBulkEntryTransaction(ARServerUser context, int actionType)
          Utility method to end a bulk entry transaction by either sending the transaction to AR System or canceling the transaction.
static java.lang.String CMDBExpandParametersForCI(ARServerUser context, java.lang.String paramString, CMDBInstanceBase instance)
          Gets the Expand parameters for a CI
static void CMDBExport(ARServerUser context, CMDBItemBase[] exportItemArray, java.lang.String exportFormat, java.lang.String directoryPath)
          Utility method to export the metadata and instance data from AR System.
static java.lang.String CMDBExportData(ARServerUser ctx, CMDBClassNameKey aClassKey, java.lang.String datasetId, java.lang.String query, java.lang.String[] attributeGetList, CMDBSort[] sortArray, int firstRetrieve, int maxRetrieve)
          Export the Instance Data
static java.lang.String CMDBExportDef(ARServerUser context, CMDBXMLExportItem[] exportItemList)
          Export the Class/Attribute definitions
static CMDBUIComponentResult[] CMDBGetCMDBUIComponents(ARServerUser context, CMDBUIComponentInfo inputInfo, java.lang.String datasetId, java.lang.String instanceId)
           
static CMDBAuditValueList[] CMDBGetCopyAuditData(ARServerUser context, CMDBClassNameKey classNameId, java.lang.String instanceId, java.lang.String datasetId, QualifierInfo query, java.lang.String[] attributeList)
           
static CMDBInstanceBase CMDBGetInstanceBase(ARServerUser context, CMDBClassNameKey classKey, java.lang.String datasetId, int getMask, java.lang.String instanceId, java.lang.String[] attributeNames)
           
static CMDBInstanceBase[] CMDBGetListInstanceWithAttributes1(ARServerUser ctx, CMDBClassNameKey aClassKey, java.lang.String datasetId, int getMask, java.lang.String query, java.lang.String[] attributeGetList, CMDBSort[] sortArray, int firstRetrieve, int maxRetrieve, java.lang.Integer numMatches)
           
static CMDBInstanceBase[] CMDBGetRelatedFederatedInContext(ARServerUser context, CMDBClassNameKey aClassKey, java.lang.String instanceId, java.lang.String[] attributeNames)
          Get Related Federated In Context
static CMDBInstanceBase[] CMDBGetRelatedFederatedInContext(ARServerUser context, CMDBClassNameKey aClassKey, java.lang.String aDataSetId, java.lang.String instanceId, java.lang.String[] attributeNames)
          Get Related Federated In Context
static void CMDBGetServerPort(ARServerUser context, java.lang.Integer tcpPort, java.lang.Integer rpcPort)
          Gets the server TCP and RPC ports.
static CMDBVersionInfo[] CMDBGetVersions(ARServerUser context, java.lang.String[] AppIdList)
          Gets Version information in CMDBVersionInfo which is having following parameter.
static CMDBGraphResult CMDBGraphQuery(ARServerUser context, CMDBClassNameKey startClassNameId, java.lang.String aDatasetId, int aGetMask, java.lang.String startExtensionId, java.lang.String startInstanceId, int numLevels, int direction, boolean noMatchProceed, boolean onMatchProceed, CMDBGraph[] graphArray)
          Method to run a graph query.
static CMDBGraphResult CMDBGraphQuery(ARServerUser context, CMDBClassNameKey startClassNameId, java.lang.String startExtensionId, java.lang.String startInstanceId, int numLevels, int direction, boolean noMatchProceed, boolean onMatchProceed, CMDBGraph[] graphArray)
          Method to run a graph query.
static void CMDBImport(ARServerUser context, CMDBItemBase[] importItemArray, java.lang.String directoryPath)
          Utility method to import the metadata and instance data into AR System.
static void CMDBImportData(ARServerUser ctx, int importOption, java.lang.String importBuf)
          Import the Instance Data
static void CMDBImportDef(ARServerUser ctx, CMDBXMLImportItem[] importItem, int importOption, java.lang.String importBuf)
          Import the Class/Attribute definitions
static void CMDBRECancelJobRun(ARServerUser context, java.lang.String jobRunId)
          Cancel running Reconciliation Engine Job
static java.lang.String CMDBREStartJobRun(ARServerUser context, java.lang.String jobName, CMDBClassQual[] qualList, CMDBREDatasetPair[] datasetList)
          Start Existing Reconciliation Engine Job
static boolean CMDBRunQualificationForCI(ARServerUser context, java.lang.String qualifier, CMDBAttributeValue[] attributeValue)
          Check the qualification for a CI
static void CMDBSetServerPort(ARServerUser context, java.lang.Integer tcpPort, java.lang.Integer rpcPort)
          Sets the server TCP and RPC ports.
static void CMDBSystemInit(ARServerUser context, PropInfo[] sysProps)
          Initializes the system properties.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AR_BULK_ENTRY_ACTION_SEND

public static final int AR_BULK_ENTRY_ACTION_SEND
Sends all bulked transactions to AR System.

See Also:
Constant Field Values

AR_BULK_ENTRY_ACTION_CANCEL

public static final int AR_BULK_ENTRY_ACTION_CANCEL
Cancels all bulked transactions.

See Also:
Constant Field Values

CMDB_RELATIONSHIP_DIRECTION_OUT

public static final int CMDB_RELATIONSHIP_DIRECTION_OUT
Relation on an object where the object is on the left, with an arrow coming out from the node.

See Also:
Constant Field Values

CMDB_RELATIONSHIP_DIRECTION_IN

public static final int CMDB_RELATIONSHIP_DIRECTION_IN
Relation on an object where the object is on the right, with an arrow pointing at the node.

See Also:
Constant Field Values

CMDB_WEAK_RELATIONSHIP

public static final java.lang.String CMDB_WEAK_RELATIONSHIP
Weak relationship-only graph query. Use this as the namespace and classname of the relationship object in the adjacency list.

See Also:
Constant Field Values

CMDB_WEAK_OBJECT

public static final java.lang.String CMDB_WEAK_OBJECT
Weak relationship-only graph query. Use this as the namespace and classname of the object in the adjacency list.

See Also:
Constant Field Values

CMDB_ALL_RELATIONSHIP

public static final java.lang.String CMDB_ALL_RELATIONSHIP
All-relationship graph query. Use this as the namespace and classname of the object in the adjacency list.

See Also:
Constant Field Values

CMDB_ALL_OBJECT

public static final java.lang.String CMDB_ALL_OBJECT
All-relationship graph query. Use this as the namespace and classname of the object in the adjacency list.

See Also:
Constant Field Values

CMDB_FEDERATION_ACTIVATION_NONE

public static final int CMDB_FEDERATION_ACTIVATION_NONE
Take no action

See Also:
Constant Field Values

CMDB_FEDERATION_ACTIVATION_EXPAND

public static final int CMDB_FEDERATION_ACTIVATION_EXPAND
Return the expanded federated link

See Also:
Constant Field Values

CMDB_FEDERATION_ACTIVATION_LAUNCH

public static final int CMDB_FEDERATION_ACTIVATION_LAUNCH
Launch the federated link in context

See Also:
Constant Field Values

CMDB_VER_APP_ID_CMDB

public static final java.lang.String CMDB_VER_APP_ID_CMDB
Application ID for CMDB

See Also:
Constant Field Values

CMDB_VER_APP_ID_RECON_ENG

public static final java.lang.String CMDB_VER_APP_ID_RECON_ENG
Application ID for Reconciliation Engine

See Also:
Constant Field Values
Constructor Detail

CMDBUtil

public CMDBUtil()
Method Detail

CMDBImport

public static void CMDBImport(ARServerUser context,
                              CMDBItemBase[] importItemArray,
                              java.lang.String directoryPath)
                       throws ARException,
                              java.io.IOException
Utility method to import the metadata and instance data into AR System.

Parameters:
context - AR System user and host information
importItemArray - Array of items to be imported. NULL is OK; implies import of all classes and instances present in the given directory i.e. all the suitable files within this directory.
directoryPath - source directory to import the specified classes or instances
Throws:
ARException - if the definition cannot be imported
java.io.IOException

CMDBExport

public static void CMDBExport(ARServerUser context,
                              CMDBItemBase[] exportItemArray,
                              java.lang.String exportFormat,
                              java.lang.String directoryPath)
                       throws ARException,
                              java.io.IOException
Utility method to export the metadata and instance data from AR System.

Parameters:
context - AR System user and host information
exportItemArray - array of items to be exported
exportFormat - Export format. Currently only XML is supported, so specify "xml" or NULL.
directoryPath - source directory to import the specified classes or instances
Throws:
ARException - if the definition cannot be exported
java.io.IOException

CMDBBeginBulkEntryTransaction

public static void CMDBBeginBulkEntryTransaction(ARServerUser context)
                                          throws ARException
Utility method to start a bulk entry transaction.

Parameters:
context - AR System user and host information
Throws:
ARException - if the bulk transaction cannot be started

CMDBEndBulkEntryTransaction

public static BulkEntryReturn[] CMDBEndBulkEntryTransaction(ARServerUser context,
                                                            int actionType)
                                                     throws ARException
Utility method to end a bulk entry transaction by either sending the transaction to AR System or canceling the transaction.

Parameters:
context - AR System user and host information
actionType - The action type. It can be AR_BULK_ENTRY_ACTION_SEND or AR_BULK_ENTRY_ACTION_CANCEL
Returns:
status and entry ID of all bulked calls
Throws:
ARException - if the bulk transaction cannot be finished with the requested type

CMDBGraphQuery

public static CMDBGraphResult CMDBGraphQuery(ARServerUser context,
                                             CMDBClassNameKey startClassNameId,
                                             java.lang.String startExtensionId,
                                             java.lang.String startInstanceId,
                                             int numLevels,
                                             int direction,
                                             boolean noMatchProceed,
                                             boolean onMatchProceed,
                                             CMDBGraph[] graphArray)
                                      throws ARException
Method to run a graph query.

Parameters:
context - AR System user and host information
startClassNameId - class name ID of the starting node
startExtensionId - extension ID of the starting node
startInstanceId - instance ID of the starting node
numLevels - number of levels to go, -1 means all
direction - 1 for impact (node on the right), 0 for cause (node on the left)
noMatchProceed - boolean indicating whether to proceed if instance does not match specified qualification
onMatchProceed - boolean indicating whether to proceed on matching of specified instance
graphArray - input graph to query on
Returns:
CMDBGraphResult list of objects and relations returned via graph walking. Empty object is returned if no instance matches.
Throws:
ARException - if the query cannot be finished successfully

CMDBGraphQuery

public static CMDBGraphResult CMDBGraphQuery(ARServerUser context,
                                             CMDBClassNameKey startClassNameId,
                                             java.lang.String aDatasetId,
                                             int aGetMask,
                                             java.lang.String startExtensionId,
                                             java.lang.String startInstanceId,
                                             int numLevels,
                                             int direction,
                                             boolean noMatchProceed,
                                             boolean onMatchProceed,
                                             CMDBGraph[] graphArray)
                                      throws ARException
Method to run a graph query.

Parameters:
context - AR System user and host information
startClassNameId - class name ID of the starting node
aDatasetId - DataSetId
aGetMask - get mask 0 for none, 1 for current and 2 for an overlay
startExtensionId - extension ID of the starting node
startInstanceId - instance ID of the starting node
numLevels - number of levels to go, -1 means all
direction - 1 for impact (node on the right), 0 for cause (node on the left)
noMatchProceed - boolean indicating whether to proceed if instance does not match specified qualification
onMatchProceed - boolean indicating whether to proceed on matching of specified instance
graphArray - input graph to query on
Returns:
CMDBGraphResult list of objects and relations returned via graph walking. Empty object is returned if no instance matches.
Throws:
ARException - if the query cannot be finished successfully

CMDBSetServerPort

public static void CMDBSetServerPort(ARServerUser context,
                                     java.lang.Integer tcpPort,
                                     java.lang.Integer rpcPort)
                              throws ARException
Sets the server TCP and RPC ports.

Parameters:
context - AR System user and host infomation
tcpPort - AR System server TCP port to be set. If null is provided, then TCP port will not be set.
rpcPort - AR System server RPC port to be set. If null is provided, then RPC port will not be set.
Throws:
ARException - if the port cannot be retrieved

CMDBGetServerPort

public static void CMDBGetServerPort(ARServerUser context,
                                     java.lang.Integer tcpPort,
                                     java.lang.Integer rpcPort)
                              throws ARException
Gets the server TCP and RPC ports.

Parameters:
context - AR System user and host infomation
tcpPort - AR System server TCP port to retrieve. If null is provided, then TCP port will not be retrieved.
rpcPort - AR System server RPC port to retrieve. If null is provided, then RPC port will not be retrieved.
Throws:
ARException - if the port cannot be retrieved

CMDBCreateGuid

public static java.lang.String CMDBCreateGuid(ARServerUser context)
                                       throws ARException
Creates a GUID and returns it.

Parameters:
context - AR System user and host infomation
Throws:
ARException - if the GUID cannot be created

CMDBSystemInit

public static void CMDBSystemInit(ARServerUser context,
                                  PropInfo[] sysProps)
                           throws ARException
Initializes the system properties. This function is reserved for future use.

Parameters:
context - AR System user and host infomation
sysProps - The system properties to be initialized
Throws:
ARException - if the system properties cannot be initialized

CMDBGetVersions

public static CMDBVersionInfo[] CMDBGetVersions(ARServerUser context,
                                                java.lang.String[] AppIdList)
                                         throws ARException
Gets Version information in CMDBVersionInfo which is having following parameter. applicationId Application Id majorVer Major Version minorVer Minor Version maintenanceVer Maintenance Version patchNum Patch Number isExist whether Application ID exist, returns true if yes false if not.

Parameters:
context - AR System user and host infomation
AppIdList - AR System ID of application for which details are asked.
Returns:
List of array of objects of CMDBVersionInfo, for Application ID's passed.
Throws:
ARException - if Version Information cannot be retrived

CMDBREStartJobRun

public static java.lang.String CMDBREStartJobRun(ARServerUser context,
                                                 java.lang.String jobName,
                                                 CMDBClassQual[] qualList,
                                                 CMDBREDatasetPair[] datasetList)
                                          throws ARException
Start Existing Reconciliation Engine Job

Parameters:
context - AR System user and host infomation
jobName - Reconciliation Engine Job Name
qualList - class qualification list
datasetList - dataset list
Returns:
jobRunId Reconciliation Engine Running Job Id
Throws:
ARException - if Job cannot be started

CMDBRECancelJobRun

public static void CMDBRECancelJobRun(ARServerUser context,
                                      java.lang.String jobRunId)
                               throws ARException
Cancel running Reconciliation Engine Job

Parameters:
context - AR System user and host infomation
jobRunId - Reconciliation Engine Job Name
Throws:
ARException - Job Cannot Be Started

CMDBGetRelatedFederatedInContext

public static CMDBInstanceBase[] CMDBGetRelatedFederatedInContext(ARServerUser context,
                                                                  CMDBClassNameKey aClassKey,
                                                                  java.lang.String instanceId,
                                                                  java.lang.String[] attributeNames)
                                                           throws ARException
Get Related Federated In Context

Parameters:
context - AR System user and host infomation
aClassKey - is the classKey
instanceId - is the instance id
attributeNames - is the attribute Name list
Returns:
returns the CMDBInstanceBase object
Throws:
ARException

CMDBGetRelatedFederatedInContext

public static CMDBInstanceBase[] CMDBGetRelatedFederatedInContext(ARServerUser context,
                                                                  CMDBClassNameKey aClassKey,
                                                                  java.lang.String aDataSetId,
                                                                  java.lang.String instanceId,
                                                                  java.lang.String[] attributeNames)
                                                           throws ARException
Get Related Federated In Context

Parameters:
context - AR System user and host infomation
aClassKey - is the classKey
aDataSetId - DataSetId of which you want to retrieve instances
instanceId - is the instance id
attributeNames - is the attribute Name list
Returns:
returns the CMDBInstanceBase object
Throws:
ARException

CMDBActivateFederatedInContext

public static CMDBFederatedActivateInfo CMDBActivateFederatedInContext(ARServerUser context,
                                                                       CMDBClassNameKey aClassKey,
                                                                       java.lang.String instanceId,
                                                                       java.lang.String federatedInstanceId,
                                                                       int activateOption)
                                                                throws ARException
Get Activate Federated In Context

Parameters:
context - AR System user and host infomation
aClassKey - is the Class Key
instanceId - is the Instance Id
federatedInstanceId - is the Federated Instance Id
activateOption - is the activate Option
Returns:
returns the CMDBFederatedActivateInfo object
Throws:
ARException

CMDBActivateFederatedInContext

public static CMDBFederatedActivateInfo CMDBActivateFederatedInContext(ARServerUser context,
                                                                       CMDBClassNameKey aClassKey,
                                                                       java.lang.String aDataSetId,
                                                                       java.lang.String instanceId,
                                                                       java.lang.String federatedInstanceId,
                                                                       int activateOption)
                                                                throws ARException
Get Activate Federated In Context

Parameters:
context - AR System user and host infomation
aClassKey - is the Class Key
aDataSetId - DataSetId of which you want to retrieve instances
instanceId - is the Instance Id
federatedInstanceId - is the Federated Instance Id
activateOption - is the activate Option
Returns:
returns the CMDBFederatedActivateInfo object
Throws:
ARException

CMDBGetCMDBUIComponents

public static CMDBUIComponentResult[] CMDBGetCMDBUIComponents(ARServerUser context,
                                                              CMDBUIComponentInfo inputInfo,
                                                              java.lang.String datasetId,
                                                              java.lang.String instanceId)
                                                       throws ARException
Parameters:
context - AR System user and host infomation
inputInfo - CMDBUIComponentInfo object
datasetId - is the DataSetId
instanceId - is the Instance Id
Returns:
returns CMDBUIComponentResult object array
Throws:
ARException

CMDBGetCopyAuditData

public static CMDBAuditValueList[] CMDBGetCopyAuditData(ARServerUser context,
                                                        CMDBClassNameKey classNameId,
                                                        java.lang.String instanceId,
                                                        java.lang.String datasetId,
                                                        QualifierInfo query,
                                                        java.lang.String[] attributeList)
                                                 throws ARException
Parameters:
context - AR System user and host infomation
classNameId - is the Class Key
instanceId - is the Instance Id
datasetId - is the dataset Id
query - is the qualifier
attributeList - is the attribute list
Returns:
CMDBAuditValueList object list
Throws:
ARException

CMDBGetInstanceBase

public static CMDBInstanceBase CMDBGetInstanceBase(ARServerUser context,
                                                   CMDBClassNameKey classKey,
                                                   java.lang.String datasetId,
                                                   int getMask,
                                                   java.lang.String instanceId,
                                                   java.lang.String[] attributeNames)
                                            throws ARException
Parameters:
context - ARSystemUser structure that contains user and host information
classKey - aClassKey the key of the class that the instance belongs to
datasetId - DatasetId of which you want to retrieve instances
getMask - the get mask (current, overlay, etc)
instanceId - is the Instance Id
attributeNames - is the attribute Name list
Returns:
CMDBInstanceBase object
Throws:
ARException

CMDBGetListInstanceWithAttributes1

public static CMDBInstanceBase[] CMDBGetListInstanceWithAttributes1(ARServerUser ctx,
                                                                    CMDBClassNameKey aClassKey,
                                                                    java.lang.String datasetId,
                                                                    int getMask,
                                                                    java.lang.String query,
                                                                    java.lang.String[] attributeGetList,
                                                                    CMDBSort[] sortArray,
                                                                    int firstRetrieve,
                                                                    int maxRetrieve,
                                                                    java.lang.Integer numMatches)
                                                             throws ARException
Parameters:
ctx - ARSystemUser structure that contains user and host information
aClassKey - the key of the class that the instance belongs to
datasetId - of which you want to retrieve instances
getMask - the get mask (current, overlay, etc)
query - an query object where you specify a qualification for retrieving instances
attributeGetList - attributeGetList the attribute to be retrieved. If attributeGetList is NULL, then all attribute values of the instance will be returned.
sortArray - is the sortArray
firstRetrieve - First instance retrieved for the query chunk.
maxRetrieve - instances to retrieve for the query
numMatches - Number of Matches
Returns:
CMDBInstanceBase Object array
Throws:
ARException

CMDBExpandParametersForCI

public static java.lang.String CMDBExpandParametersForCI(ARServerUser context,
                                                         java.lang.String paramString,
                                                         CMDBInstanceBase instance)
                                                  throws ARException
Gets the Expand parameters for a CI

Parameters:
context - AR System user and host infomation
paramString - is the param String
instance - is the Instance Base
Throws:
ARException

CMDBRunQualificationForCI

public static boolean CMDBRunQualificationForCI(ARServerUser context,
                                                java.lang.String qualifier,
                                                CMDBAttributeValue[] attributeValue)
                                         throws ARException
Check the qualification for a CI

Parameters:
context - AR System user and host infomation
qualifier - is the qualifier
attributeValue - is attribute value list
Returns:
boolean value
Throws:
ARException

CMDBExportDef

public static java.lang.String CMDBExportDef(ARServerUser context,
                                             CMDBXMLExportItem[] exportItemList)
                                      throws ARException
Export the Class/Attribute definitions

Parameters:
context - AR System user and host infomation
exportItemList - is the export item list which is to be exported
Returns:
exported class/attribute in string format
Throws:
ARException

CMDBExportData

public static java.lang.String CMDBExportData(ARServerUser ctx,
                                              CMDBClassNameKey aClassKey,
                                              java.lang.String datasetId,
                                              java.lang.String query,
                                              java.lang.String[] attributeGetList,
                                              CMDBSort[] sortArray,
                                              int firstRetrieve,
                                              int maxRetrieve)
                                       throws ARException
Export the Instance Data

Parameters:
ctx - ARSystemUser structure that contains user and host information
aClassKey - the key of the class that the instance belongs to
query - an query object where you specify a qualification for retrieving instances
attributeGetList - attributeGetList the attribute to be retrieved.
sortArray - is the sortArray
firstRetrieve - First instance retrieved for the query chunk.
maxRetrieve - instances to retrieve for the query
Returns:
exportBuf in form of string
Throws:
ARException

CMDBImportData

public static void CMDBImportData(ARServerUser ctx,
                                  int importOption,
                                  java.lang.String importBuf)
                           throws ARException
Import the Instance Data

Parameters:
ctx - AR System user and host infomation
importOption - Option, which can be: CMDBXMLImportItem.CMDB_DATA_IMPORT_OPT_ERROR_FOR_DUP, CMDBXMLImportItem.CMDB_DATA_IMPORT_OPT_NEWID_FOR_DUP, CMDBXMLImportItem.CMDB_DATA_IMPORT_OPT_MERGE_FOR_DUP, CMDBXMLImportItem.CMDB_DATA_IMPORT_OPT_NEWID_FOR_ALL.
importBuf - string passed to import
Throws:
ARException

CMDBImportDef

public static void CMDBImportDef(ARServerUser ctx,
                                 CMDBXMLImportItem[] importItem,
                                 int importOption,
                                 java.lang.String importBuf)
                          throws ARException
Import the Class/Attribute definitions

Parameters:
ctx - AR System user and host infomation
importItem - is the import item list which is to be imported
importOption - option, which can be: CMDBXMLImportItem.CMDB_DEF_IMPORT_OPT_CREATE, CMDBXMLImportItem.CMDB_DEF_IMPORT_OPT_OVERWRITE.
importBuf - import Data in string format
Throws:
ARException