filenet.vw.api
Class VWXMLConfiguration
- java.lang.Object
-
- filenet.vw.api.VWXMLConfiguration
-
public final class VWXMLConfiguration extends java.lang.ObjectVWXMLConfiguration imports and exports XML text representing Process Engine administration and configuration objects that implement theIVWtoXMLinterface.- Since:
- P8 3.0
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringATTRINFO_CONFIG_ALLOW_USER_ENTER_WSDLstatic intIMPORT_EXCLUDE_USERINFOValue of 16. Indicates exclusion of user info; the default is to import user info.static intIMPORT_MERGEValue of 2. Indicates import properties will be added to current Process Engine administration and configuration objects.static intIMPORT_REPLACEValue of 1. Indicates an import will replace current Process Engine administration and configuration objects.
-
Constructor Summary
Constructors Constructor and Description VWXMLConfiguration()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidexportConfiguration(IVWtoXML[] apiObjects, java.lang.StringBuffer buffer)Creates an XML document in a StringBuffer representing the specified administration and configuration objects implementing theIVWtoXMLinterface.static voidexportConfigurationToFile(IVWtoXML[] apiObjects, java.lang.String outputFile)Creates an XML document file representing the specified administration and configuration objects implementing theIVWtoXMLinterface.static java.lang.StringimportConfiguration(VWSession session, java.lang.String config, int option)Imports Process Engine administration and configuration properties from a String containing XML text representing the properties.static java.lang.StringimportConfigurationFromFile(VWSession session, java.lang.String inputFile, int option)Imports Process Engine administration and configuration properties from an XML document.static java.lang.StringmakeXMLBlock(IVWtoXML[] apiObjects)Creates XML header information and XML text representing the specified administration and configuration objects implementing theIVWtoXMLinterface.
-
-
-
Field Detail
-
IMPORT_REPLACE
public static final int IMPORT_REPLACE
Value of 1. Indicates an import will replace current Process Engine administration and configuration objects.- See Also:
- Constant Field Values
-
IMPORT_MERGE
public static final int IMPORT_MERGE
Value of 2. Indicates import properties will be added to current Process Engine administration and configuration objects.- See Also:
- Constant Field Values
-
IMPORT_EXCLUDE_USERINFO
public static final int IMPORT_EXCLUDE_USERINFO
Value of 16. Indicates exclusion of user info; the default is to import user info. This option can not be used alone. It must be combined (use bitwise inclusive OR) with either IMPORT_MERGE or IMPORT_REPLACE option- See Also:
- Constant Field Values
-
ATTRINFO_CONFIG_ALLOW_USER_ENTER_WSDL
public static final java.lang.String ATTRINFO_CONFIG_ALLOW_USER_ENTER_WSDL
- See Also:
- Constant Field Values
-
-
Method Detail
-
exportConfiguration
public static void exportConfiguration(IVWtoXML[] apiObjects, java.lang.StringBuffer buffer) throws VWException
Creates an XML document in a StringBuffer representing the specified administration and configuration objects implementing theIVWtoXMLinterface.- Parameters:
apiObjects- An array of IVWtoXML objects representing the Process Engine administration and configuration objects.buffer- A StringBuffer to which an XML representation of the objects (specified inapiObjects) will be written.- Throws:
VWException- Thrown for various causes, including when the StringBuffer for the XML cannot be created.
-
exportConfigurationToFile
public static void exportConfigurationToFile(IVWtoXML[] apiObjects, java.lang.String outputFile) throws VWException
Creates an XML document file representing the specified administration and configuration objects implementing theIVWtoXMLinterface.- Parameters:
apiObjects- An array of IVWtoXML objects representing the Process Engine administration and configuration objects.outputFile- A String containing the name of the file to which an XML representation of the objects (specified inapiObjects) will be written.- Throws:
VWException- Thrown for various causes, including when the XML cannot be created for the outputFile.
-
importConfiguration
public static java.lang.String importConfiguration(VWSession session, java.lang.String config, int option) throws VWException
Imports Process Engine administration and configuration properties from a String containing XML text representing the properties.- Parameters:
session- A VWSession object for the identifying session.config- A String containing the XML representation of the properties to import.option- An integer indicating a valid import option.- Returns:
- A String containing the import progress log.
- Throws:
VWException- Thrown for various causes, including a null or empty string for theinputFileparameter, an invalid import option, or a null VWSession object.- See Also:
VWXMLConfiguration.exportConfiguration(IVWtoXML[],StringBuffer)
-
importConfigurationFromFile
public static java.lang.String importConfigurationFromFile(VWSession session, java.lang.String inputFile, int option) throws VWException
Imports Process Engine administration and configuration properties from an XML document.- Parameters:
session- A VWSession object for the identifying session.inputFile- A String containing the name of the XML document file to import.option- An integer indicating a valid import option.- Returns:
- A String containing the import progress log.
- Throws:
VWException- Thrown for various causes, including a null or empty string for theinputFileparameter, an invalid import option, or a null VWSession object.- See Also:
VWXMLConfiguration.exportConfigurationToFile(IVWtoXML[],String)
-
makeXMLBlock
public static java.lang.String makeXMLBlock(IVWtoXML[] apiObjects) throws VWException
Creates XML header information and XML text representing the specified administration and configuration objects implementing theIVWtoXMLinterface.You can create runtime XML blocks with
VWXMLUtil.makeXMLBlock(IVWtoXML[],String).- Parameters:
apiObjects- An array of IVWtoXML objects representing the Process Engine administration and configuration objects.- Returns:
- A String containing the XML representation of the Process Engine administration
and configuration objects specified in
apiObjects. - Throws:
VWException- Thrown for various causes, including an invalid object specified in the array for theapiObjectsparameter.
-
-