Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.types.localconfiguration
Class ContentViewConfigurationAdapter

java.lang.Object
  extended by org.nuxeo.ecm.platform.types.localconfiguration.ContentViewConfigurationAdapter
All Implemented Interfaces:
DetachedAdapter, LocalConfiguration<ContentViewConfiguration>, ContentViewConfiguration

public class ContentViewConfigurationAdapter
extends Object
implements ContentViewConfiguration

Default implementation of ContentViewConfiguration.

Author:
Quentin Lamerand

Constructor Summary
ContentViewConfigurationAdapter(DocumentModel doc)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentViewConfigurationAdapter

public ContentViewConfigurationAdapter(DocumentModel doc)
Method Detail

getContentViewsForType

public List<String> getContentViewsForType(String docType)
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 interface ContentViewConfiguration

canMerge

public boolean canMerge()
Description copied from interface: LocalConfiguration
Returns true if this LocalConfiguration accepted to be merged with a parent configuration, false otherwise.

Specified by:
canMerge in interface LocalConfiguration<ContentViewConfiguration>

getDocumentRef

public DocumentRef getDocumentRef()
Description copied from interface: LocalConfiguration
Returns the related DocumentRef of this local configuration.

Specified by:
getDocumentRef in interface LocalConfiguration<ContentViewConfiguration>

merge

public ContentViewConfiguration merge(ContentViewConfiguration other)
Description copied from interface: LocalConfiguration
Merge this LocalConfiguration with another one.

Specified by:
merge in interface LocalConfiguration<ContentViewConfiguration>

getTypeToContentViewNames

public Map<String,List<String>> getTypeToContentViewNames()
Description copied from interface: ContentViewConfiguration
Returns the ContentView names for all the configured types. Used for merging configurations.

Specified by:
getTypeToContentViewNames in interface ContentViewConfiguration

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.