Class DirectoryConfigurationAdapter
- java.lang.Object
-
- org.nuxeo.ecm.core.api.localconfiguration.AbstractLocalConfiguration<DirectoryConfiguration>
-
- org.nuxeo.ecm.directory.localconfiguration.DirectoryConfigurationAdapter
-
- All Implemented Interfaces:
DetachedAdapter
,LocalConfiguration<DirectoryConfiguration>
,DirectoryConfiguration
public class DirectoryConfigurationAdapter extends AbstractLocalConfiguration<DirectoryConfiguration> implements DirectoryConfiguration
Default implementation ofDirectoryConfiguration
.- Since:
- 5.4.2
- Author:
- Benjamin JALON
-
-
Field Summary
Fields Modifier and Type Field Description protected DocumentRef
documentRef
protected String
lcDirectorySuffix
-
Constructor Summary
Constructors Constructor Description DirectoryConfigurationAdapter(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.String
getDirectorySuffix()
Returns the directory suffix if any is configured.DocumentRef
getDocumentRef()
Returns the relatedDocumentRef
of this local configuration.DirectoryConfiguration
merge(DirectoryConfiguration 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
-
lcDirectorySuffix
protected String lcDirectorySuffix
-
-
Constructor Detail
-
DirectoryConfigurationAdapter
public DirectoryConfigurationAdapter(DocumentModel doc)
-
-
Method Detail
-
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<DirectoryConfiguration>
- Overrides:
canMerge
in classAbstractLocalConfiguration<DirectoryConfiguration>
-
getDocumentRef
public DocumentRef getDocumentRef()
Description copied from interface:LocalConfiguration
Returns the relatedDocumentRef
of this local configuration.- Specified by:
getDocumentRef
in interfaceLocalConfiguration<DirectoryConfiguration>
-
merge
public DirectoryConfiguration merge(DirectoryConfiguration other)
Description copied from interface:LocalConfiguration
Merge thisLocalConfiguration
with another one.- Specified by:
merge
in interfaceLocalConfiguration<DirectoryConfiguration>
- Overrides:
merge
in classAbstractLocalConfiguration<DirectoryConfiguration>
-
getDirectorySuffix
public String getDirectorySuffix()
Description copied from interface:DirectoryConfiguration
Returns the directory suffix if any is configured. Else, returns null.- Specified by:
getDirectorySuffix
in interfaceDirectoryConfiguration
-
-