public class WebpagePlugin extends de.deepamehta.thymeleaf.ThymeleafPlugin implements WebpagePluginService
| Constructor and Description |
|---|
WebpagePlugin() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getFrontpageView() |
com.sun.jersey.api.view.Viewable |
getPageView(String webAlias)
Serves either the Webpage topics content in the page template, a Webpage Redirect (301,
302) or 404 as response.
|
com.sun.jersey.api.view.Viewable |
getPageView(String username,
String pageAlias)
For "admin" only webpages this methods serves exactly the same responses as its sister method
(@see getPageView()) just under a different (username specific) url.
|
List<WebpageViewModel> |
getPublishedWebpages(String username)
Lists all currently published webpages for the users website.
|
void |
init() |
void |
setFrontpageResource(String fileName,
String bundleUri) |
getTemplateEngine, initTemplateEngine, serviceRequestFilter, view, viewDatapublic void init()
init in interface de.deepamehta.core.osgi.PluginContextinit in class de.deepamehta.core.osgi.PluginActivatorpublic void setFrontpageResource(String fileName, String bundleUri)
setFrontpageResource in interface WebpagePluginServicepublic InputStream getFrontpageView()
public com.sun.jersey.api.view.Viewable getPageView(String webAlias)
webAlias - String URI compliant name of the resource without leading slash.public com.sun.jersey.api.view.Viewable getPageView(String username, String pageAlias)
username - pageAlias - public List<WebpageViewModel> getPublishedWebpages(String username)
Copyright © 2017. All Rights Reserved.