Liferay 6.0.5

com.liferay.portal.plugin
Class PluginPackageUtil

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

public class PluginPackageUtil
extends Object


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

Field Detail

REPOSITORY_XML_FILENAME_EXTENSION

public static final String REPOSITORY_XML_FILENAME_EXTENSION
See Also:
Constant Field Values

REPOSITORY_XML_FILENAME_PREFIX

public static final String REPOSITORY_XML_FILENAME_PREFIX
See Also:
Constant Field Values
Method Detail

endPluginPackageInstallation

public static void endPluginPackageInstallation(String preliminaryContext)

getAllAvailablePluginPackages

public static List<PluginPackage> getAllAvailablePluginPackages()
                                                         throws PortalException,
                                                                SystemException
Throws:
PortalException
SystemException

getAvailableTags

public static Collection<String> getAvailableTags()

getInstalledPluginPackages

public static List<PluginPackage> getInstalledPluginPackages()

getLastUpdateDate

public static Date getLastUpdateDate()

getLatestAvailablePluginPackage

public static PluginPackage getLatestAvailablePluginPackage(String groupId,
                                                            String artifactId)
                                                     throws PortalException,
                                                            SystemException
Throws:
PortalException
SystemException

getLatestInstalledPluginPackage

public static PluginPackage getLatestInstalledPluginPackage(String groupId,
                                                            String artifactId)

getPluginPackageByModuleId

public static PluginPackage getPluginPackageByModuleId(String moduleId,
                                                       String repositoryURL)
                                                throws PortalException,
                                                       SystemException
Throws:
PortalException
SystemException

getPluginPackageByURL

public static PluginPackage getPluginPackageByURL(String url)
                                           throws PortalException,
                                                  SystemException
Throws:
PortalException
SystemException

getRepository

public static RemotePluginPackageRepository getRepository(String repositoryURL)
                                                   throws PortalException,
                                                          SystemException
Throws:
PortalException
SystemException

getStatusAndInstalledVersion

public static String[] getStatusAndInstalledVersion(PluginPackage pluginPackage)

getRepositoryURLs

public static String[] getRepositoryURLs()
                                  throws SystemException
Throws:
SystemException

getSupportedTypes

public static String[] getSupportedTypes()

isCurrentVersionSupported

public static boolean isCurrentVersionSupported(List<String> versions)

isIgnored

public static boolean isIgnored(PluginPackage pluginPackage)
                         throws SystemException
Throws:
SystemException

isInstallationInProcess

public static boolean isInstallationInProcess(String context)

isTrusted

public static boolean isTrusted(String repositoryURL)
                         throws SystemException
Throws:
SystemException

isUpdateAvailable

public static boolean isUpdateAvailable()
                                 throws SystemException
Throws:
SystemException

readPluginPackageProperties

public static PluginPackage readPluginPackageProperties(String displayName,
                                                        Properties props)

readPluginPackageXml

public static PluginPackage readPluginPackageXml(Element pluginPackageEl)

readPluginPackageXml

public static PluginPackage readPluginPackageXml(String xml)
                                          throws DocumentException
Throws:
DocumentException

refreshUpdatesAvailableCache

public static void refreshUpdatesAvailableCache()

registerInstalledPluginPackage

public static void registerInstalledPluginPackage(PluginPackage pluginPackage)
                                           throws PortalException
Throws:
PortalException

registerPluginPackageInstallation

public static void registerPluginPackageInstallation(String preliminaryContext)

reloadRepositories

public static RepositoryReport reloadRepositories()
                                           throws PortalException,
                                                  SystemException
Throws:
PortalException
SystemException

search

public static Hits search(String keywords,
                          String type,
                          String tag,
                          String license,
                          String repositoryURL,
                          String status,
                          int start,
                          int end)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

unregisterInstalledPluginPackage

public static void unregisterInstalledPluginPackage(PluginPackage pluginPackage)
                                             throws PortalException,
                                                    SystemException
Throws:
PortalException
SystemException

updateInstallingPluginPackage

public static void updateInstallingPluginPackage(String preliminaryContext,
                                                 PluginPackage pluginPackage)

Liferay 6.0.5