Package net.anotheria.anosite.guard
Class BrandAbstractGuard
- java.lang.Object
-
- net.anotheria.anosite.guard.BrandAbstractGuard
-
- All Implemented Interfaces:
ConditionalGuard
public abstract class BrandAbstractGuard extends Object implements ConditionalGuard
Abstract brand guard.- Author:
- ykalapusha
-
-
Constructor Summary
Constructors Constructor Description BrandAbstractGuard()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract StringgetTargetBrand()Target brand.booleanisConditionFullfilled(net.anotheria.asg.data.DataObject object, jakarta.servlet.http.HttpServletRequest req)Returns true if the condition is fullfilled.protected booleanshouldMatch()By overriding this method we can change conditional logic.
-
-
-
Method Detail
-
getTargetBrand
protected abstract String getTargetBrand()
Target brand.- Returns:
Stringbrand target name
-
shouldMatch
protected boolean shouldMatch()
By overriding this method we can change conditional logic.- Returns:
trueif target brand should be equal to current logic orfalseif shouldn't
-
isConditionFullfilled
public boolean isConditionFullfilled(net.anotheria.asg.data.DataObject object, jakarta.servlet.http.HttpServletRequest req) throws net.anotheria.asg.exception.ASGRuntimeExceptionDescription copied from interface:ConditionalGuardReturns true if the condition is fullfilled.- Specified by:
isConditionFullfilledin interfaceConditionalGuard- 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.
-
-