public class ContentConsistencyTestClientSideElement extends StaticClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
protected ConsistencyChecker |
_consistencyChecker
The consistency checker
|
protected AmetysObjectResolver |
_resolver
Repository content
|
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
Constructor and Description |
---|
ContentConsistencyTestClientSideElement() |
Modifier and Type | Method and Description |
---|---|
protected I18nizableText |
_getMainlyOkDescription(Content content)
Get content i18n description when the consistency check returned at least one unknown link
|
protected I18nizableText |
_getNotOkDescription(Content content)
Get content i18n description when the consistency check has failed for at least one link
|
protected I18nizableText |
_getOkDescription(Content content)
Get content i18n description when the consistency check has succeed
|
Map<String,Object> |
checkConsistency(List<String> contentsId,
boolean shortTest)
Check the consistency of contents
|
protected Map<String,Object> |
getContentDefaultParameters(Content content)
Get the default content's parameters
|
void |
service(ServiceManager smanager) |
_configureClass, _configureParameters, _configureScript, configureInitialParameters
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toString
getLogger, setLogger
protected AmetysObjectResolver _resolver
protected ConsistencyChecker _consistencyChecker
public ContentConsistencyTestClientSideElement()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class StaticFileImportsClientSideElement
ServiceException
public Map<String,Object> checkConsistency(List<String> contentsId, boolean shortTest)
contentsId
- The ids of contents to testshortTest
- true to make a short test, that means that long tests will return UNKNOWN immediatelyprotected Map<String,Object> getContentDefaultParameters(Content content)
content
- The contentprotected I18nizableText _getOkDescription(Content content)
content
- The contentI18nizableText
descriptionprotected I18nizableText _getNotOkDescription(Content content)
content
- The contentI18nizableText
descriptionprotected I18nizableText _getMainlyOkDescription(Content content)
content
- The contentI18nizableText
description