Class SessionFlagPresentGuard

    • Constructor Detail

      • SessionFlagPresentGuard

        public SessionFlagPresentGuard()
    • Method Detail

      • isConditionFullfilled

        public boolean isConditionFullfilled​(net.anotheria.asg.data.DataObject object,
                                             jakarta.servlet.http.HttpServletRequest req)
        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.
      • getDesiredResult

        protected boolean getDesiredResult()
        If true the guard is fullfilled whenever the attribute with name = flagName is in session. If false the guard is fullfilled if the attribute with the name = flagName is NOT in session.
      • getFlagName

        protected abstract String getFlagName()
        Returns the name of the flag to look after.
        Returns:
        flag name.