Package ch.tocco.nice2.dms.impl.validate
Class AbstractPathValidator
java.lang.Object
ch.tocco.nice2.dms.impl.validate.AbstractPathValidator
- All Implemented Interfaces:
PathValidator
- Direct Known Subclasses:
SameAliasValidator
,SameNamedSiblingValidator
,SameUrlValidator
Base class for path validators.
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractPathValidator
(ContentTreeService contentTreeService, SecurityManager securityManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract PathValidationResult
validate
(ContentTreeNode contentTreeNode) final PathValidationResult
Ensure path uniqueness.
-
Constructor Details
-
AbstractPathValidator
protected AbstractPathValidator(ContentTreeService contentTreeService, SecurityManager securityManager)
-
-
Method Details
-
validate
Description copied from interface:PathValidator
Ensure path uniqueness.- Specified by:
validate
in interfacePathValidator
- Parameters:
entity
- The entity to check.- Returns:
- a PathValidation result.
-
validate
- Throws:
Exception
-