Class BrandAbstractGuard

    • Constructor Detail

      • BrandAbstractGuard

        public BrandAbstractGuard()
    • Method Detail

      • getTargetBrand

        protected abstract String getTargetBrand()
        Target brand.
        Returns:
        String brand target name
      • shouldMatch

        protected boolean shouldMatch()
        By overriding this method we can change conditional logic.
        Returns:
        true if target brand should be equal to current logic or false if shouldn't
      • isConditionFullfilled

        public boolean isConditionFullfilled​(net.anotheria.asg.data.DataObject object,
                                             jakarta.servlet.http.HttpServletRequest req)
                                      throws net.anotheria.asg.exception.ASGRuntimeException
        Description copied from interface: ConditionalGuard
        Returns true if the condition is fullfilled.
        Specified by:
        isConditionFullfilled in interface ConditionalGuard
        Parameters:
        object - TODO dummy comment for javadoc.
        req - TODO dummy comment for javadoc.
        Returns:
        TODO dummy comment for javadoc.
        Throws:
        net.anotheria.asg.exception.ASGRuntimeException - TODO dummy comment for javadoc.