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 StringgetArea(ContentContext ctx)StringgetComponentId(ContentContext ctx)the component where the problem found.intgetErrorCount(ContentContext ctx)StringgetErrorMessage(ContentContext ctx)intgetLevel(ContentContext ctx)StringgetLevelLabel(ContentContext ctx)booleanisApplicableForMailing(ContentContext ctx)voidsetComponentId(String compId)voidsetErrorCount(int errorCount)voidsetErrorMessage(String message)voidsetLevel(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:
getErrorMessagein interfaceIIntegrityChecker
-
getComponentId
public String getComponentId(ContentContext ctx)
Description copied from interface:IIntegrityCheckerthe component where the problem found.- Specified by:
getComponentIdin interfaceIIntegrityChecker- Returns:
-
getErrorCount
public int getErrorCount(ContentContext ctx)
- Specified by:
getErrorCountin interfaceIIntegrityChecker
-
getLevel
public int getLevel(ContentContext ctx)
- Specified by:
getLevelin interfaceIIntegrityChecker
-
getLevelLabel
public String getLevelLabel(ContentContext ctx)
- Specified by:
getLevelLabelin 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:
isApplicableForMailingin interfaceIIntegrityChecker
-
getArea
public String getArea(ContentContext ctx)
- Specified by:
getAreain interfaceIIntegrityChecker
-
-