Interface ApplicationCodePlugin
public interface ApplicationCodePlugin
The read of the code a placed application runs in the visitor's browser,
contributed by the add-on that owns the portlet: the layout reads answer
it as the window's widget code, where the add-on writes it through its
own tool. The owning add-on registers its plugin from its own
@PostConstruct through ApplicationCodeService.addPlugin(ApplicationCodePlugin),
as the application settings plugins do; the plugin reads through the
owning Service, as the context's user, and never from a window preference
taken as a right.-
Method Summary
Modifier and TypeMethodDescriptiondefault PortletInstanceread(ApplicationSettingsContext context)
-
Method Details
-
getPortletName
String getPortletName()- Returns:
- the portlet name the plugin reads for, as the portlet
descriptor declares it (
WidgetPortlet)
-
read
ApplicationCode read(ApplicationSettingsContext context) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Parameters:
context- the window: its storage id, content id, preferences, layout and user- Returns:
- the code the window runs, null when the window has none yet
- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException- when the code the window names no longer existsIllegalAccessException- when the context's user may not read it
-
newApplication
- Returns:
- a new window of the application, placed when no catalog instance carries its content id: its content id, name, description and preferences, a new object on each call, each window placed from it running code of its own; null when the application is placed from the catalog only
-