Package org.apache.turbine.util

Examples of org.apache.turbine.util.RunData


     */
    @Override
    public void doPerform(PipelineData pipelineData)
    throws NamingException
    {
        RunData data = getRunData(pipelineData);
        doPerform(data);
    }
View Full Code Here


     */
    @Override
    public void doPerform(PipelineData pipelineData, Context context)
            throws Exception
    {
        RunData data = getRunData(pipelineData);
        doPerform(data, context);
    }
View Full Code Here

     * @throws Exception a generic exception.
     */
    protected boolean isAuthorized(PipelineData pipelineData)
            throws Exception
    {
        RunData data = getRunData(pipelineData);
        return isAuthorized(data);
    }
View Full Code Here

     */
    @Override
    public void doBuild(PipelineData pipelineData)
        throws Exception
    {
        RunData data = getRunData(pipelineData);
        // Get the context needed by Velocity.
        Context context = TurbineVelocity.getContext(pipelineData);

        data.getResponse().setContentType("text/html");

        String screenName = data.getScreen();

        log.debug("Loading Screen " + screenName);

        // First, generate the screen and put it in the context so
        // we can grab it the layout template.
        ConcreteElement results =
            screenLoader.eval(pipelineData, screenName);

        String returnValue = (results == null) ? "" : results.toString();

        // variable for the screen in the layout template
        context.put(TurbineConstants.SCREEN_PLACEHOLDER, returnValue);

        // variable to reference the navigation screen in the layout template
        context.put(TurbineConstants.NAVIGATION_PLACEHOLDER,
                    new TemplateNavigation(data));

        // Grab the layout template set in the VelocityPage.
        // If null, then use the default layout template
        // (done by the TemplateInfo object)
        String templateName = data.getTemplateInfo().getLayoutTemplate();

        log.debug("Now trying to render layout " + templateName);

        // Now, generate the layout template.
        String temp = TurbineVelocity.handleRequest(context,
                prefix + templateName);

        // Finally we do a transformation and send the result
        // back to the browser
        XSLTServiceFacade.transform(
            data.getTemplateInfo().getScreenTemplate(),
                new StringReader(temp), data.getResponse().getWriter());
    }
View Full Code Here

     */
    @Override
    public void doBuild(PipelineData pipelineData)
    throws Exception
    {
        RunData data = getRunData(pipelineData);
        doBuild(data);
    }
View Full Code Here

        // or null is passed in we'll throw an appropriate runtime
        // exception.
        if (data instanceof PipelineData)
        {
            PipelineData pipelineData = (PipelineData) data;
            RunData runData = (RunData)pipelineData;
            dataURI = new DataURI(runData);
        }
        else
        {
            dataURI = new DataURI((RunData) data);
View Full Code Here

     */
    @Override
    public void doBuild(PipelineData pipelineData)
        throws Exception
    {
        RunData data = getRunData(pipelineData);
        // Get the context needed by Velocity.
        Context context = TurbineVelocity.getContext(pipelineData);

        String screenName = data.getScreen();

        log.debug("Loading Screen " + screenName);

        // First, generate the screen and put it in the context so
        // we can grab it the layout template.
        ConcreteElement results =
            screenLoader.eval(pipelineData, screenName);

        String returnValue = (results == null) ? "" : results.toString();

        // variable for the screen in the layout template
        context.put(TurbineConstants.SCREEN_PLACEHOLDER, returnValue);

        // variable to reference the navigation screen in the layout template
        context.put(TurbineConstants.NAVIGATION_PLACEHOLDER,
                    new TemplateNavigation(data));

        // Grab the layout template set in the VelocityPage.
        // If null, then use the default layout template
        // (done by the TemplateInfo object)
        String templateName = data.getTemplateInfo().getLayoutTemplate();

        // Set the locale and content type
        data.getResponse().setLocale(data.getLocale());
        data.getResponse().setContentType(data.getContentType());

        log.debug("Now trying to render layout " + templateName);

        // Finally, generate the layout template and send it to the browser
        TurbineVelocity.handleRequest(context,
                prefix + templateName, data.getResponse().getOutputStream());
    }
View Full Code Here

            setSkin((RunData) data);
        }
        else if (data instanceof PipelineData)
        {
            PipelineData pipelineData = (PipelineData) data;
            RunData runData = (RunData)pipelineData;
            log.debug("UITool scope is request");
            setSkin(runData);
        }
        else if (data instanceof User)
        {
View Full Code Here

   */
  @Override
    public void doPerform(PipelineData pipelineData)
      throws Exception
  {
        RunData data = getRunData(pipelineData);
        doPerform(data);
  }
View Full Code Here

     * @exception Exception a generic exception.
     */
    public void executeEvents(PipelineData pipelineData, Context context)
            throws Exception
    {
      RunData data = getRunData(pipelineData);
        // Name of the button.
        String theButton = null;

        // ParameterParser.
        ParameterParser pp = data.getParameters();

        String button = pp.convert(BUTTON);
        String key = null;

        // Loop through and find the button.
View Full Code Here

TOP

Related Classes of org.apache.turbine.util.RunData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.