mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Check to see whether repository models are initliased
Mirrored from community commit c81600dbfe2006e6ae6531c52704f12d497e4398
This commit is contained in:
@@ -172,10 +172,11 @@ public class RecordsManagementAdminServiceImpl extends RecordsManagementAdminBas
|
|||||||
@Override
|
@Override
|
||||||
public void onApplicationEvent(ContextRefreshedEvent event)
|
public void onApplicationEvent(ContextRefreshedEvent event)
|
||||||
{
|
{
|
||||||
transactionService.getRetryingTransactionHelper().doInTransaction(new RetryingTransactionCallback<Void>()
|
|
||||||
{
|
if(!isCustomMapInit && getDictionaryService().getAllModels().contains(RM_CUSTOM_MODEL)) {
|
||||||
public Void execute() throws Throwable
|
transactionService.getRetryingTransactionHelper().doInTransaction(new RetryingTransactionCallback<Void>() {
|
||||||
{
|
public Void execute() throws Throwable {
|
||||||
|
|
||||||
// initialise custom properties
|
// initialise custom properties
|
||||||
initCustomMap();
|
initCustomMap();
|
||||||
|
|
||||||
@@ -183,6 +184,7 @@ public class RecordsManagementAdminServiceImpl extends RecordsManagementAdminBas
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper method to indicate whether the custom map is initialised or not.
|
* Helper method to indicate whether the custom map is initialised or not.
|
||||||
|
Reference in New Issue
Block a user