public class SystemLandscapeDirectoryManager extends Object
Modifier and Type | Field and Description |
---|---|
static String |
COMPUTER_NAME_PROPERTY_KEY |
static String |
LOCAL_SYSTEM_NAME_PROPERTY_KEY |
protected org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
SystemLandscapeDirectoryManager() |
Modifier and Type | Method and Description |
---|---|
String |
generateThirdPartyXml(String templateFile,
String encoding,
Properties props)
Generates the
XML document that needs to be posted to the SAP System Landscape Directory from a XML template file
containing substitutable variables in the form ${*} . |
String |
generateThirdPartyXml(String templateFile,
String encoding,
Properties props,
String defaultPropertiesFile) |
static void |
main(String[] args)
Simple command line SLD registration tool.
|
void |
registerToSystemLandscapeDirectory(SystemLandscapeDirectoryConfiguration config) |
void |
uploadThirdPartyXmlFileToSLD(String xmlFile,
String encoding,
String sldUrl,
String user,
String password) |
void |
uploadThirdPartyXmlToSLD(String xml,
String sldUrl,
String user,
String password) |
public static final String COMPUTER_NAME_PROPERTY_KEY
public static final String LOCAL_SYSTEM_NAME_PROPERTY_KEY
protected final org.apache.commons.logging.Log logger
public String generateThirdPartyXml(String templateFile, String encoding, Properties props, String defaultPropertiesFile) throws Exception
Exception
public String generateThirdPartyXml(String templateFile, String encoding, Properties props) throws Exception
XML
document that needs to be posted to the SAP System Landscape Directory from a XML template file
containing substitutable variables in the form ${*}
. Substitution values are located in the properties object.${LocalSystemName}
in the template will be replaced by the property value of the property
LocalSystemName = ExampleThirdPartySystem
.a-z
, A-Z
, 0-9
and _
templateFile
- Path to the XML template fileencoding
- Encoding of the fileprops
- Variables used for substitution.Exception
public void uploadThirdPartyXmlToSLD(String xml, String sldUrl, String user, String password) throws Exception
Exception
public void uploadThirdPartyXmlFileToSLD(String xmlFile, String encoding, String sldUrl, String user, String password) throws Exception
Exception
public void registerToSystemLandscapeDirectory(SystemLandscapeDirectoryConfiguration config) throws Exception
Exception
public static void main(String[] args)
META-INF/sld/third_party_system_defaults.properties
META-INF/sld/ThirdPartySystemSLDTemplate.xml
args
- Copyright © 2016. All rights reserved.