Class MLPropertyInterceptor

    • Constructor Detail

      • MLPropertyInterceptor

        public MLPropertyInterceptor()
    • Method Detail

      • setMLAware

        public static boolean setMLAware​(boolean mlAwareVal)
        Change the filtering behaviour of this interceptor on the curren thread. Use this to switch off the filtering and just pass out properties as handed out of the node service.
        Parameters:
        mlAwareVal - true if the current thread is able to handle d:mltext property types, otherwise false.
        Returns:
        true if the current transaction is ML aware
      • isMLAware

        public static boolean isMLAware()
        Returns:
        Returns true if the current thread has marked itself as being able to handle d:mltext types properly.
      • setNodeService

        public void setNodeService​(NodeService bean)
      • setMultilingualContentService

        public void setMultilingualContentService​(MultilingualContentService multilingualContentService)
      • setDictionaryService

        public void setDictionaryService​(DictionaryService dictionaryService)
      • invoke

        public Object invoke​(org.aopalliance.intercept.MethodInvocation invocation)
                      throws Throwable
        Specified by:
        invoke in interface org.aopalliance.intercept.MethodInterceptor
        Throws:
        Throwable
      • getClosestLocale

        public Locale getClosestLocale​(Collection<?> collection)