Class RenditionPreventionRegistry


  • public class RenditionPreventionRegistry
    extends Object
    This class holds a registry of content class names (types and aspects) which if they are present on a sourceNode will prevent any renditions from being created for that node.
    Since:
    4.0.1
    Author:
    Neil Mc Erlean
    • Constructor Detail

      • RenditionPreventionRegistry

        public RenditionPreventionRegistry()
    • Method Detail

      • setNamespaceService

        public void setNamespaceService​(NamespaceService service)
      • register

        public void register​(String contentClass)
      • getRegisteredQNames

        public Set<QName> getRegisteredQNames()
        Returns:
        a Set of QNames of types/aspects which will prevent renditions from occurring.
      • isContentClassRegistered

        public boolean isContentClassRegistered​(String contentClassName)
        Checks if the specified type/aspect is registered as a marker for rendition prevention.
        Parameters:
        contentClassName - aspect name.
        Returns:
        true if this class will prevent renditions, else false
      • isContentClassRegistered

        public boolean isContentClassRegistered​(QName aspectQName)
        Checks if the specified type/aspect is registered as a marker for rendition prevention.
        Parameters:
        aspectQName - aspect name.
        Returns:
        true if this aspect will prevent renditions, else false