public class UITypesConfigurationAdapter extends AbstractLocalConfiguration<UITypesConfiguration> implements UITypesConfiguration
UITypesConfiguration
.Constructor and Description |
---|
UITypesConfigurationAdapter(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. |
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. |
save
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
save
public UITypesConfigurationAdapter(DocumentModel doc)
public List<String> getAllowedTypes()
UITypesConfiguration
getAllowedTypes
in interface UITypesConfiguration
public List<String> getDeniedTypes()
UITypesConfiguration
getDeniedTypes
in interface UITypesConfiguration
public boolean denyAllTypes()
UITypesConfiguration
true
if all the types are denied, false
otherwise.denyAllTypes
in interface UITypesConfiguration
public DocumentRef getDocumentRef()
LocalConfiguration
DocumentRef
of this local configuration.getDocumentRef
in interface LocalConfiguration<UITypesConfiguration>
public boolean canMerge()
LocalConfiguration
true
if this LocalConfiguration
accepted to be merged with a parent configuration,
false
otherwise.canMerge
in interface LocalConfiguration<UITypesConfiguration>
canMerge
in class AbstractLocalConfiguration<UITypesConfiguration>
public UITypesConfiguration merge(UITypesConfiguration other)
LocalConfiguration
LocalConfiguration
with another one.merge
in interface LocalConfiguration<UITypesConfiguration>
merge
in class AbstractLocalConfiguration<UITypesConfiguration>
public Map<String,SubType> filterSubTypes(Map<String,SubType> allowedSubTypes)
UITypesConfiguration
allowedSubTypes
according to this object configuration.filterSubTypes
in interface UITypesConfiguration
public String getDefaultType()
getDefaultType
in interface UITypesConfiguration
Copyright © 2015 Nuxeo SA. All rights reserved.