Class BaseAutoDeployer

Object
com.liferay.portal.tools.deploy.BaseAutoDeployer
All Implemented Interfaces:
com.liferay.portal.kernel.deploy.auto.AutoDeployer, Closeable, AutoCloseable
Direct Known Subclasses:
PortletAutoDeployer, ThemeAutoDeployer

public class BaseAutoDeployer extends Object implements com.liferay.portal.kernel.deploy.auto.AutoDeployer
Author:
Brian Wing Shun Chan, Sandeep Soni
  • Field Details

    • DEPLOY_TO_PREFIX

      public static final String DEPLOY_TO_PREFIX
      See Also:
    • auiTaglibDTD

      protected String auiTaglibDTD
    • portletExtTaglibDTD

      protected String portletExtTaglibDTD
    • portletTaglibDTD

      protected String portletTaglibDTD
    • securityTaglibDTD

      protected String securityTaglibDTD
    • tempDirPaths

      protected final Set<Path> tempDirPaths
    • themeTaglibDTD

      protected String themeTaglibDTD
    • uiTaglibDTD

      protected String uiTaglibDTD
    • utilTaglibDTD

      protected String utilTaglibDTD
  • Constructor Details

    • BaseAutoDeployer

      public BaseAutoDeployer(String pluginType)
  • Method Details

    • autoDeploy

      public int autoDeploy(com.liferay.portal.kernel.deploy.auto.context.AutoDeploymentContext autoDeploymentContext) throws com.liferay.portal.kernel.deploy.auto.AutoDeployException
      Specified by:
      autoDeploy in interface com.liferay.portal.kernel.deploy.auto.AutoDeployer
      Throws:
      com.liferay.portal.kernel.deploy.auto.AutoDeployException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface com.liferay.portal.kernel.deploy.auto.AutoDeployer
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • copyDependencyXml

      public void copyDependencyXml(String fileName, String targetDir) throws Exception
      Specified by:
      copyDependencyXml in interface com.liferay.portal.kernel.deploy.auto.AutoDeployer
      Throws:
      Exception
    • copyDependencyXml

      public void copyDependencyXml(String fileName, String targetDir, Map<String,String> filterMap) throws Exception
      Specified by:
      copyDependencyXml in interface com.liferay.portal.kernel.deploy.auto.AutoDeployer
      Throws:
      Exception
    • copyDependencyXml

      public void copyDependencyXml(String fileName, String targetDir, Map<String,String> filterMap, boolean overwrite) throws Exception
      Specified by:
      copyDependencyXml in interface com.liferay.portal.kernel.deploy.auto.AutoDeployer
      Throws:
      Exception
    • copyXmls

      public void copyXmls(File srcFile, String displayName, com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) throws Exception
      Specified by:
      copyXmls in interface com.liferay.portal.kernel.deploy.auto.AutoDeployer
      Throws:
      Exception
    • deployDirectory

      public void deployDirectory(File srcFile, String displayName, com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) throws Exception
      Throws:
      Exception
    • getExtraContent

      public String getExtraContent(double webXmlVersion, File srcFile, String displayName) throws Exception
      Throws:
      Exception
    • getIgnoreFiltersContent

      public String getIgnoreFiltersContent(File srcFile) throws Exception
      Throws:
      Exception
    • getPluginType

      public String getPluginType()
    • processPluginPackageProperties

      public Map<String,String> processPluginPackageProperties(File srcFile, String displayName, com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) throws Exception
      Specified by:
      processPluginPackageProperties in interface com.liferay.portal.kernel.deploy.auto.AutoDeployer
      Throws:
      Exception
    • updateDeployDirectory

      public void updateDeployDirectory(File srcFile) throws Exception
      Throws:
      Exception