RM-497 (Distorted folders name after Load Test Data DODExampleFilePlan.xml)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@45035 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2013-01-02 13:03:20 +00:00
parent f1895229bf
commit 9799247c24
2 changed files with 20 additions and 12 deletions

View File

@@ -36,7 +36,12 @@ public class DataSetBase implements DataSet
String label = this.label;
if (StringUtils.isBlank(label))
{
label = I18NUtil.getMessage("dataset." + getId() + ".label");
String propertyKey = "dataset." + getId() + ".label";
label = I18NUtil.getMessage(propertyKey);
if (StringUtils.isBlank(label))
{
label = propertyKey;
}
}
return label;
}

View File

@@ -54,6 +54,9 @@ public class DataSetServiceImpl implements DataSetService, RecordsManagementMode
/** Spaces store */
private static final StoreRef SPACES_STORE = new StoreRef(StoreRef.PROTOCOL_WORKSPACE, "SpacesStore");
/** Charset name */
private static final String charsetName = "UTF-8";
/** Importer service */
private ImporterService importerService;
@@ -248,7 +251,7 @@ public class DataSetServiceImpl implements DataSetService, RecordsManagementMode
+ "' import file could not be found!"); }
// Import view
Reader viewReader = new InputStreamReader(is);
Reader viewReader = new InputStreamReader(is, charsetName);
Location location = new Location(filePlan);
importerService.importView(viewReader, location, null, null);