Class SystemEnvironmentAbstractGuard

    • Constructor Detail

      • SystemEnvironmentAbstractGuard

        public SystemEnvironmentAbstractGuard()
        Constructor.
    • Method Detail

      • getTargetEnvironmentName

        protected abstract String getTargetEnvironmentName()
        Override this method to provide name of target environment.
        Returns:
        name of the environment
      • shouldMatch

        protected abstract boolean shouldMatch()
        Override this method in a way that it would return true if environments should match, false otherwise.
        Returns:
        boolean value.
      • isConditionFullfilled

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