Package io.meeds.layout.plugin
Interface PortletInstancePreferencePlugin
- All Known Implementing Classes:
ImagePortletInstancePreferencePlugin,LinkPortletInstancePreferencePlugin
public interface PortletInstancePreferencePlugin
A plugin that can be extended in order to inject a specific behavior for some
portlets to let export preferences that allow to duplicate behavior from one
application instance to another.
-
Method Summary
Modifier and TypeMethodDescriptiongeneratePreferences(org.exoplatform.portal.config.model.Application<org.exoplatform.portal.pom.spi.portlet.Portlet> application, org.exoplatform.portal.pom.spi.portlet.Portlet preferences) Computes the list of preferences to have the same view as the designated application instancereturn the portlet name for which the plugin can generate its preferences
-
Method Details
-
getPortletName
String getPortletName()return the portlet name for which the plugin can generate its preferences -
generatePreferences
List<PortletInstancePreference> generatePreferences(org.exoplatform.portal.config.model.Application<org.exoplatform.portal.pom.spi.portlet.Portlet> application, org.exoplatform.portal.pom.spi.portlet.Portlet preferences) Computes the list of preferences to have the same view as the designated application instance- Parameters:
application-Applicationdesignated to extract its preferencespreferences- currentPortletpreferences- Returns:
-