com.dotmarketing.plugin.business
Class PluginFactory

java.lang.Object
  extended by com.dotmarketing.plugin.business.PluginFactory
Direct Known Subclasses:
PluginFactoryDBImpl

public abstract class PluginFactory
extends java.lang.Object


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

Constructor Detail

PluginFactory

public PluginFactory()
Method Detail

findPlugins

protected abstract java.util.List<Plugin> findPlugins()
                                               throws DotDataException
Loads all plugins in the system

Returns:
Throws:
DotDataException

loadPlugin

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

Parameters:
id -
Returns:
Throws:
DotDataException

save

protected abstract void save(Plugin plugin)
                      throws DotDataException
Parameters:
plugin -
Throws:
DotDataException

delete

protected abstract void delete(Plugin plugin)
                        throws DotDataException
Parameters:
plugin -
Throws:
DotDataException

deletePluginProperties

protected abstract void deletePluginProperties(java.lang.String pluginId)
                                        throws DotDataException
Deletes all properties for a specified plugin

Parameters:
pluginId -
Throws:
DotDataException

loadProperty

protected abstract PluginProperty loadProperty(java.lang.String pluginId,
                                               java.lang.String key)
                                        throws DotDataException
Parameters:
pluginId -
key -
Returns:
Throws:
DotDataException

saveProperty

protected abstract void saveProperty(PluginProperty pluginProperty)
                              throws DotDataException
Parameters:
pluginId -
key -
value -
Throws:
DotDataException


Copyright © 2013 dotCMS Inc. All Rights Reserved.