public boolean getRenderFileUpload() {
return isRawSupported() || isStructuredAndRawSupported();
}
public String updateConfiguration() {
ConfigurationManagerLocal configurationMgr = LookupUtil.getConfigurationManager();
try {
AbstractResourceConfigurationUpdate updateRequest;
if (isStructuredAndRawSupported()) {
updateRequest = configurationMgr.updateStructuredOrRawConfiguration(loggedInUser.getSubject(),
resourceId, resourceConfiguration, isStructuredMode());
}
else {
updateRequest = configurationMgr.updateResourceConfiguration(loggedInUser.getSubject(),
resourceId, resourceConfiguration);
}
clearErrors();