public class ContentViewConfigurationAdapter extends AbstractLocalConfiguration<ContentViewConfiguration> implements ContentViewConfiguration
ContentViewConfiguration
.Modifier and Type | Field and Description |
---|---|
protected boolean |
canMerge |
protected DocumentRef |
documentRef |
protected Map<String,List<String>> |
typeToContentViewNames |
Constructor and Description |
---|
ContentViewConfigurationAdapter(DocumentModel doc) |
Modifier and Type | Method and Description |
---|---|
boolean |
canMerge()
Returns
true if this LocalConfiguration accepted to be merged with a parent configuration,
false otherwise. |
List<String> |
getContentViewsForType(String docType)
Returns the ContentView name for a specified document type if any is configured.
|
DocumentRef |
getDocumentRef()
Returns the related
DocumentRef of this local configuration. |
Map<String,List<String>> |
getTypeToContentViewNames()
Returns the ContentView names for all the configured types.
|
ContentViewConfiguration |
merge(ContentViewConfiguration other)
Merge this
LocalConfiguration with another one. |
save
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
save
protected DocumentRef documentRef
protected Map<String,List<String>> typeToContentViewNames
protected boolean canMerge
public ContentViewConfigurationAdapter(DocumentModel doc)
public List<String> getContentViewsForType(String docType)
ContentViewConfiguration
getContentViewsForType
in interface ContentViewConfiguration
public boolean canMerge()
LocalConfiguration
true
if this LocalConfiguration
accepted to be merged with a parent configuration,
false
otherwise.canMerge
in interface LocalConfiguration<ContentViewConfiguration>
canMerge
in class AbstractLocalConfiguration<ContentViewConfiguration>
public DocumentRef getDocumentRef()
LocalConfiguration
DocumentRef
of this local configuration.getDocumentRef
in interface LocalConfiguration<ContentViewConfiguration>
public ContentViewConfiguration merge(ContentViewConfiguration other)
LocalConfiguration
LocalConfiguration
with another one.merge
in interface LocalConfiguration<ContentViewConfiguration>
merge
in class AbstractLocalConfiguration<ContentViewConfiguration>
public Map<String,List<String>> getTypeToContentViewNames()
ContentViewConfiguration
getTypeToContentViewNames
in interface ContentViewConfiguration
Copyright © 2016 Nuxeo SA. All rights reserved.