Class RestrictionExistsPredicate
- java.lang.Object
-
- de.hybris.platform.cmsfacades.common.predicate.RestrictionExistsPredicate
-
- All Implemented Interfaces:
java.util.function.Predicate<java.lang.String>
public class RestrictionExistsPredicate extends java.lang.Object implements java.util.function.Predicate<java.lang.String>Predicate to test if a given restriction uid maps to an existing restriction.Returns TRUE if the restriction exists; FALSE otherwise.
-
-
Constructor Summary
Constructors Constructor Description RestrictionExistsPredicate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CMSAdminRestrictionServicegetAdminRestrictionService()voidsetAdminRestrictionService(CMSAdminRestrictionService adminRestrictionService)booleantest(java.lang.String target)Suppress sonar warning (squid:S1166 | Exception handlers should preserve the original exception) : The exception is correctly handled in the catch clause.
-
-
-
Method Detail
-
test
public boolean test(java.lang.String target)
Suppress sonar warning (squid:S1166 | Exception handlers should preserve the original exception) : The exception is correctly handled in the catch clause.- Specified by:
testin interfacejava.util.function.Predicate<java.lang.String>
-
getAdminRestrictionService
protected CMSAdminRestrictionService getAdminRestrictionService()
-
setAdminRestrictionService
public void setAdminRestrictionService(CMSAdminRestrictionService adminRestrictionService)
-
-