Class PluginServiceImpl

    • Field Detail

      • pattern

        protected Pattern pattern
      • contentStoreService

        protected org.craftercms.core.service.ContentStoreService contentStoreService
      • configurationReader

        protected org.craftercms.commons.config.EncryptionAwareConfigurationReader configurationReader
      • configurationPathPattern

        protected String configurationPathPattern
    • Constructor Detail

      • PluginServiceImpl

        @ConstructorProperties({"contentStoreService","configurationReader","configurationPathPattern"})
        public PluginServiceImpl​(org.craftercms.core.service.ContentStoreService contentStoreService,
                                 org.craftercms.commons.config.EncryptionAwareConfigurationReader configurationReader,
                                 String configurationPathPattern)
    • Method Detail

      • getPluginConfig

        public org.apache.commons.configuration2.HierarchicalConfiguration<?> getPluginConfig​(String pluginId)
        Description copied from interface: PluginService
        Loads the configuration for a given plugin
        Specified by:
        getPluginConfig in interface PluginService
        Parameters:
        pluginId - the id of the plugin
        Returns:
        the configuration object
      • loadPluginConfiguration

        protected org.apache.commons.configuration2.HierarchicalConfiguration<?> loadPluginConfiguration​(org.craftercms.core.service.Context context,
                                                                                                         String pluginPath)
      • addPluginVariables

        public void addPluginVariables​(String url,
                                       BiConsumer<String,​Object> setter)
        Description copied from interface: PluginService
        Adds variables related to plugins if the given URL belongs to a plugin
        Specified by:
        addPluginVariables in interface PluginService
        Parameters:
        url - the URL to check
        setter - the setter for the variables
      • pluginConfigExists

        protected boolean pluginConfigExists​(String path)
      • getPluginId

        protected String getPluginId​(String pluginPath)
      • getPluginConfigPath

        protected String getPluginConfigPath​(String pluginPath)
      • getCurrentContext

        protected org.craftercms.core.service.Context getCurrentContext()