Nuxeo ECM Projects 5.4.3-SNAPSHOT

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

java.lang.Object
  extended by org.nuxeo.ecm.core.api.localconfiguration.AbstractLocalConfiguration<ContentViewConfiguration>
      extended by 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

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 org.nuxeo.ecm.core.api.localconfiguration.AbstractLocalConfiguration
save
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nuxeo.ecm.core.api.localconfiguration.LocalConfiguration
save
 

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>
Overrides:
canMerge in class AbstractLocalConfiguration<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>
Overrides:
merge in class AbstractLocalConfiguration<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 ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.