Package org.alfresco.repo.rendition
Class RenditionPreventionRegistry
java.lang.Object
org.alfresco.repo.rendition.RenditionPreventionRegistry
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA utility class which ensures that the specified aspect/type name is registered. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisContentClassRegistered(String contentClassName) Checks if the specified type/aspect is registered as a marker for rendition prevention.booleanisContentClassRegistered(QName aspectQName) Checks if the specified type/aspect is registered as a marker for rendition prevention.voidvoidsetNamespaceService(NamespaceService service)
-
Constructor Details
-
RenditionPreventionRegistry
public RenditionPreventionRegistry()
-
-
Method Details
-
setNamespaceService
-
register
-
getRegisteredQNames
- Returns:
- a Set of QNames of types/aspects which will prevent renditions from occurring.
-
isContentClassRegistered
Checks if the specified type/aspect is registered as a marker for rendition prevention.- Parameters:
contentClassName- aspect name.- Returns:
trueif this class will prevent renditions, elsefalse
-
isContentClassRegistered
Checks if the specified type/aspect is registered as a marker for rendition prevention.- Parameters:
aspectQName- aspect name.- Returns:
trueif this aspect will prevent renditions, elsefalse
-