Package ch.tocco.nice2.dms.impl.validate
Class SameAliasValidator
java.lang.Object
ch.tocco.nice2.dms.impl.validate.AbstractPathValidator
ch.tocco.nice2.dms.impl.validate.SameAliasValidator
- All Implemented Interfaces:
PathValidator
This validator is triggered when the path part or the parent relation has been changed. Then it takes all paths of
the node and verifies, that there doesn't exist another node, which has one of the paths set as alias (1:1 the
same path in the alias field).
-
Constructor Summary
ConstructorDescriptionSameAliasValidator
(ContentTreeService contentTreeService, ContentUriResolveStrategy publicUriResolveStrategy, SecurityManager securityManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected PathValidationResult
validate
(ContentTreeNode contentTreeNode) Methods inherited from class ch.tocco.nice2.dms.impl.validate.AbstractPathValidator
validate
-
Constructor Details
-
SameAliasValidator
public SameAliasValidator(ContentTreeService contentTreeService, ContentUriResolveStrategy publicUriResolveStrategy, SecurityManager securityManager) - Parameters:
publicUriResolveStrategy
- ThePublicUriResolveStrategy
.
-
-
Method Details
-
validate
- Specified by:
validate
in classAbstractPathValidator
- Throws:
Exception
-