Class PluginsHelper

  • public class PluginsHelper
    extends java.lang.Object
    MicroStrategy Web 9.0.1
    • Field Summary

      Modifier and Type Field Description
      static java.lang.String PLUGIN_DIRNAME  
    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String resolvePlugin​(java.lang.String valueString)  
      static java.lang.String sanitizePluginsFolderPath​(java.lang.String folderPath)
      Sanitizes folder path by restricting access to a custom plugins folder (/plugins) only.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PluginsHelper

        public PluginsHelper()
    • Method Detail

      • resolvePlugin

        public static java.lang.String resolvePlugin​(java.lang.String valueString)
      • sanitizePluginsFolderPath

        public static java.lang.String sanitizePluginsFolderPath​(java.lang.String folderPath)
                                                          throws java.lang.IllegalArgumentException
        Sanitizes folder path by restricting access to a custom plugins folder (/plugins) only.
        Adds a plugins/ prefix if not already provided.
        Ex. Following all path points to same directory: plugins/BulletChart or /BulletChart or BulletChart
        folderPath - Name of the custom plugin folder
        Relative path to the plugins folder location
        java.lang.IllegalArgumentException - if folderPath is invalid/not-allowed