mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
RM-1867 (Reject rule works incorrect if set up in File Plan)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@95746 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -77,19 +77,25 @@ public final class FilePlanNamePathDataExtractor extends AbstractDataExtractor
|
|||||||
*/
|
*/
|
||||||
public Serializable extractData(Serializable value)
|
public Serializable extractData(Serializable value)
|
||||||
{
|
{
|
||||||
|
String extractedData = null;
|
||||||
|
|
||||||
NodeRef nodeRef = (NodeRef) value;
|
NodeRef nodeRef = (NodeRef) value;
|
||||||
|
if (nodeService.hasAspect(nodeRef, RecordsManagementModel.ASPECT_FILE_PLAN_COMPONENT))
|
||||||
// Get path from the RM root
|
|
||||||
List<NodeRef> nodeRefPath = filePlanService.getNodeRefPath(nodeRef);
|
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder(128);
|
|
||||||
for (NodeRef pathNodeRef : nodeRefPath)
|
|
||||||
{
|
{
|
||||||
String name = (String)nodeService.getProperty(pathNodeRef, ContentModel.PROP_NAME);
|
// Get path from the RM root
|
||||||
sb.append("/").append(name);
|
List<NodeRef> nodeRefPath = filePlanService.getNodeRefPath(nodeRef);
|
||||||
|
|
||||||
|
StringBuilder sb = new StringBuilder(128);
|
||||||
|
for (NodeRef pathNodeRef : nodeRefPath)
|
||||||
|
{
|
||||||
|
String name = (String)nodeService.getProperty(pathNodeRef, ContentModel.PROP_NAME);
|
||||||
|
sb.append("/").append(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Done
|
||||||
|
extractedData = sb.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Done
|
return extractedData;
|
||||||
return sb.toString();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user