mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Updated label and a couple of code tidy-ups.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@70111 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -714,7 +714,7 @@ public class RecordsManagementAuditServiceImpl extends AbstractLifecycleBean
|
||||
// Done
|
||||
return auditTrailFile;
|
||||
}
|
||||
catch (Throwable e)
|
||||
catch (IOException e)
|
||||
{
|
||||
throw new AlfrescoRuntimeException(MSG_TRAIL_FILE_FAIL, e);
|
||||
}
|
||||
@@ -743,7 +743,7 @@ public class RecordsManagementAuditServiceImpl extends AbstractLifecycleBean
|
||||
// Done
|
||||
return entries;
|
||||
}
|
||||
catch (Throwable e)
|
||||
catch (IOException e)
|
||||
{
|
||||
// Should be
|
||||
throw new AlfrescoRuntimeException(MSG_TRAIL_FILE_FAIL, e);
|
||||
|
@@ -32,17 +32,26 @@ import org.alfresco.service.cmr.repository.StoreRef;
|
||||
*/
|
||||
public class BootstrapImporterModuleComponent extends ImporterModuleComponent
|
||||
{
|
||||
/** rm config folder name */
|
||||
private static final String CONFIG_NODEID = "rm_config_folder";
|
||||
|
||||
/** node service */
|
||||
private NodeService nodeService;
|
||||
|
||||
/** module patch executer */
|
||||
private ModulePatchExecuter modulePatchExecuter;
|
||||
|
||||
/**
|
||||
* @param nodeService node service
|
||||
*/
|
||||
public void setNodeService(NodeService nodeService)
|
||||
{
|
||||
this.nodeService = nodeService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param modulePatchExecuter module patch executer
|
||||
*/
|
||||
public void setModulePatchExecuter(ModulePatchExecuter modulePatchExecuter)
|
||||
{
|
||||
this.modulePatchExecuter = modulePatchExecuter;
|
||||
@@ -55,8 +64,6 @@ public class BootstrapImporterModuleComponent extends ImporterModuleComponent
|
||||
*/
|
||||
@Override
|
||||
protected void executeInternal() throws Throwable
|
||||
{
|
||||
try
|
||||
{
|
||||
NodeRef nodeRef = new NodeRef(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, CONFIG_NODEID);
|
||||
if (!nodeService.exists(nodeRef))
|
||||
@@ -67,10 +74,4 @@ public class BootstrapImporterModuleComponent extends ImporterModuleComponent
|
||||
modulePatchExecuter.initSchemaVersion();
|
||||
}
|
||||
}
|
||||
catch (Throwable exception)
|
||||
{
|
||||
exception.printStackTrace();
|
||||
throw exception;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -399,7 +399,7 @@ public class CustomEmailMappingServiceImpl extends AbstractLifecycleBean impleme
|
||||
// update the extractor with the custom mappings
|
||||
updateExtractor();
|
||||
}
|
||||
catch (Throwable e)
|
||||
catch (RuntimeException e)
|
||||
{
|
||||
// log a warning
|
||||
if (logger.isWarnEnabled())
|
||||
|
@@ -368,7 +368,7 @@ public class FilePlanServiceImpl extends ServiceBaseImpl
|
||||
{
|
||||
getNodeRefPathRecursive(nodeRef, nodeRefPath);
|
||||
}
|
||||
catch (Throwable e)
|
||||
catch (RuntimeException e)
|
||||
{
|
||||
throw new AlfrescoRuntimeException(I18NUtil.getMessage(MSG_PATH_NODE, nodeRef), e);
|
||||
}
|
||||
|
Reference in New Issue
Block a user