Merge release/V2.4 into master.

This commit is contained in:
Tom Page
2016-04-13 10:16:57 +01:00
5 changed files with 16 additions and 9 deletions

View File

@@ -236,14 +236,14 @@ public class FilePlanComponentAspect extends BaseBehaviourBean
// If the node has any renditions, they inherit the file plan from their source node.
List<ChildAssociationRef> renditions = renditionService.getRenditions(nodeRef);
NodeRef thumbnail;
NodeRef rendition;
for (ChildAssociationRef chAssRef : renditions)
{
thumbnail = chAssRef.getChildRef();
if (nodeService.exists(thumbnail))
rendition = chAssRef.getChildRef();
if (nodeService.exists(rendition))
{
// Apply file plan component aspect to thumbnail
nodeService.addAspect(thumbnail, ASPECT_FILE_PLAN_COMPONENT, null);
// Apply file plan component aspect to node's renditions
nodeService.addAspect(rendition, ASPECT_FILE_PLAN_COMPONENT, null);
}
}
}

View File

@@ -54,12 +54,19 @@ public class ExtendedImapServiceImpl extends ImapServiceImpl
this.dictionaryService = dictionaryService;
}
public void setAuthenticationUtil(AuthenticationUtil authenticationUtil)
{
this.authenticationUtil = authenticationUtil;
}
@Override
public void setPolicyFilter(BehaviourFilter policyBehaviourFilter)
{
this.policyBehaviourFilter = policyBehaviourFilter;
super.setPolicyFilter(policyBehaviourFilter);
}
@Override
public void setNodeService(NodeService nodeService)
{
this.nodeService = nodeService;