public class ConsistencyChecker extends AbstractLogEnabled implements Serviceable, Component
| Modifier and Type | Class and Description |
|---|---|
static class |
ConsistencyChecker.CHECK
The state of the check
|
| Modifier and Type | Field and Description |
|---|---|
protected URIResolverExtensionPoint |
_uriResolverEP
The ametys uri resolver
|
protected VersionsHandler |
_versionsHandler
The version handler
|
static String |
CONSISTENCY_EXTERNAL_REFERENCE_TYPE
Constants for the special external type for outgoing references
|
static String |
ROLE
Avalon role
|
| Constructor and Description |
|---|
ConsistencyChecker() |
| Modifier and Type | Method and Description |
|---|---|
protected ConsistencyChecker.CHECK |
_checkHTTPLink(String linkValue,
boolean shortTest)
Test an http link
|
private String |
_getCMSVersion() |
ConsistencyChecker.CHECK |
checkConsistency(String referenceType,
String referenceValue,
boolean shortTest)
Check the consistency of a reference
|
I18nizableText |
getLabel(String referenceType,
String referenceValue)
Get the label of a reference.
|
void |
service(ServiceManager manager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerpublic static final String CONSISTENCY_EXTERNAL_REFERENCE_TYPE
protected URIResolverExtensionPoint _uriResolverEP
protected VersionsHandler _versionsHandler
public ConsistencyChecker()
public void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic ConsistencyChecker.CHECK checkConsistency(String referenceType, String referenceValue, boolean shortTest)
referenceType - The type of the reference to test (can be 'attachment', 'explorer', 'metadata', '__external', etc...)referenceValue - The value of the reference to testshortTest - true to make a short test, that means that long tests will return UNKNOWN immediately. If false, you will always have a SUCCESS or a FAILURE.public I18nizableText getLabel(String referenceType, String referenceValue)
referenceType - The type of the reference to test (can be 'attachment', 'explorer', 'metadata', '__external', etc...)referenceValue - The value of the reference to testprotected ConsistencyChecker.CHECK _checkHTTPLink(String linkValue, boolean shortTest)
linkValue - The http url to testshortTest - true to make a short test (with short timeout)private String _getCMSVersion()