public final class CfgUtilities
extends java.lang.Object
CfgUtilities
class is intended as a container for and a point of access
to a set of configuration data utility functionality.Constructor | Description |
---|---|
CfgUtilities(CfgMetadata metadata) |
Modifier and Type | Method | Description |
---|---|---|
void |
applyDelta(org.w3c.dom.Document xmlObject,
org.w3c.dom.Document xmlDelta) |
Applies delta object to an object.
|
void |
applyDelta(org.w3c.dom.Element xObject,
org.w3c.dom.Element xDelta) |
Applies delta object to an object.
|
org.w3c.dom.Document |
createDelta(org.w3c.dom.Document originalObject,
org.w3c.dom.Document changedObject) |
Creates delta object for an object.
|
org.w3c.dom.Element |
createDelta(org.w3c.dom.Element originalObject,
org.w3c.dom.Element changedObject) |
Creates delta object for an object.
|
static java.lang.String |
enumLiteralToName(java.lang.String name) |
|
static org.w3c.dom.Element |
findChildElement(org.w3c.dom.Node container,
java.lang.String name) |
|
static org.w3c.dom.Node |
findFirst(java.util.List<org.w3c.dom.Node> list,
java.lang.String name) |
|
java.lang.Object |
getAttributeValue(org.w3c.dom.Element parentClass,
java.lang.String attributeName) |
|
static java.util.List<org.w3c.dom.Element> |
getChildElements(org.w3c.dom.Node container) |
|
static java.lang.String |
getDataNS() |
Deprecated.
|
static java.util.Calendar |
getDateTime(int utc) |
|
static CfgErrorCode |
getErrorCode(int errorCode) |
Unpacks configuration server error code.
Usage sample: |
static CfgErrorType |
getErrorType(int errorCode) |
|
static org.w3c.dom.Element |
getFirstChildElement(org.w3c.dom.Node container) |
|
static org.w3c.dom.Element |
getNextSiblingElement(org.w3c.dom.Node element) |
|
static java.lang.String |
nameToEnumLiteral(java.lang.String name) |
public CfgUtilities(CfgMetadata metadata)
@Deprecated public static java.lang.String getDataNS()
public static CfgErrorCode getErrorCode(int errorCode)
void handleCfgSrvError(final EventError evError) { CfgErrorCode errorCode = CfgUtilities.getErrorCode(evError.getErrorCode()); if (errorCode.getErrorType() == CfgErrorType.CFGObjectNotFound) { ... } }
errorCode
- error code from configuration server error eventEventError.getErrorCode()
,
CfgErrorCode.getErrorCode(int)
public static CfgErrorType getErrorType(int errorCode)
CfgErrorCode.getErrorType(int)
public static java.util.Calendar getDateTime(int utc)
public java.lang.Object getAttributeValue(org.w3c.dom.Element parentClass, java.lang.String attributeName)
public void applyDelta(org.w3c.dom.Document xmlObject, org.w3c.dom.Document xmlDelta)
xmlObject
- Is an original object in Document format.
The object is the subject to change by applying the delta.
The root element of the object should be the configuration data wrapper: 'ConfData'.xmlDelta
- Is a delta object in Document format.
The root element of the object should be the configuration data wrapper: 'ConfData'.public void applyDelta(org.w3c.dom.Element xObject, org.w3c.dom.Element xDelta)
xObject
- Is an original object
The object is the subject to change by applying the delta.xDelta
- Is a delta objectpublic org.w3c.dom.Document createDelta(org.w3c.dom.Document originalObject, org.w3c.dom.Document changedObject)
originalObject
- Is an original object.
The root element of the object should be the configuration data wrapper: 'ConfData'.changedObject
- Is the changed object.
The root element of the object should be the configuration data wrapper: 'ConfData'.public org.w3c.dom.Element createDelta(org.w3c.dom.Element originalObject, org.w3c.dom.Element changedObject)
originalObject
- Is an original object.changedObject
- Is the changed object.public static java.lang.String enumLiteralToName(java.lang.String name)
public static java.lang.String nameToEnumLiteral(java.lang.String name)
public static org.w3c.dom.Element getFirstChildElement(org.w3c.dom.Node container)
public static org.w3c.dom.Element getNextSiblingElement(org.w3c.dom.Node element)
public static java.util.List<org.w3c.dom.Element> getChildElements(org.w3c.dom.Node container)
public static org.w3c.dom.Element findChildElement(org.w3c.dom.Node container, java.lang.String name)
public static org.w3c.dom.Node findFirst(java.util.List<org.w3c.dom.Node> list, java.lang.String name)
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.