com.atlassian.crowd.integration.directory.connector.validator
Class GroupRoleDnOverlapValidator
java.lang.Object
com.atlassian.crowd.integration.directory.connector.validator.GroupRoleDnOverlapValidator
- All Implemented Interfaces:
- Validator
public class GroupRoleDnOverlapValidator
- extends Object
- implements Validator
Checks if the Role DN Addition and Group DN Addition overlap each other
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroupRoleDnOverlapValidator
public GroupRoleDnOverlapValidator(I18nHelper i18nHelper)
getError
public String getError(Directory directory)
- Description copied from interface:
Validator
- Validates a specific directory configuration.
- Specified by:
getError
in interface Validator
- Parameters:
directory
- directory object.
- Returns:
- error message or
null
if there is no error in the configuration.
isDNConfigOverlapping
public boolean isDNConfigOverlapping(String roleDN,
String groupDN)
- Parameters:
roleDN
- DN addition for roles.groupDN
- DN addition for groups.
- Returns:
- true if either roleDN or groupDN are blank; or if roleDN starts with groupDN or vice versa.
Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.