Nuxeo Enterprise Platform 5.4

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

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

public class UITypesConfigurationAdapter
extends Object
implements UITypesConfiguration

Default implementation of UITypesConfiguration.

Author:
Thomas Roger

Constructor Summary
UITypesConfigurationAdapter(DocumentModel doc)
           
 
Method Summary
 boolean canMerge()
          Returns true if this LocalConfiguration accepted to be merged with a parent configuration, false otherwise.
 boolean denyAllTypes()
          Returns true if all the types are denied, false otherwise.
 Map<String,SubType> filterSubTypes(Map<String,SubType> allowedSubTypes)
          Filter the allowedSubTypes according to this object configuration.
 List<String> getAllowedTypes()
          Returns the configured allowed types.
 String getDefaultType()
           
 List<String> getDeniedTypes()
          Returns the configured denied types.
 DocumentRef getDocumentRef()
          Returns the related DocumentRef of this local configuration.
 UITypesConfiguration merge(UITypesConfiguration 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

UITypesConfigurationAdapter

public UITypesConfigurationAdapter(DocumentModel doc)
Method Detail

getAllowedTypes

public List<String> getAllowedTypes()
Description copied from interface: UITypesConfiguration
Returns the configured allowed types.

Specified by:
getAllowedTypes in interface UITypesConfiguration

getDeniedTypes

public List<String> getDeniedTypes()
Description copied from interface: UITypesConfiguration
Returns the configured denied types.

Specified by:
getDeniedTypes in interface UITypesConfiguration

denyAllTypes

public boolean denyAllTypes()
Description copied from interface: UITypesConfiguration
Returns true if all the types are denied, false otherwise.

Specified by:
denyAllTypes in interface UITypesConfiguration

getDocumentRef

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

Specified by:
getDocumentRef in interface LocalConfiguration<UITypesConfiguration>

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<UITypesConfiguration>

merge

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

Specified by:
merge in interface LocalConfiguration<UITypesConfiguration>

filterSubTypes

public Map<String,SubType> filterSubTypes(Map<String,SubType> allowedSubTypes)
Description copied from interface: UITypesConfiguration
Filter the allowedSubTypes according to this object configuration.

Specified by:
filterSubTypes in interface UITypesConfiguration

getDefaultType

public String getDefaultType()
Specified by:
getDefaultType in interface UITypesConfiguration

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.