public class CdmPersistentSourceUtils
extends java.lang.Object
Constructor and Description |
---|
CdmPersistentSourceUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
delete(ICdmPersistentSource cdmPersistentSource)
Deletes a CDM persistent source from the source config file.
|
static void |
delete(java.lang.String beanName)
Deletes a CDM persistent source from the source config file.
|
static java.io.FileInputStream |
fileInputStream(java.io.File file)
Returns a FileInputStream object from a File object
|
static java.io.FileOutputStream |
fileOutputStream(java.io.File file)
Returns a FileOututStream object from a File object
|
static java.lang.String |
getBeanName(java.lang.String cdmSourceName,
java.lang.String postFix)
Converts input parameters to bean name.
|
static org.jdom.Element |
getCdmSourceBeanXml(java.lang.String beanName)
Returns the jdom Element representing the data source bean in the config file.
|
static org.jdom.Element |
getCdmSourceBeanXml(java.lang.String cdmSourceName,
java.lang.String postFix)
Returns the jdom Element corresponding to the cdm source name and type in the config file.
|
static java.io.FileInputStream |
getCdmSourceInputStream()
Returns the datasource config file input stream.
|
static java.io.FileOutputStream |
getCdmSourceOutputStream()
Returns the datasource config file outputStream.
|
static java.lang.String |
getPropertyValue(org.jdom.Element bean,
java.lang.String property)
Returns the property value of a CDM persistent source object bean
from the source config file.
|
static java.lang.String |
getResourceDirectory()
Returns the directory containing the datasource config file
|
public static java.lang.String getResourceDirectory()
public static java.io.FileInputStream getCdmSourceInputStream()
public static java.io.FileOutputStream getCdmSourceOutputStream()
public static java.io.FileInputStream fileInputStream(java.io.File file)
file
- public static java.io.FileOutputStream fileOutputStream(java.io.File file)
file
- public static org.jdom.Element getCdmSourceBeanXml(java.lang.String beanName)
beanName
- , of the element to be retrievedpublic static org.jdom.Element getCdmSourceBeanXml(java.lang.String cdmSourceName, java.lang.String postFix)
cdmSourceName
- , of the element to be retrievedpostFix
- , indicating the type of cdm sourcepublic static java.lang.String getBeanName(java.lang.String cdmSourceName, java.lang.String postFix)
cdmSourceName
- , of the element to be retrievedpostFix
- , indicating the type of cdm sourcepublic static void delete(ICdmPersistentSource cdmPersistentSource)
cdmPersistentSource
- , CDM persistent source objectpublic static void delete(java.lang.String beanName)
beanName
- , CDM persistent source bean namepublic static java.lang.String getPropertyValue(org.jdom.Element bean, java.lang.String property)
bean
- , CDM persistent source object beanproperty
- , whose value is to be retrievedCopyright © 2007-2020 EDIT. All Rights Reserved.