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 of
UITypesConfiguration
.- Author:
- Thomas Roger
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected String
protected boolean
protected DocumentRef
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canMerge()
Returnstrue
if thisLocalConfiguration
accepted to be merged with a parent configuration,false
otherwise.boolean
Returnstrue
if all the types are denied,false
otherwise.filterSubTypes
(Collection<String> allowedSubTypes) Filters theallowedSubTypes
according to this object configuration.filterSubTypes
(Map<String, SubType> allowedSubTypes) Filter theallowedSubTypes
according to this object configuration.Returns the configured allowed types.protected String
Returns the configured denied types.protected boolean
Returns the relatedDocumentRef
of this local configuration.getTypesList
(DocumentModel doc, String property) 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 Details
-
documentRef
-
allowedTypes
-
deniedTypes
-
denyAllTypes
protected boolean denyAllTypes -
canMerge
protected boolean canMerge -
defaultType
-
-
Constructor Details
-
UITypesConfigurationAdapter
-
-
Method Details
-
getTypesList
-
getDenyAllTypesProperty
-
getDefaultType
-
getAllowedTypes
Description copied from interface:UITypesConfiguration
Returns the configured allowed types.- Specified by:
getAllowedTypes
in interfaceUITypesConfiguration
-
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
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
Description copied from interface:LocalConfiguration
Merge thisLocalConfiguration
with another one.- Specified by:
merge
in interfaceLocalConfiguration<UITypesConfiguration>
- Overrides:
merge
in classAbstractLocalConfiguration<UITypesConfiguration>
-
filterSubTypes
Description copied from interface:UITypesConfiguration
Filter theallowedSubTypes
according to this object configuration.- Specified by:
filterSubTypes
in interfaceUITypesConfiguration
-
filterSubTypes
Description copied from interface:UITypesConfiguration
Filters theallowedSubTypes
according to this object configuration.- Specified by:
filterSubTypes
in interfaceUITypesConfiguration
-
getDefaultType
- Specified by:
getDefaultType
in interfaceUITypesConfiguration
-