Class LegacyVelocitySecureAction

  • All Implemented Interfaces:
    Action, Assembler

    @Deprecated
    public abstract class LegacyVelocitySecureAction
    extends LegacyVelocityAction
    Deprecated.
    Use VelocitySecureAction directly
    VelocitySecure action. Always performs a Security Check that you've defined before executing the doPerform(). You should extend this class and add the specific security check needed. If you have a number of actions that need to perform the same check, you could make a base action by extending this class and implementing the isAuthorized(). Then each action that needs to perform the same check could extend your base action.
    Author:
    Thomas Vandahl
    • Method Detail

      • perform

        public void perform​(PipelineData pipelineData)
                     throws Exception
        Deprecated.
        This method overrides the method in VelocityAction to perform a security check first.
        Specified by:
        perform in interface Action
        Overrides:
        perform in class VelocityAction
        Parameters:
        pipelineData - Turbine information.
        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.
        Parameters:
        data - Turbine information.
        Returns:
        True if the user is authorized to access the screen.
        Throws:
        Exception - a generic exception.