public class PageRobotsClientSideElement extends AbstractPageClientSideElement
ClientSideElement
creates a button representing the SEO properties of a pageClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
private ObservationManager |
_observationManager |
_resolver, _synchronizeComponent
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
Constructor and Description |
---|
PageRobotsClientSideElement() |
Modifier and Type | Method and Description |
---|---|
private I18nizableText |
_getExcludedDescription(Page page) |
private I18nizableText |
_getIncludedDescription(Page page) |
private I18nizableText |
_getParentExcludedDescription(Page page) |
private boolean |
_isExcludedFromSEO(Page page) |
private boolean |
_isParentExcludedFromSEO(Page page) |
boolean |
editRobots(List<String> pageIds,
boolean exclude)
Allow/Disallow the robots on a page
|
Map<String,Object> |
getStatus(List<String> pageIds)
Get the robots status of given pages
|
void |
service(ServiceManager smanager) |
getAllRightPageDescription, getNoModifiablePageDescription, getNoRightPageDescription, getPageDefaultParameters, hasRight
_configureClass, _configureParameters, _configureScript, configureInitialParameters
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toString
getLogger, setLogger
private ObservationManager _observationManager
public PageRobotsClientSideElement()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class AbstractPageClientSideElement
ServiceException
public boolean editRobots(List<String> pageIds, boolean exclude)
pageIds
- the selected pagesexclude
- true to disallow the robots on the selected pages, false otherwisepublic Map<String,Object> getStatus(List<String> pageIds)
pageIds
- The page idprivate I18nizableText _getExcludedDescription(Page page)
private I18nizableText _getParentExcludedDescription(Page page)
private I18nizableText _getIncludedDescription(Page page)
private boolean _isExcludedFromSEO(Page page)
private boolean _isParentExcludedFromSEO(Page page)