This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Config globalConfig = new Config(); | |
Configuration mainConfigFile = new RequiredConfigurationFile("global.properties"); | |
Configuration devConfigFile = new OptionalConfigurationFile("developer.properties"); | |
globalConfig.add(mainConfigFile); | |
globalConfig.addOverriding(devConfigFile); | |
globalConfig.addHighOrder(new SystemPropertiesConfiguration()); | |
Config localConfig = new Config(globalConfig); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private String getCreateContentForm(String contentType) { | |
if ("article".equals(contentType)) { | |
return createArticleForm(); | |
} | |
if ("audio".equals(contentType)) { | |
return createAudioForm(); | |
} | |
if ("cartoon".equals(contentType)) { | |
return createCartoonForm(); |