Class LegacyVelocitySecureScreen

    • Method Detail

      • doBuildTemplate

        protected abstract void doBuildTemplate​(RunData data,
                                                org.apache.velocity.context.Context context)
                                         throws Exception
        Deprecated.
        Implement this to add information to the context.
        Overrides:
        doBuildTemplate in class LegacyVelocityScreen
        Parameters:
        data - Turbine information.
        context - Context for web pages.
        Throws:
        Exception - a generic exception.
      • isAuthorized

        protected abstract boolean isAuthorized​(RunData data)
                                         throws Exception
        Deprecated.
        Implement this method to perform the security check needed. You should set the template in this method that you want the user to be sent to if they're unauthorized. See the VelocitySecurityCheck utility.
        Parameters:
        data - Turbine information.
        Returns:
        True if the user is authorized to access the screen.
        Throws:
        Exception - a generic exception.