Package org.javlo.service.integrity
Interface IIntegrityChecker
-
- All Known Implementing Classes:
AbstractIntegrityChecker,CheckContent,CheckDescription,CheckImageLabel,CheckResource,CheckTitle,CheckTitleHierarchy,CheckUnactivePage
public interface IIntegrityChecker
-
-
Field Summary
Fields Modifier and Type Field Description static StringDANGERstatic intDANGER_LEVELstatic StringINFOstatic intINFO_LEVELstatic String[]LEVEL_LABELstatic StringSUCCESSstatic intSUCCESS_LEVELstatic StringWARNINGstatic intWARNING_LEVEL
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheckPage(ContentContext ctx, MenuElement page)check a integrity of the page.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)
-
-
-
Field Detail
-
SUCCESS
static final String SUCCESS
- See Also:
- Constant Field Values
-
INFO
static final String INFO
- See Also:
- Constant Field Values
-
WARNING
static final String WARNING
- See Also:
- Constant Field Values
-
DANGER
static final String DANGER
- See Also:
- Constant Field Values
-
LEVEL_LABEL
static final String[] LEVEL_LABEL
-
SUCCESS_LEVEL
static final int SUCCESS_LEVEL
- See Also:
- Constant Field Values
-
INFO_LEVEL
static final int INFO_LEVEL
- See Also:
- Constant Field Values
-
WARNING_LEVEL
static final int WARNING_LEVEL
- See Also:
- Constant Field Values
-
DANGER_LEVEL
static final int DANGER_LEVEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkPage
boolean checkPage(ContentContext ctx, MenuElement page) throws Exception
check a integrity of the page.- Parameters:
ctx-page-- Returns:
- true if checker have found no problem.
- Throws:
Exception
-
getErrorMessage
String getErrorMessage(ContentContext ctx)
-
getComponentId
String getComponentId(ContentContext ctx)
the component where the problem found.- Parameters:
ctx-- Returns:
-
getArea
String getArea(ContentContext ctx)
-
getErrorCount
int getErrorCount(ContentContext ctx)
-
getLevelLabel
String getLevelLabel(ContentContext ctx)
-
getLevel
int getLevel(ContentContext ctx)
-
isApplicableForMailing
boolean isApplicableForMailing(ContentContext ctx)
-
-