public interface WebpageService
Modifier and Type | Field and Description |
---|---|
static String |
REDIRECT_STATUS_CODE |
static String |
REDIRECT_TARGET_URL |
static String |
REDIRECT_WEB_ALIAS |
static String |
STANDARD_STYLESHEET_URI |
static String |
STANDARD_WEBSITE_PREFIX |
static String |
STANDARD_WEBSITE_URI |
static de.deepamehta.core.service.accesscontrol.SharingMode |
WEBPAGES_SHARING_MODE |
static String |
WEBPAGES_WS_NAME |
static String |
WEBPAGES_WS_URI |
static String |
WEBSITE |
static String |
WEBSITE_FOOTER |
static String |
WEBSITE_NAME |
static String |
WEBSITE_STYLESHEET |
Modifier and Type | Method and Description |
---|---|
void |
addTemplateResolverBundle(org.osgi.framework.Bundle bundle)
IMPORTANT: If you register your own bundle as a resource for thymeleaf templates you must call
reinitTemplateEngine afterwards.
|
List<MenuItem> |
getActiveMenuItems(de.deepamehta.core.Topic site)
Fetches all menut items related to the given website.
|
List<Webpage> |
getPublishedWebpages(String username)
Fetches all published webpages related to the website associated with the username.
|
List<Webpage> |
getPublishedWebpages(de.deepamehta.core.Topic website)
Fetches all published webpages related to the given website topic.
|
de.deepamehta.core.Topic |
getStandardWebsite()
Fetches the standard website topic.
|
de.deepamehta.core.Topic |
getWebsiteByUsername(String username)
Fetches an existing or creates a new website topic (if non exists and the requesting user equals given username).
|
void |
overrideFrontpageTemplate(String templateName) |
void |
reinitTemplateEngine() |
void |
removeTemplateResolverBundle(org.osgi.framework.Bundle bundle) |
void |
setFrontpageAliases(HashMap<String,String[]> frontpageAliases) |
com.sun.jersey.api.view.Viewable |
view(String templateName) |
void |
viewData(String key,
Object value) |
static final String WEBSITE
static final String WEBSITE_NAME
static final String WEBSITE_STYLESHEET
static final String WEBSITE_FOOTER
static final String STANDARD_STYLESHEET_URI
static final String STANDARD_WEBSITE_URI
static final String REDIRECT_STATUS_CODE
static final String REDIRECT_TARGET_URL
static final String REDIRECT_WEB_ALIAS
static final String WEBPAGES_WS_URI
static final String WEBPAGES_WS_NAME
static final de.deepamehta.core.service.accesscontrol.SharingMode WEBPAGES_SHARING_MODE
static final String STANDARD_WEBSITE_PREFIX
de.deepamehta.core.Topic getWebsiteByUsername(String username)
username
- de.deepamehta.core.Topic getStandardWebsite()
List<Webpage> getPublishedWebpages(de.deepamehta.core.Topic website)
List<Webpage> getPublishedWebpages(String username)
username
- List<MenuItem> getActiveMenuItems(de.deepamehta.core.Topic site)
site
- void addTemplateResolverBundle(org.osgi.framework.Bundle bundle)
void removeTemplateResolverBundle(org.osgi.framework.Bundle bundle)
void reinitTemplateEngine()
void overrideFrontpageTemplate(String templateName)
com.sun.jersey.api.view.Viewable view(String templateName)
Copyright © 2016. All rights reserved.