Class HierarchicalReferenceTablesRibbonImportManager
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.core.ui.StaticRibbonImportManager
-
- org.ametys.cms.content.referencetable.HierarchicalReferenceTablesRibbonImportManager
-
- All Implemented Interfaces:
RibbonImport
,LogEnabled
,PluginAware
,Configurable
,Serviceable
public class HierarchicalReferenceTablesRibbonImportManager extends StaticRibbonImportManager implements Serviceable
Ribbon import manager, which import ribbon files only if there is at least one hierarchical reference tables in the application
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
_atLeastOneHierarchy
protected HierarchicalReferenceTablesHelper
_hierarchicalSimpleContentsHelper
The helper component for hierarchical simple contents
-
Constructor Summary
Constructors Constructor Description HierarchicalReferenceTablesRibbonImportManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Configuration configuration)
Map<List<String>,Pattern>
getImports()
Get the list of files to import, associated with the workspace pattern to matchvoid
service(ServiceManager smanager)
-
Methods inherited from class org.ametys.core.ui.StaticRibbonImportManager
setPluginInfo
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
_hierarchicalSimpleContentsHelper
protected HierarchicalReferenceTablesHelper _hierarchicalSimpleContentsHelper
The helper component for hierarchical simple contents
-
_atLeastOneHierarchy
private boolean _atLeastOneHierarchy
-
-
Constructor Detail
-
HierarchicalReferenceTablesRibbonImportManager
public HierarchicalReferenceTablesRibbonImportManager()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configure
in interfaceConfigurable
- Overrides:
configure
in classStaticRibbonImportManager
- Throws:
ConfigurationException
-
getImports
public Map<List<String>,Pattern> getImports()
Description copied from interface:RibbonImport
Get the list of files to import, associated with the workspace pattern to match- Specified by:
getImports
in interfaceRibbonImport
- Overrides:
getImports
in classStaticRibbonImportManager
- Returns:
- The list of files
-
-