Class UITypesConfigurationAdapter
- java.lang.Object
-
- org.nuxeo.ecm.core.api.localconfiguration.AbstractLocalConfiguration<UITypesConfiguration>
-
- org.nuxeo.ecm.platform.types.localconfiguration.UITypesConfigurationAdapter
-
- All Implemented Interfaces:
DetachedAdapter
,LocalConfiguration<UITypesConfiguration>
,UITypesConfiguration
public class UITypesConfigurationAdapter extends AbstractLocalConfiguration<UITypesConfiguration> implements UITypesConfiguration
Default implementation ofUITypesConfiguration
.- Author:
- Thomas Roger
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>
allowedTypes
protected boolean
canMerge
protected String
defaultType
protected List<String>
deniedTypes
protected boolean
denyAllTypes
protected DocumentRef
documentRef
-
Constructor Summary
Constructors Constructor Description UITypesConfigurationAdapter(DocumentModel doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canMerge()
Returnstrue
if thisLocalConfiguration
accepted to be merged with a parent configuration,false
otherwise.boolean
denyAllTypes()
Returnstrue
if all the types are denied,false
otherwise.Map<String,SubType>
filterSubTypes(Map<String,SubType> allowedSubTypes)
Filter theallowedSubTypes
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 relatedDocumentRef
of this local configuration.protected List<String>
getTypesList(DocumentModel doc, String property)
UITypesConfiguration
merge(UITypesConfiguration other)
Merge thisLocalConfiguration
with another one.-
Methods inherited from class org.nuxeo.ecm.core.api.localconfiguration.AbstractLocalConfiguration
save
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.ecm.core.api.localconfiguration.LocalConfiguration
save
-
-
-
-
Field Detail
-
documentRef
protected DocumentRef documentRef
-
allowedTypes
protected List<String> allowedTypes
-
deniedTypes
protected List<String> deniedTypes
-
denyAllTypes
protected boolean denyAllTypes
-
canMerge
protected boolean canMerge
-
defaultType
protected String defaultType
-
-
Constructor Detail
-
UITypesConfigurationAdapter
public UITypesConfigurationAdapter(DocumentModel doc)
-
-
Method Detail
-
getTypesList
protected List<String> getTypesList(DocumentModel doc, String property)
-
getDenyAllTypesProperty
protected boolean getDenyAllTypesProperty(DocumentModel doc)
-
getDefaultType
protected String getDefaultType(DocumentModel doc)
-
getAllowedTypes
public List<String> getAllowedTypes()
Description copied from interface:UITypesConfiguration
Returns the configured allowed types.- Specified by:
getAllowedTypes
in interfaceUITypesConfiguration
-
getDeniedTypes
public List<String> getDeniedTypes()
Description copied from interface:UITypesConfiguration
Returns the configured denied types.- Specified by:
getDeniedTypes
in interfaceUITypesConfiguration
-
denyAllTypes
public boolean denyAllTypes()
Description copied from interface:UITypesConfiguration
Returnstrue
if all the types are denied,false
otherwise.- Specified by:
denyAllTypes
in interfaceUITypesConfiguration
-
getDocumentRef
public DocumentRef getDocumentRef()
Description copied from interface:LocalConfiguration
Returns the relatedDocumentRef
of this local configuration.- Specified by:
getDocumentRef
in interfaceLocalConfiguration<UITypesConfiguration>
-
canMerge
public boolean canMerge()
Description copied from interface:LocalConfiguration
Returnstrue
if thisLocalConfiguration
accepted to be merged with a parent configuration,false
otherwise.- Specified by:
canMerge
in interfaceLocalConfiguration<UITypesConfiguration>
- Overrides:
canMerge
in classAbstractLocalConfiguration<UITypesConfiguration>
-
merge
public UITypesConfiguration merge(UITypesConfiguration other)
Description copied from interface:LocalConfiguration
Merge thisLocalConfiguration
with another one.- Specified by:
merge
in interfaceLocalConfiguration<UITypesConfiguration>
- Overrides:
merge
in classAbstractLocalConfiguration<UITypesConfiguration>
-
filterSubTypes
public Map<String,SubType> filterSubTypes(Map<String,SubType> allowedSubTypes)
Description copied from interface:UITypesConfiguration
Filter theallowedSubTypes
according to this object configuration.- Specified by:
filterSubTypes
in interfaceUITypesConfiguration
-
getDefaultType
public String getDefaultType()
- Specified by:
getDefaultType
in interfaceUITypesConfiguration
-
-