Package org.ametys.web.clientsideelement
Class PageRobotsClientSideElement
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.core.ui.StaticFileImportsClientSideElement
-
- org.ametys.core.ui.StaticClientSideElement
-
- org.ametys.web.clientsideelement.AbstractPageClientSideElement
-
- org.ametys.web.clientsideelement.AbstractPagesContainerClientSideElement
-
- org.ametys.web.clientsideelement.PageRobotsClientSideElement
-
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Serviceable
public class PageRobotsClientSideElement extends AbstractPagesContainerClientSideElement
ThisClientSideElement
creates a button representing the SEO properties of a page
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
-
-
Field Summary
Fields Modifier and Type Field Description private ObservationManager
_observationManager
-
Fields inherited from class org.ametys.web.clientsideelement.AbstractPageClientSideElement
_resolver, _synchronizeComponent
-
Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
-
Constructor Summary
Constructors Constructor Description PageRobotsClientSideElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private I18nizableText
_getExcludedDescription(PagesContainer pageOrSitemap)
private I18nizableText
_getIncludedDescription(PagesContainer pageOrSitemap)
private I18nizableText
_getParentExcludedDescription(PagesContainer pageOrSitemap)
private boolean
_isExcludedFromSEO(ModelLessDataAwareAmetysObject pageOrSitemap)
private boolean
_isParentExcludedFromSEO(PagesContainer pageOrSitemap)
boolean
editRobots(List<String> pageIds, boolean exclude)
Allow/Disallow the robots on a page or sitemapMap<String,Object>
getStatus(List<String> pageIds)
Get the robots status of given pages or sitemapvoid
service(ServiceManager smanager)
-
Methods inherited from class org.ametys.web.clientsideelement.AbstractPagesContainerClientSideElement
getAllRightPagesContainerDescription, getAllRightSitemapDescription, getNoRightPagesContainerDescription, getNoRightSitemapDescription, getPagesContainerDefaultParameters, getSitemapDefaultParameters, getSitemapTitle, hasRight, hasRight
-
Methods inherited from class org.ametys.web.clientsideelement.AbstractPageClientSideElement
getAllRightPageDescription, getNoModifiablePageDescription, getNoRightPageDescription, getPageDefaultParameters, hasRight
-
Methods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureClass, _configureParameters, _configureScript, configureInitialParameters
-
Methods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toString
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
_observationManager
private ObservationManager _observationManager
-
-
Constructor Detail
-
PageRobotsClientSideElement
public PageRobotsClientSideElement()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractPagesContainerClientSideElement
- Throws:
ServiceException
-
editRobots
public boolean editRobots(List<String> pageIds, boolean exclude)
Allow/Disallow the robots on a page or sitemap- Parameters:
pageIds
- the selected pages or sitemapexclude
- true to disallow the robots on the selected pages, false otherwise- Returns:
- true if succeeds
-
getStatus
public Map<String,Object> getStatus(List<String> pageIds)
Get the robots status of given pages or sitemap- Parameters:
pageIds
- The page ids or sitemap id- Returns:
- the result
-
_getExcludedDescription
private I18nizableText _getExcludedDescription(PagesContainer pageOrSitemap)
-
_getParentExcludedDescription
private I18nizableText _getParentExcludedDescription(PagesContainer pageOrSitemap)
-
_getIncludedDescription
private I18nizableText _getIncludedDescription(PagesContainer pageOrSitemap)
-
_isExcludedFromSEO
private boolean _isExcludedFromSEO(ModelLessDataAwareAmetysObject pageOrSitemap)
-
_isParentExcludedFromSEO
private boolean _isParentExcludedFromSEO(PagesContainer pageOrSitemap)
-
-