Class PluginConfiguration

java.lang.Object
com.jalios.jcms.wysiwyg.PluginConfiguration
All Implemented Interfaces:
Comparable<PluginConfiguration>

public class PluginConfiguration extends Object implements Comparable<PluginConfiguration>
  • Constructor Details

    • PluginConfiguration

      public PluginConfiguration(String id, String path)
  • Method Details

    • init

      public void init()
    • getId

      public String getId()
      Returns the plugin ID
      Returns:
      The plugin ID
    • getPath

      public String getPath()
      Returns the JavaScript file path of the plugin.
      Returns:
      The JS file path
    • getBasePath

      public String getBasePath()
      Returns the Plugin base folder path.
      Returns:
      The Plugin base folder path
    • getCss

      public String getCss()
      Returns the Plugin CSS path or null if the file doesn't exist.
      Returns:
      The Plugin CSS file path
    • getLanguagePath

      public String getLanguagePath(String lang)
      Returns the JS lang file path from the given language.
      If the JS lang file is not found for the given language, it uses the JS lang file with the main language of the site.
      If the JS lang file is not found for the main language, it uses the english JS lang.
      Parameters:
      lang - language of the JS lang file to find
      Returns:
      The JS lang file path
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(PluginConfiguration other)
      Specified by:
      compareTo in interface Comparable<PluginConfiguration>