Class DefaultB2BGroupCycleValidator
java.lang.Object
de.hybris.platform.b2b.company.impl.DefaultB2BGroupCycleValidator
- All Implemented Interfaces:
B2BGroupCycleValidator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddGroups(Set<PrincipalGroupModel> allGroups, Set<PrincipalGroupModel> groups) protected booleancheckGroups(PrincipalGroupModel principalGroup) protected booleancheckMembers(PrincipalGroupModel principalGroup) protected Set<PrincipalGroupModel>getAllGroups(PrincipalModel principal) booleanvalidateGroups(PrincipalGroupModel principalGroupModel, PrincipalGroupModel groupMember) Validate the groups given a group and group memberbooleanvalidateMembers(PrincipalGroupModel principalGroupModel, PrincipalModel member) Validate the members given a group and group member
-
Constructor Details
-
DefaultB2BGroupCycleValidator
public DefaultB2BGroupCycleValidator()
-
-
Method Details
-
validateGroups
public boolean validateGroups(PrincipalGroupModel principalGroupModel, PrincipalGroupModel groupMember) Description copied from interface:B2BGroupCycleValidatorValidate the groups given a group and group member- Specified by:
validateGroupsin interfaceB2BGroupCycleValidator- Returns:
- Boolean result based on whether cyclic groups were detected or not
-
validateMembers
Description copied from interface:B2BGroupCycleValidatorValidate the members given a group and group member- Specified by:
validateMembersin interfaceB2BGroupCycleValidator- Returns:
- Boolean result based on whether cyclic groups were detected or not
-
checkGroups
-
checkMembers
-
getAllGroups
-
addGroups
-