Class ContentViewConfigurationAdapter
java.lang.Object
org.nuxeo.ecm.core.api.localconfiguration.AbstractLocalConfiguration<ContentViewConfiguration>
org.nuxeo.ecm.platform.types.localconfiguration.ContentViewConfigurationAdapter
- All Implemented Interfaces:
DetachedAdapter
,LocalConfiguration<ContentViewConfiguration>
,ContentViewConfiguration
public class ContentViewConfigurationAdapter
extends AbstractLocalConfiguration<ContentViewConfiguration>
implements ContentViewConfiguration
Default implementation of
ContentViewConfiguration
.- Author:
- Quentin Lamerand
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canMerge()
Returnstrue
if thisLocalConfiguration
accepted to be merged with a parent configuration,false
otherwise.getContentViewsForType
(String docType) Returns the ContentView name for a specified document type if any is configured.Returns the relatedDocumentRef
of this local configuration.Returns the ContentView names for all the configured types.merge
(ContentViewConfiguration other) Merge thisLocalConfiguration
with another one.Methods inherited from class org.nuxeo.ecm.core.api.localconfiguration.AbstractLocalConfiguration
save
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.ecm.core.api.localconfiguration.LocalConfiguration
save
-
Field Details
-
documentRef
-
typeToContentViewNames
-
canMerge
protected boolean canMerge
-
-
Constructor Details
-
ContentViewConfigurationAdapter
-
-
Method Details
-
getContentViewsForType
Description copied from interface:ContentViewConfiguration
Returns the ContentView name for a specified document type if any is configured. Else, returns null.- Specified by:
getContentViewsForType
in interfaceContentViewConfiguration
-
canMerge
public boolean canMerge()Description copied from interface:LocalConfiguration
Returnstrue
if thisLocalConfiguration
accepted to be merged with a parent configuration,false
otherwise.- Specified by:
canMerge
in interfaceLocalConfiguration<ContentViewConfiguration>
- Overrides:
canMerge
in classAbstractLocalConfiguration<ContentViewConfiguration>
-
getDocumentRef
Description copied from interface:LocalConfiguration
Returns the relatedDocumentRef
of this local configuration.- Specified by:
getDocumentRef
in interfaceLocalConfiguration<ContentViewConfiguration>
-
merge
Description copied from interface:LocalConfiguration
Merge thisLocalConfiguration
with another one.- Specified by:
merge
in interfaceLocalConfiguration<ContentViewConfiguration>
- Overrides:
merge
in classAbstractLocalConfiguration<ContentViewConfiguration>
-
getTypeToContentViewNames
Description copied from interface:ContentViewConfiguration
Returns the ContentView names for all the configured types. Used for merging configurations.- Specified by:
getTypeToContentViewNames
in interfaceContentViewConfiguration
-