Package org.javlo.service.integrity
Class AbstractIntegrityChecker
- java.lang.Object
-
- org.javlo.service.integrity.AbstractIntegrityChecker
-
- All Implemented Interfaces:
IIntegrityChecker
- Direct Known Subclasses:
CheckContent
,CheckDescription
,CheckImageLabel
,CheckResource
,CheckTitle
,CheckTitleHierarchy
,CheckUnactivePage
public abstract class AbstractIntegrityChecker extends Object implements IIntegrityChecker
-
-
Field Summary
-
Fields inherited from interface org.javlo.service.integrity.IIntegrityChecker
DANGER, DANGER_LEVEL, INFO, INFO_LEVEL, LEVEL_LABEL, SUCCESS, SUCCESS_LEVEL, WARNING, WARNING_LEVEL
-
-
Constructor Summary
Constructors Constructor Description AbstractIntegrityChecker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getArea(ContentContext ctx)
String
getComponentId(ContentContext ctx)
the component where the problem found.int
getErrorCount(ContentContext ctx)
String
getErrorMessage(ContentContext ctx)
int
getLevel(ContentContext ctx)
String
getLevelLabel(ContentContext ctx)
boolean
isApplicableForMailing(ContentContext ctx)
void
setComponentId(String compId)
void
setErrorCount(int errorCount)
void
setErrorMessage(String message)
void
setLevel(int level)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.javlo.service.integrity.IIntegrityChecker
checkPage
-
-
-
-
Method Detail
-
getErrorMessage
public String getErrorMessage(ContentContext ctx)
- Specified by:
getErrorMessage
in interfaceIIntegrityChecker
-
getComponentId
public String getComponentId(ContentContext ctx)
Description copied from interface:IIntegrityChecker
the component where the problem found.- Specified by:
getComponentId
in interfaceIIntegrityChecker
- Returns:
-
getErrorCount
public int getErrorCount(ContentContext ctx)
- Specified by:
getErrorCount
in interfaceIIntegrityChecker
-
getLevel
public int getLevel(ContentContext ctx)
- Specified by:
getLevel
in interfaceIIntegrityChecker
-
getLevelLabel
public String getLevelLabel(ContentContext ctx)
- Specified by:
getLevelLabel
in interfaceIIntegrityChecker
-
setErrorMessage
public void setErrorMessage(String message)
-
setComponentId
public void setComponentId(String compId)
-
setErrorCount
public void setErrorCount(int errorCount)
-
setLevel
public void setLevel(int level)
-
isApplicableForMailing
public boolean isApplicableForMailing(ContentContext ctx)
- Specified by:
isApplicableForMailing
in interfaceIIntegrityChecker
-
getArea
public String getArea(ContentContext ctx)
- Specified by:
getArea
in interfaceIIntegrityChecker
-
-