mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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);
|
||||||
@@ -366,24 +367,27 @@ public class RecordsManagementAdminServiceImpl implements RecordsManagementAdmin
|
|||||||
@Override
|
@Override
|
||||||
public Void doWork() throws Exception
|
public Void doWork() throws Exception
|
||||||
{
|
{
|
||||||
NodeRef nodeRef = childAssocRef.getChildRef();
|
if (dictionaryService.getAllModels().contains(RecordsManagementCustomModel.RM_CUSTOM_MODEL) == true)
|
||||||
QName type = nodeService.getType(nodeRef);
|
{
|
||||||
while (type != null && ContentModel.TYPE_CMOBJECT.equals(type) == false)
|
NodeRef nodeRef = childAssocRef.getChildRef();
|
||||||
{
|
QName type = nodeService.getType(nodeRef);
|
||||||
if (isCustomisable(type) == true)
|
while (type != null && ContentModel.TYPE_CMOBJECT.equals(type) == false)
|
||||||
{
|
{
|
||||||
QName customPropertyAspect = getCustomAspect(type);
|
if (isCustomisable(type) == true)
|
||||||
nodeService.addAspect(nodeRef, customPropertyAspect, null);
|
{
|
||||||
}
|
QName customPropertyAspect = getCustomAspect(type);
|
||||||
|
nodeService.addAspect(nodeRef, customPropertyAspect, null);
|
||||||
TypeDefinition def = dictionaryService.getType(type);
|
}
|
||||||
if (def != null)
|
|
||||||
{
|
TypeDefinition def = dictionaryService.getType(type);
|
||||||
type = def.getParentName();
|
if (def != null)
|
||||||
}
|
{
|
||||||
else
|
type = def.getParentName();
|
||||||
{
|
}
|
||||||
type = null;
|
else
|
||||||
|
{
|
||||||
|
type = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user