public class

PluginsHelper

extends Object
java.lang.Object
   ↳ com.microstrategy.utils.PluginsHelper

Summary

Constants
String PLUGIN_DIRNAME
Public Constructors
PluginsHelper()
Public Methods
static String resolvePlugin(String valueString)
static String sanitizePluginsFolderPath(String folderPath)
Sanitizes folder path by restricting access to a custom plugins folder (/plugins) only.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String PLUGIN_DIRNAME

Constant Value: "plugins"

Public Constructors

public PluginsHelper ()

Public Methods

public static String resolvePlugin (String valueString)

public static String sanitizePluginsFolderPath (String folderPath)

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

Parameters
folderPath Name of the custom plugin folder
Returns
  • Relative path to the plugins folder location
Throws
IllegalArgumentException if folderPath is invalid/not-allowed