Package org.alfresco.repo.rendition
Class RenditionPreventionRegistry
- java.lang.Object
-
- org.alfresco.repo.rendition.RenditionPreventionRegistry
-
public class RenditionPreventionRegistry extends java.lang.ObjectThis 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 Classes Modifier and Type Class Description static classRenditionPreventionRegistry.SelfRegisteringClassNameA utility class which ensures that the specified aspect/type name is registered.
-
Constructor Summary
Constructors Constructor Description RenditionPreventionRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<org.alfresco.service.namespace.QName>getRegisteredQNames()booleanisContentClassRegistered(java.lang.String contentClassName)Checks if the specified type/aspect is registered as a marker for rendition prevention.booleanisContentClassRegistered(org.alfresco.service.namespace.QName aspectQName)Checks if the specified type/aspect is registered as a marker for rendition prevention.voidregister(java.lang.String contentClass)voidsetNamespaceService(org.alfresco.service.namespace.NamespaceService service)
-
-
-
Method Detail
-
setNamespaceService
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService service)
-
register
public void register(java.lang.String contentClass)
-
getRegisteredQNames
public java.util.Set<org.alfresco.service.namespace.QName> getRegisteredQNames()
- Returns:
- a Set of QNames of types/aspects which will prevent renditions from occurring.
-
isContentClassRegistered
public boolean isContentClassRegistered(java.lang.String contentClassName)
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
public boolean isContentClassRegistered(org.alfresco.service.namespace.QName aspectQName)
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
-
-