RM-452: RM seurity context will break core Alfresco if Alfresco's public services change

* unit test to show this working
  * added package for issue specific unit tests
  * fix to file plan service so that isFilePlanComponent works for non file plan artifacts



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@54460 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2013-08-26 09:45:17 +00:00
parent cc18dc8a75
commit c060e948c0
8 changed files with 225 additions and 3 deletions

View File

@@ -178,8 +178,8 @@ public class FilePlanServiceImpl extends ServiceBaseImpl
public boolean isFilePlanComponent(NodeRef nodeRef)
{
boolean result = false;
if (nodeService.exists(nodeRef) == true &&
nodeService.hasAspect(nodeRef, ASPECT_FILE_PLAN_COMPONENT) == true)
if (getInternalNodeService().exists(nodeRef) == true &&
getInternalNodeService().hasAspect(nodeRef, ASPECT_FILE_PLAN_COMPONENT) == true)
{
result = true;
}