com.liferay.portal.deploy.sandbox
Class BaseSandboxHandler
java.lang.Object
com.liferay.portal.deploy.sandbox.BaseSandboxHandler
- All Implemented Interfaces:
- SandboxHandler
- Direct Known Subclasses:
- PortletSandboxHandler, ThemeSandboxHandler
public abstract class BaseSandboxHandler
- extends java.lang.Object
- implements SandboxHandler
- Author:
- Igor Spasic, Brian Wing Shun Chan
|
Constructor Summary |
BaseSandboxHandler(com.liferay.portal.kernel.deploy.Deployer deployer)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseSandboxHandler
public BaseSandboxHandler(com.liferay.portal.kernel.deploy.Deployer deployer)
createContextXml
public void createContextXml(java.io.File dir)
throws java.io.IOException
- Throws:
java.io.IOException
createPluginPackageProperties
public void createPluginPackageProperties(java.io.File dir,
java.lang.String pluginName)
throws java.io.IOException
- Throws:
java.io.IOException
deleteContextXml
public void deleteContextXml(java.io.File dir)
deploy
public void deploy(java.io.File dir)
throws com.liferay.portal.kernel.deploy.sandbox.SandboxDeployException
- Specified by:
deploy in interface SandboxHandler
- Throws:
com.liferay.portal.kernel.deploy.sandbox.SandboxDeployException
getDisplayName
public java.lang.String getDisplayName(java.lang.String dirName)
- Specified by:
getDisplayName in interface SandboxHandler
getPluginName
public java.lang.String getPluginName(java.lang.String dirName)
isEnabled
public boolean isEnabled(java.io.File dir)
undeploy
public void undeploy(java.io.File dir)
throws com.liferay.portal.kernel.deploy.sandbox.SandboxDeployException
- Specified by:
undeploy in interface SandboxHandler
- Throws:
com.liferay.portal.kernel.deploy.sandbox.SandboxDeployException
clonePlugin
protected abstract void clonePlugin(java.io.File dir,
com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)
throws java.lang.Exception
- Throws:
java.lang.Exception
getEngineHostDir
protected java.io.File getEngineHostDir()
getPluginType
protected abstract java.lang.String getPluginType()