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