public class PluginPackageUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
endPluginPackageInstallation(java.lang.String preliminaryContext) |
static java.util.List<com.liferay.portal.kernel.plugin.PluginPackage> |
getAllAvailablePluginPackages() |
static java.util.Collection<java.lang.String> |
getAvailableTags() |
static com.liferay.portal.kernel.plugin.PluginPackage |
getInstalledPluginPackage(java.lang.String context) |
static java.util.List<com.liferay.portal.kernel.plugin.PluginPackage> |
getInstalledPluginPackages() |
static java.util.Date |
getLastUpdateDate() |
static com.liferay.portal.kernel.plugin.PluginPackage |
getLatestAvailablePluginPackage(java.lang.String groupId,
java.lang.String artifactId) |
static com.liferay.portal.kernel.plugin.PluginPackage |
getLatestInstalledPluginPackage(java.lang.String groupId,
java.lang.String artifactId) |
static com.liferay.portal.kernel.plugin.PluginPackage |
getPluginPackageByModuleId(java.lang.String moduleId,
java.lang.String repositoryURL) |
static com.liferay.portal.kernel.plugin.PluginPackage |
getPluginPackageByURL(java.lang.String url) |
static com.liferay.portal.kernel.plugin.RemotePluginPackageRepository |
getRepository(java.lang.String repositoryURL) |
static java.lang.String[] |
getRepositoryURLs() |
static java.lang.String[] |
getStatusAndInstalledVersion(com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) |
static java.lang.String[] |
getSupportedTypes() |
static boolean |
isCurrentVersionSupported(java.util.List<java.lang.String> versions) |
static boolean |
isIgnored(com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) |
static boolean |
isInstallationInProcess(java.lang.String context) |
static boolean |
isInstalled(java.lang.String context) |
static boolean |
isTrusted(java.lang.String repositoryURL) |
static boolean |
isUpdateAvailable() |
static com.liferay.portal.kernel.plugin.PluginPackage |
readPluginPackageProperties(java.lang.String displayName,
java.util.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(java.lang.String xml) |
static void |
refreshUpdatesAvailableCache() |
static void |
registerInstalledPluginPackage(com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) |
static void |
registerPluginPackageInstallation(java.lang.String preliminaryContext) |
static RepositoryReport |
reloadRepositories() |
static void |
unregisterInstalledPluginPackage(com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) |
static void |
updateInstallingPluginPackage(java.lang.String preliminaryContext,
com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) |
public static void endPluginPackageInstallation(java.lang.String preliminaryContext)
public static java.util.List<com.liferay.portal.kernel.plugin.PluginPackage> getAllAvailablePluginPackages() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.Collection<java.lang.String> getAvailableTags()
public static com.liferay.portal.kernel.plugin.PluginPackage getInstalledPluginPackage(java.lang.String context)
public static java.util.List<com.liferay.portal.kernel.plugin.PluginPackage> getInstalledPluginPackages()
public static java.util.Date getLastUpdateDate()
public static com.liferay.portal.kernel.plugin.PluginPackage getLatestAvailablePluginPackage(java.lang.String groupId, java.lang.String artifactId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.plugin.PluginPackage getLatestInstalledPluginPackage(java.lang.String groupId, java.lang.String artifactId)
public static com.liferay.portal.kernel.plugin.PluginPackage getPluginPackageByModuleId(java.lang.String moduleId, java.lang.String repositoryURL) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.plugin.PluginPackage getPluginPackageByURL(java.lang.String url) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.plugin.RemotePluginPackageRepository getRepository(java.lang.String repositoryURL) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.lang.String[] getRepositoryURLs()
public static java.lang.String[] getStatusAndInstalledVersion(com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)
public static java.lang.String[] getSupportedTypes()
public static boolean isCurrentVersionSupported(java.util.List<java.lang.String> versions)
public static boolean isIgnored(com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)
public static boolean isInstallationInProcess(java.lang.String context)
public static boolean isInstalled(java.lang.String context)
public static boolean isTrusted(java.lang.String repositoryURL)
public static boolean isUpdateAvailable()
public static com.liferay.portal.kernel.plugin.PluginPackage readPluginPackageProperties(java.lang.String displayName, java.util.Properties properties)
public static com.liferay.portal.kernel.plugin.PluginPackage readPluginPackageServletContext(javax.servlet.ServletContext servletContext) throws com.liferay.portal.kernel.xml.DocumentException, java.io.IOException
com.liferay.portal.kernel.xml.DocumentException
java.io.IOException
public static com.liferay.portal.kernel.plugin.PluginPackage readPluginPackageXml(com.liferay.portal.kernel.xml.Element pluginPackageElement)
public static com.liferay.portal.kernel.plugin.PluginPackage readPluginPackageXml(java.lang.String xml) throws com.liferay.portal.kernel.xml.DocumentException
com.liferay.portal.kernel.xml.DocumentException
public static void refreshUpdatesAvailableCache()
public static void registerInstalledPluginPackage(com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void registerPluginPackageInstallation(java.lang.String preliminaryContext)
public static RepositoryReport reloadRepositories() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void unregisterInstalledPluginPackage(com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void updateInstallingPluginPackage(java.lang.String preliminaryContext, com.liferay.portal.kernel.plugin.PluginPackage pluginPackage)