RM: Fix build

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@58373 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2013-11-28 09:49:16 +00:00
parent 2571e09539
commit d41d655d83

View File

@@ -307,6 +307,7 @@ public class RecordsManagementAdminServiceImpl implements RecordsManagementAdmin
public Void doWork() throws Exception public Void doWork() throws Exception
{ {
if (nodeService.exists(nodeRef) == true && if (nodeService.exists(nodeRef) == true &&
dictionaryService.getAllModels().contains(RM_CUSTOM_MODEL) == true &&
isCustomisable(aspectTypeQName) == true) isCustomisable(aspectTypeQName) == true)
{ {
QName customPropertyAspect = getCustomAspect(aspectTypeQName); QName customPropertyAspect = getCustomAspect(aspectTypeQName);
@@ -365,6 +366,8 @@ public class RecordsManagementAdminServiceImpl implements RecordsManagementAdmin
{ {
@Override @Override
public Void doWork() throws Exception public Void doWork() throws Exception
{
if (dictionaryService.getAllModels().contains(RecordsManagementCustomModel.RM_CUSTOM_MODEL) == true)
{ {
NodeRef nodeRef = childAssocRef.getChildRef(); NodeRef nodeRef = childAssocRef.getChildRef();
QName type = nodeService.getType(nodeRef); QName type = nodeService.getType(nodeRef);
@@ -386,6 +389,7 @@ public class RecordsManagementAdminServiceImpl implements RecordsManagementAdmin
type = null; type = null;
} }
} }
}
return null; return null;
} }