mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
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:
@@ -36,7 +36,12 @@ public class DataSetBase implements DataSet
|
|||||||
String label = this.label;
|
String label = this.label;
|
||||||
if (StringUtils.isBlank(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;
|
return label;
|
||||||
}
|
}
|
||||||
|
@@ -54,6 +54,9 @@ public class DataSetServiceImpl implements DataSetService, RecordsManagementMode
|
|||||||
/** Spaces store */
|
/** Spaces store */
|
||||||
private static final StoreRef SPACES_STORE = new StoreRef(StoreRef.PROTOCOL_WORKSPACE, "SpacesStore");
|
private static final StoreRef SPACES_STORE = new StoreRef(StoreRef.PROTOCOL_WORKSPACE, "SpacesStore");
|
||||||
|
|
||||||
|
/** Charset name */
|
||||||
|
private static final String charsetName = "UTF-8";
|
||||||
|
|
||||||
/** Importer service */
|
/** Importer service */
|
||||||
private ImporterService importerService;
|
private ImporterService importerService;
|
||||||
|
|
||||||
@@ -95,7 +98,7 @@ public class DataSetServiceImpl implements DataSetService, RecordsManagementMode
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Set importer service
|
* Set importer service
|
||||||
*
|
*
|
||||||
* @param importerService the importer service
|
* @param importerService the importer service
|
||||||
*/
|
*/
|
||||||
public void setImporterService(ImporterService importerService)
|
public void setImporterService(ImporterService importerService)
|
||||||
@@ -105,7 +108,7 @@ public class DataSetServiceImpl implements DataSetService, RecordsManagementMode
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Set search service
|
* Set search service
|
||||||
*
|
*
|
||||||
* @param searchService the search service
|
* @param searchService the search service
|
||||||
*/
|
*/
|
||||||
public void setSearchService(SearchService searchService)
|
public void setSearchService(SearchService searchService)
|
||||||
@@ -115,7 +118,7 @@ public class DataSetServiceImpl implements DataSetService, RecordsManagementMode
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Set node service
|
* Set node service
|
||||||
*
|
*
|
||||||
* @param nodeService the node service
|
* @param nodeService the node service
|
||||||
*/
|
*/
|
||||||
public void setNodeService(NodeService nodeService)
|
public void setNodeService(NodeService nodeService)
|
||||||
@@ -125,7 +128,7 @@ public class DataSetServiceImpl implements DataSetService, RecordsManagementMode
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Set records management service
|
* Set records management service
|
||||||
*
|
*
|
||||||
* @param recordsManagementService the records management service
|
* @param recordsManagementService the records management service
|
||||||
*/
|
*/
|
||||||
public void setRecordsManagementService(RecordsManagementService recordsManagementService)
|
public void setRecordsManagementService(RecordsManagementService recordsManagementService)
|
||||||
@@ -135,7 +138,7 @@ public class DataSetServiceImpl implements DataSetService, RecordsManagementMode
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Set permission service
|
* Set permission service
|
||||||
*
|
*
|
||||||
* @param permissionService the permission service
|
* @param permissionService the permission service
|
||||||
*/
|
*/
|
||||||
public void setPermissionService(PermissionService permissionService)
|
public void setPermissionService(PermissionService permissionService)
|
||||||
@@ -145,7 +148,7 @@ public class DataSetServiceImpl implements DataSetService, RecordsManagementMode
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Set authority service
|
* Set authority service
|
||||||
*
|
*
|
||||||
* @param authorityService the authority service
|
* @param authorityService the authority service
|
||||||
*/
|
*/
|
||||||
public void setAuthorityService(AuthorityService authorityService)
|
public void setAuthorityService(AuthorityService authorityService)
|
||||||
@@ -163,7 +166,7 @@ public class DataSetServiceImpl implements DataSetService, RecordsManagementMode
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Set records management search behaviour
|
* Set records management search behaviour
|
||||||
*
|
*
|
||||||
* @param recordsManagementSearchBehaviour the records management search
|
* @param recordsManagementSearchBehaviour the records management search
|
||||||
* behaviour
|
* behaviour
|
||||||
*/
|
*/
|
||||||
@@ -174,7 +177,7 @@ public class DataSetServiceImpl implements DataSetService, RecordsManagementMode
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Set disposition service
|
* Set disposition service
|
||||||
*
|
*
|
||||||
* @param dispositionService the disposition service
|
* @param dispositionService the disposition service
|
||||||
*/
|
*/
|
||||||
public void setDispositionService(DispositionService dispositionService)
|
public void setDispositionService(DispositionService dispositionService)
|
||||||
@@ -248,7 +251,7 @@ public class DataSetServiceImpl implements DataSetService, RecordsManagementMode
|
|||||||
+ "' import file could not be found!"); }
|
+ "' import file could not be found!"); }
|
||||||
|
|
||||||
// Import view
|
// Import view
|
||||||
Reader viewReader = new InputStreamReader(is);
|
Reader viewReader = new InputStreamReader(is, charsetName);
|
||||||
Location location = new Location(filePlan);
|
Location location = new Location(filePlan);
|
||||||
importerService.importView(viewReader, location, null, null);
|
importerService.importView(viewReader, location, null, null);
|
||||||
|
|
||||||
@@ -340,7 +343,7 @@ public class DataSetServiceImpl implements DataSetService, RecordsManagementMode
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Temp method to patch AMP'ed data
|
* Temp method to patch AMP'ed data
|
||||||
*
|
*
|
||||||
* @param searchService
|
* @param searchService
|
||||||
* @param nodeService
|
* @param nodeService
|
||||||
* @param recordsManagementService
|
* @param recordsManagementService
|
||||||
@@ -466,7 +469,7 @@ public class DataSetServiceImpl implements DataSetService, RecordsManagementMode
|
|||||||
/**
|
/**
|
||||||
* Helper method for setting the id of the imported data set into the file
|
* Helper method for setting the id of the imported data set into the file
|
||||||
* plan's aspect
|
* plan's aspect
|
||||||
*
|
*
|
||||||
* @param dataSetId The id of the imported data set
|
* @param dataSetId The id of the imported data set
|
||||||
* @param filePlan The file plan into which the data set has been imported
|
* @param filePlan The file plan into which the data set has been imported
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user