public class UITypesConfigurationAdapter extends AbstractLocalConfiguration<UITypesConfiguration> implements UITypesConfiguration
UITypesConfiguration
.Modifier and Type | Field and Description |
---|---|
protected List<String> |
allowedTypes |
protected boolean |
canMerge |
protected String |
defaultType |
protected List<String> |
deniedTypes |
protected boolean |
denyAllTypes |
protected DocumentRef |
documentRef |
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() |
protected String |
getDefaultType(DocumentModel doc) |
List<String> |
getDeniedTypes()
Returns the configured denied types.
|
protected boolean |
getDenyAllTypesProperty(DocumentModel doc) |
DocumentRef |
getDocumentRef()
Returns the related
DocumentRef of this local configuration. |
protected List<String> |
getTypesList(DocumentModel doc,
String property) |
UITypesConfiguration |
merge(UITypesConfiguration other)
Merge this
LocalConfiguration with another one. |
save
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
save
protected DocumentRef documentRef
protected List<String> allowedTypes
protected List<String> deniedTypes
protected boolean denyAllTypes
protected boolean canMerge
protected String defaultType
public UITypesConfigurationAdapter(DocumentModel doc)
protected List<String> getTypesList(DocumentModel doc, String property)
protected boolean getDenyAllTypesProperty(DocumentModel doc)
protected String getDefaultType(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 © 2016 Nuxeo SA. All rights reserved.