public class BlogRootClientSideElement extends StaticClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile| Modifier and Type | Field and Description |
|---|---|
protected BlogPageHandler |
_blogRootPageHandler
The blog cache manager.
|
private ObservationManager |
_observationManager |
protected AmetysObjectResolver |
_resolver
The ametys object resolver.
|
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script| Constructor and Description |
|---|
BlogRootClientSideElement() |
| Modifier and Type | Method and Description |
|---|---|
private I18nizableText |
_getAddBlogRootPageDescription(PagesContainer pageCt) |
private I18nizableText |
_getBlogRootPageDescription(PagesContainer pageCt) |
private I18nizableText |
_getNoJcrPageDescription(Page page) |
private I18nizableText |
_getRemoveBlogRootPageDescription(PagesContainer pageCt) |
String |
getBlogRootPage(String siteName,
String sitemapName)
Get the Blog root page for the specified site and sitemap
|
protected Map<String,Object> |
getPageDefaultParameters(PagesContainer pageCt)
Get the default page's parameters
|
Map<String,Object> |
getStatus(String pageId)
Get the privacy status of contents
|
protected int |
indexOf(Value[] values,
String value)
Tests if an array of JCR Value contains a String value.
|
void |
removeBlogRootPage(String pageId)
Remove the root page property for the specified page
|
void |
service(ServiceManager serviceManager) |
Map<String,Object> |
setBlogRootPage(String siteName,
String sitemapName,
String pageId)
Set the root page for the blog
|
_configureClass, _configureParameters, _configureScript, configureInitialParameters_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toStringgetLogger, setLoggerprotected AmetysObjectResolver _resolver
protected BlogPageHandler _blogRootPageHandler
private ObservationManager _observationManager
public BlogRootClientSideElement()
public void service(ServiceManager serviceManager) throws ServiceException
service in interface Serviceableservice in class StaticFileImportsClientSideElementServiceExceptionpublic Map<String,Object> getStatus(String pageId)
pageId - the id of contentspublic String getBlogRootPage(String siteName, String sitemapName)
siteName - The name of the sitesitemapName - The name of the sitemappublic Map<String,Object> setBlogRootPage(String siteName, String sitemapName, String pageId) throws RepositoryException
siteName - The name of the sitesitemapName - The name of the sitemappageId - The page id for the new rootRepositoryException - if an error occurspublic void removeBlogRootPage(String pageId) throws RepositoryException
pageId - The root page idRepositoryException - if an error occursprotected int indexOf(Value[] values, String value) throws RepositoryException
values - the JCR Value array.value - the string value to test.RepositoryException - if a repository error occurs.protected Map<String,Object> getPageDefaultParameters(PagesContainer pageCt)
pageCt - The page containerprivate I18nizableText _getBlogRootPageDescription(PagesContainer pageCt)
private I18nizableText _getAddBlogRootPageDescription(PagesContainer pageCt)
private I18nizableText _getRemoveBlogRootPageDescription(PagesContainer pageCt)
private I18nizableText _getNoJcrPageDescription(Page page)