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 String
DANGER
static int
DANGER_LEVEL
static String
INFO
static int
INFO_LEVEL
static String[]
LEVEL_LABEL
static String
SUCCESS
static int
SUCCESS_LEVEL
static String
WARNING
static int
WARNING_LEVEL
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
checkPage(ContentContext ctx, MenuElement page)
check a integrity of the page.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)
-
-
-
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)
-
-