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_atLeastOneHierarchyprotected HierarchicalReferenceTablesHelper_hierarchicalSimpleContentsHelperThe 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 voidconfigure(Configuration configuration)Map<List<String>,Pattern>getImports()Get the list of files to import, associated with the workspace pattern to matchvoidservice(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:
servicein interfaceServiceable- Throws:
ServiceException
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classStaticRibbonImportManager- Throws:
ConfigurationException
-
getImports
public Map<List<String>,Pattern> getImports()
Description copied from interface:RibbonImportGet the list of files to import, associated with the workspace pattern to match- Specified by:
getImportsin interfaceRibbonImport- Overrides:
getImportsin classStaticRibbonImportManager- Returns:
- The list of files
-
-