Liferay 7.0-ga1 portal-impl

com.liferay.portal.plugin
Class PluginPackageUtil

java.lang.Object
  extended by com.liferay.portal.plugin.PluginPackageUtil

public class PluginPackageUtil
extends Object


Method Summary
static void endPluginPackageInstallation(String preliminaryContext)
           
static List<com.liferay.portal.kernel.plugin.PluginPackage> getAllAvailablePluginPackages()
           
static Collection<String> getAvailableTags()
           
static com.liferay.portal.kernel.plugin.PluginPackage getInstalledPluginPackage(String context)
           
static List<com.liferay.portal.kernel.plugin.PluginPackage> getInstalledPluginPackages()
           
static Date getLastUpdateDate()
           
static com.liferay.portal.kernel.plugin.PluginPackage getLatestAvailablePluginPackage(String groupId, String artifactId)
           
static com.liferay.portal.kernel.plugin.PluginPackage getLatestInstalledPluginPackage(String groupId, String artifactId)
           
static com.liferay.portal.kernel.plugin.PluginPackage getPluginPackageByModuleId(String moduleId, String repositoryURL)
           
static com.liferay.portal.kernel.plugin.PluginPackage getPluginPackageByURL(String url)
           
static com.liferay.portal.kernel.plugin.RemotePluginPackageRepository getRepository(String repositoryURL)
           
static String[] getRepositoryURLs()
           
static String[] getStatusAndInstalledVersion(com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)
           
static String[] getSupportedTypes()
           
static boolean isCurrentVersionSupported(List<String> versions)
           
static boolean isIgnored(com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)
           
static boolean isInstallationInProcess(String context)
           
static boolean isInstalled(String context)
           
static boolean isTrusted(String repositoryURL)
           
static boolean isUpdateAvailable()
           
static com.liferay.portal.kernel.plugin.PluginPackage readPluginPackageProperties(String displayName, Properties properties)
           
static com.liferay.portal.kernel.plugin.PluginPackage readPluginPackageServletContext(javax.servlet.ServletContext servletContext)
           
static com.liferay.portal.kernel.plugin.PluginPackage readPluginPackageXml(com.liferay.portal.kernel.xml.Element pluginPackageElement)
           
static com.liferay.portal.kernel.plugin.PluginPackage readPluginPackageXml(String xml)
           
static void refreshUpdatesAvailableCache()
           
static void registerInstalledPluginPackage(com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)
           
static void registerPluginPackageInstallation(String preliminaryContext)
           
static RepositoryReport reloadRepositories()
           
static com.liferay.portal.kernel.search.Hits search(String keywords, String type, String tag, String license, String repositoryURL, String status, int start, int end)
           
static void unregisterInstalledPluginPackage(com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)
           
static void updateInstallingPluginPackage(String preliminaryContext, com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

endPluginPackageInstallation

public static void endPluginPackageInstallation(String preliminaryContext)

getAllAvailablePluginPackages

public static List<com.liferay.portal.kernel.plugin.PluginPackage> getAllAvailablePluginPackages()
                                                                                          throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getAvailableTags

public static Collection<String> getAvailableTags()

getInstalledPluginPackage

public static com.liferay.portal.kernel.plugin.PluginPackage getInstalledPluginPackage(String context)

getInstalledPluginPackages

public static List<com.liferay.portal.kernel.plugin.PluginPackage> getInstalledPluginPackages()

getLastUpdateDate

public static Date getLastUpdateDate()

getLatestAvailablePluginPackage

public static com.liferay.portal.kernel.plugin.PluginPackage getLatestAvailablePluginPackage(String groupId,
                                                                                             String artifactId)
                                                                                      throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getLatestInstalledPluginPackage

public static com.liferay.portal.kernel.plugin.PluginPackage getLatestInstalledPluginPackage(String groupId,
                                                                                             String artifactId)

getPluginPackageByModuleId

public static com.liferay.portal.kernel.plugin.PluginPackage getPluginPackageByModuleId(String moduleId,
                                                                                        String repositoryURL)
                                                                                 throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getPluginPackageByURL

public static com.liferay.portal.kernel.plugin.PluginPackage getPluginPackageByURL(String url)
                                                                            throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getRepository

public static com.liferay.portal.kernel.plugin.RemotePluginPackageRepository getRepository(String repositoryURL)
                                                                                    throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getRepositoryURLs

public static String[] getRepositoryURLs()

getStatusAndInstalledVersion

public static String[] getStatusAndInstalledVersion(com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)

getSupportedTypes

public static String[] getSupportedTypes()

isCurrentVersionSupported

public static boolean isCurrentVersionSupported(List<String> versions)

isIgnored

public static boolean isIgnored(com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)

isInstallationInProcess

public static boolean isInstallationInProcess(String context)

isInstalled

public static boolean isInstalled(String context)

isTrusted

public static boolean isTrusted(String repositoryURL)

isUpdateAvailable

public static boolean isUpdateAvailable()

readPluginPackageProperties

public static com.liferay.portal.kernel.plugin.PluginPackage readPluginPackageProperties(String displayName,
                                                                                         Properties properties)

readPluginPackageServletContext

public static com.liferay.portal.kernel.plugin.PluginPackage readPluginPackageServletContext(javax.servlet.ServletContext servletContext)
                                                                                      throws com.liferay.portal.kernel.xml.DocumentException,
                                                                                             IOException
Throws:
com.liferay.portal.kernel.xml.DocumentException
IOException

readPluginPackageXml

public static com.liferay.portal.kernel.plugin.PluginPackage readPluginPackageXml(com.liferay.portal.kernel.xml.Element pluginPackageElement)

readPluginPackageXml

public static com.liferay.portal.kernel.plugin.PluginPackage readPluginPackageXml(String xml)
                                                                           throws com.liferay.portal.kernel.xml.DocumentException
Throws:
com.liferay.portal.kernel.xml.DocumentException

refreshUpdatesAvailableCache

public static void refreshUpdatesAvailableCache()

registerInstalledPluginPackage

public static void registerInstalledPluginPackage(com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)
                                           throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

registerPluginPackageInstallation

public static void registerPluginPackageInstallation(String preliminaryContext)

reloadRepositories

public static RepositoryReport reloadRepositories()
                                           throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

search

public static com.liferay.portal.kernel.search.Hits search(String keywords,
                                                           String type,
                                                           String tag,
                                                           String license,
                                                           String repositoryURL,
                                                           String status,
                                                           int start,
                                                           int end)
                                                    throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

unregisterInstalledPluginPackage

public static void unregisterInstalledPluginPackage(com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)
                                             throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

updateInstallingPluginPackage

public static void updateInstallingPluginPackage(String preliminaryContext,
                                                 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)

Liferay 7.0-ga1 portal-impl