/** * Builds the Connection element of ConnectHome * * @param alertFile */ private void buildConnectionSection(EmaApiConnectHome alertFile) throws EmaException { ConnectionType connectionType = alertFile.getNode().getConnection(); connectionType.setConnectType(CONNECTION_TYPE_ESRS); connectionType.setAppName(PRODUCT_NAME); connectionType.setPort(SECURED_CONNECTION_PORT); connectionType.setIPAddress(_networkIpAddress); }
/** Builds the Identifier element of ConnectHome */ private void buildIdentifierSection(EmaApiConnectHome alertFile) throws EmaException { EmaApiIdentifierType identifier = new EmaApiIdentifierType(); EmaApiNode node = alertFile.getNode(); identifier.setClarifyID(licenseInfo.getProductId()); identifier.setDeviceType(_identifierManager.findDeviceType()); identifier.setDeviceState(_identifierManager.findDeviceState()); identifier.setModel(licenseInfo.getModelId()); identifier.setOS(_identifierManager.findOS()); identifier.setOSVER(_identifierManager.findOSVersion()); identifier.setVendor("EMC"); identifier.setSiteName(""); identifier.setSerialNumber(licenseInfo.getProductId()); identifier.setUcodeVer(_identifierManager.findPlatform()); identifier.setWWN(licenseInfo.getLicenseTypeIndicator()); node.setIdentifier(identifier); overrideIdentifierData(identifier); }