mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merge remote-tracking branch 'origin/release/V3.4' into feature-3.4/APPS-594_Intermittent_openPage_no
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -4,7 +4,7 @@
|
|||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-governance-services</artifactId>
|
<artifactId>alfresco-governance-services</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<version>3.4.1-SNAPSHOT</version>
|
<version>3.4.2-SNAPSHOT</version>
|
||||||
<name>Alfresco Governance Services</name>
|
<name>Alfresco Governance Services</name>
|
||||||
|
|
||||||
<url>http://www.alfresco.org/</url>
|
<url>http://www.alfresco.org/</url>
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-governance-services</artifactId>
|
<artifactId>alfresco-governance-services</artifactId>
|
||||||
<version>3.4.1-SNAPSHOT</version>
|
<version>3.4.2-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<licenses>
|
<licenses>
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-governance-services-automation</artifactId>
|
<artifactId>alfresco-governance-services-automation</artifactId>
|
||||||
<version>3.4.1-SNAPSHOT</version>
|
<version>3.4.2-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-governance-services</artifactId>
|
<artifactId>alfresco-governance-services</artifactId>
|
||||||
<version>3.4.1-SNAPSHOT</version>
|
<version>3.4.2-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<licenses>
|
<licenses>
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-governance-services-community</artifactId>
|
<artifactId>alfresco-governance-services-community</artifactId>
|
||||||
<version>3.4.1-SNAPSHOT</version>
|
<version>3.4.2-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
@@ -503,52 +503,7 @@ public class DispositionServiceImpl extends ServiceBaseImpl
|
|||||||
@Override
|
@Override
|
||||||
public boolean hasDisposableItems(DispositionSchedule dispositionSchdule)
|
public boolean hasDisposableItems(DispositionSchedule dispositionSchdule)
|
||||||
{
|
{
|
||||||
ParameterCheck.mandatory("dispositionSchedule", dispositionSchdule);
|
return !getDisposableItems(dispositionSchdule).isEmpty();
|
||||||
|
|
||||||
// Get the associated container
|
|
||||||
NodeRef rmContainer = getAssociatedRecordsManagementContainer(dispositionSchdule);
|
|
||||||
|
|
||||||
return hasDisposableItemsImpl(dispositionSchdule.isRecordLevelDisposition(), rmContainer);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Method that provides a boolean if given Records Management Container has disposable items.
|
|
||||||
* This method is similar to getDisposableItemsImpl(boolean isRecordLevelDisposition, NodeRef rmContainer) but with improved performance:
|
|
||||||
* For RecordLevelDisposition it will limit Record retrieval to 1.
|
|
||||||
* Early returns once the first occurrence is found.
|
|
||||||
* @param isRecordLevelDisposition
|
|
||||||
* @param rmContainer
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
private boolean hasDisposableItemsImpl(boolean isRecordLevelDisposition, NodeRef rmContainer)
|
|
||||||
{
|
|
||||||
List<NodeRef> items = filePlanService.getAllContained(rmContainer);
|
|
||||||
for (NodeRef item : items)
|
|
||||||
{
|
|
||||||
if (recordFolderService.isRecordFolder(item))
|
|
||||||
{
|
|
||||||
if (isRecordLevelDisposition)
|
|
||||||
{
|
|
||||||
List<ChildAssociationRef> assocs = nodeService.getChildAssocs(item, ContentModel.ASSOC_CONTAINS, RegexQNamePattern.MATCH_ALL, 1, true);
|
|
||||||
if (!assocs.isEmpty())
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (filePlanService.isRecordCategory(item) && getAssociatedDispositionScheduleImpl(item) == null)
|
|
||||||
{
|
|
||||||
if (hasDisposableItemsImpl(isRecordLevelDisposition, item));
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-governance-services-community</artifactId>
|
<artifactId>alfresco-governance-services-community</artifactId>
|
||||||
<version>3.4.1-SNAPSHOT</version>
|
<version>3.4.2-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
Reference in New Issue
Block a user