com.dotmarketing.plugin.business
Class PluginFactoryDBImpl

java.lang.Object
  extended by com.dotmarketing.plugin.business.PluginFactory
      extended by com.dotmarketing.plugin.business.PluginFactoryDBImpl

public class PluginFactoryDBImpl
extends PluginFactory

Author:
jasontesser

Constructor Summary
PluginFactoryDBImpl()
           
 
Method Summary
protected  void delete(Plugin plugin)
           
protected  void deletePluginProperties(java.lang.String pluginId)
          Deletes all properties for a specified plugin
protected  java.util.List<Plugin> findPlugins()
          Loads all plugins in the system
protected  Plugin loadPlugin(java.lang.String id)
          Load a plugin by its primary key(ID).
protected  PluginProperty loadProperty(java.lang.String pluginId, java.lang.String key)
           
protected  void save(Plugin plugin)
           
protected  void saveProperty(PluginProperty pluginProperty)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginFactoryDBImpl

public PluginFactoryDBImpl()
Method Detail

delete

protected void delete(Plugin plugin)
               throws DotDataException
Specified by:
delete in class PluginFactory
Throws:
DotDataException

deletePluginProperties

protected void deletePluginProperties(java.lang.String pluginId)
                               throws DotDataException
Description copied from class: PluginFactory
Deletes all properties for a specified plugin

Specified by:
deletePluginProperties in class PluginFactory
Throws:
DotDataException

loadPlugin

protected Plugin loadPlugin(java.lang.String id)
                     throws DotDataException
Description copied from class: PluginFactory
Load a plugin by its primary key(ID). The primary key of a Plugin is it's fully qualified name in the plugin directory.

Specified by:
loadPlugin in class PluginFactory
Returns:
Throws:
DotDataException

findPlugins

protected java.util.List<Plugin> findPlugins()
                                      throws DotDataException
Description copied from class: PluginFactory
Loads all plugins in the system

Specified by:
findPlugins in class PluginFactory
Returns:
Throws:
DotDataException

loadProperty

protected PluginProperty loadProperty(java.lang.String pluginId,
                                      java.lang.String key)
                               throws DotDataException
Specified by:
loadProperty in class PluginFactory
Returns:
Throws:
DotDataException

save

protected void save(Plugin plugin)
             throws DotDataException
Specified by:
save in class PluginFactory
Throws:
DotDataException

saveProperty

protected void saveProperty(PluginProperty pluginProperty)
                     throws DotDataException
Specified by:
saveProperty in class PluginFactory
Throws:
DotDataException


Copyright © 2013 dotCMS Inc. All Rights Reserved.