Package com.vdoc.sdk.commons.utils
Class PluginUtils
java.lang.Object
com.vdoc.sdk.commons.utils.PluginUtils
Plugin utility class
-
Method Summary
Modifier and TypeMethodDescriptiongetAllPluginsByRootName(ISiteExecutionContext siteExecutionContext, String rootName) Gets all plugins with rootName in current Sitestatic IResourcegetAssociatedResource(IPlugin plugin) static IResourcegetAssociatedResource(ISiteExecutionContext siteExecutionContext) Gets theIResourceassociated with theISiteExecutionContextstatic IPlugingetOnePluginByRootName(ISiteExecutionContext siteExecutionContext, String rootName) Get one plugin by root name
-
Method Details
-
getAssociatedResource
- Parameters:
plugin- the plugin- Returns:
- the resource
-
getAssociatedResource
Gets theIResourceassociated with theISiteExecutionContext- Parameters:
siteExecutionContext- the context- Returns:
- the resource
- Throws:
IllegalStateException- if there is noIPlugininISiteExecutionContext
-
getOnePluginByRootName
public static IPlugin getOnePluginByRootName(ISiteExecutionContext siteExecutionContext, String rootName) Get one plugin by root name- Parameters:
siteExecutionContext- the contextrootName- the root name- Returns:
- the plugin
-
getAllPluginsByRootName
public static List<IPlugin> getAllPluginsByRootName(ISiteExecutionContext siteExecutionContext, String rootName) Gets all plugins with rootName in current Site- Parameters:
siteExecutionContext- the contextrootName- the root name- Returns:
- the plugins
-