That's the difference : #1 has full access to repository whereas #2
takes care of the ACL for the logged in user.
Cheers,
Anthony
Amir Mistric a écrit :
> Hi Magnolians
>
>
> Does anyone know what is the difference between these 2 calls?
>
> //1
> HierarchyManager hm =
> ContentRepository.getHierarchyManager(ContentRepository.WEBSITE);
>
> //2
> HierarchyManager hm =
> MgnlContext.getHierarchyManager(ContentRepository.WEBSITE);
>
>
>
> The only thing I can assume (looking at the code comments) is that in #1 the
> HierarchyManager has full access to website repository while in #2 case it
> has permissions based on the user that is logged in....Is that correct?
>
> ----------------------------------------------------------------
> for list details see
> http://www.magnolia.info/en/developer.html
> ----------------------------------------------------------------
>
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------