RM-832 (It's impossible to Update Disposition As of Date)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@54210 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2013-08-16 21:12:48 +00:00
parent 7b1ddbd18a
commit 2b323c91ff
3 changed files with 142 additions and 134 deletions

View File

@@ -108,6 +108,7 @@
<list> <list>
<value>RECORD_FOLDER</value> <value>RECORD_FOLDER</value>
<value>RECORD</value> <value>RECORD</value>
<value>FILE_PLAN_COMPONENT</value>
</list> </list>
</property> </property>
<property name="conditions"> <property name="conditions">

View File

@@ -423,7 +423,7 @@ public class RecordsManagementServiceImpl extends ServiceBaseImpl
*/ */
public boolean isFilePlanComponent(NodeRef nodeRef) public boolean isFilePlanComponent(NodeRef nodeRef)
{ {
return getFilePlanService().isFilePlan(nodeRef); return getFilePlanService().isFilePlanComponent(nodeRef);
} }
/** /**

View File

@@ -57,6 +57,13 @@ public class HasDispositionDateCapabilityCondition extends AbstractCapabilityCon
result = true; result = true;
} }
} }
else if (filePlanService.isFilePlanComponent(nodeRef))
{
if (nodeService.getProperty(nodeRef, PROP_DISPOSITION_AS_OF) != null)
{
result = true;
}
}
return result; return result;
} }