org.polliwog.webapp
Class WebAppHelper

java.lang.Object
  extended by org.polliwog.webapp.WebAppHelper

public class WebAppHelper
extends java.lang.Object


Constructor Summary
WebAppHelper()
           
 
Method Summary
static java.lang.String buildFormErrors(java.util.List errs)
           
static java.lang.String getCurrentStatus(ManagedSite ms)
           
static com.gentlyweb.properties.Properties getDefaultSiteProperties()
           
static java.util.List getExecutionEvents(ManagedSite ms)
           
static java.util.Date getLastExecution(ManagedSite ms)
           
static ManagedSite getManagedSite(HttpServletRequest request)
           
static java.util.Date getNextExecution(ManagedSite ms)
           
static java.util.List getSitesManaged()
           
static java.lang.String getTemplate(java.lang.String name)
           
static java.lang.String getWebAppProperty(java.lang.String name)
           
static java.io.File getWebAppPropertyAsFile(java.lang.String name)
           
static void initSystem(java.io.File initFile)
           
static boolean isRunningForSite(ManagedSite ms)
           
static boolean isScheduled(ManagedSite ms)
           
static boolean isSiteConfigured(java.lang.String name)
           
static void outputPage(HttpServletRequest request, HttpServletResponse response, java.lang.String page)
          Output the page.
static void scheduleSite(ManagedSite ms)
           
static void setLastExecution(ManagedSite ms, java.util.Date d)
           
static void setNextExecution(ManagedSite ms, java.util.Date d)
           
static void unscheduleSite(ManagedSite ms)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebAppHelper

public WebAppHelper()
Method Detail

initSystem

public static void initSystem(java.io.File initFile)
                       throws java.io.IOException,
                              WeblogException,
                              org.jdom.JDOMException
Throws:
java.io.IOException
WeblogException
org.jdom.JDOMException

getWebAppProperty

public static java.lang.String getWebAppProperty(java.lang.String name)

getWebAppPropertyAsFile

public static java.io.File getWebAppPropertyAsFile(java.lang.String name)

buildFormErrors

public static java.lang.String buildFormErrors(java.util.List errs)

isSiteConfigured

public static boolean isSiteConfigured(java.lang.String name)

getManagedSite

public static ManagedSite getManagedSite(HttpServletRequest request)
                                  throws WeblogException
Throws:
WeblogException

getSitesManaged

public static java.util.List getSitesManaged()
                                      throws WeblogException
Throws:
WeblogException

getDefaultSiteProperties

public static com.gentlyweb.properties.Properties getDefaultSiteProperties()

getTemplate

public static java.lang.String getTemplate(java.lang.String name)

outputPage

public static void outputPage(HttpServletRequest request,
                              HttpServletResponse response,
                              java.lang.String page)
                       throws java.io.IOException
Output the page. This is the place where any global replacements or templates pre-pended/appended are made.

Parameters:
request - The HttpServletRequest to use to get various parameters associated with output.
response - The HttpServletResponse object to use to get the PrintWriter to send the page out.
page - The page to output.
Throws:
java.io.IOException - If it can't writer the page out.

scheduleSite

public static void scheduleSite(ManagedSite ms)
                         throws WeblogException
Throws:
WeblogException

unscheduleSite

public static void unscheduleSite(ManagedSite ms)

isRunningForSite

public static boolean isRunningForSite(ManagedSite ms)

getCurrentStatus

public static java.lang.String getCurrentStatus(ManagedSite ms)

setNextExecution

public static void setNextExecution(ManagedSite ms,
                                    java.util.Date d)

setLastExecution

public static void setLastExecution(ManagedSite ms,
                                    java.util.Date d)

getNextExecution

public static java.util.Date getNextExecution(ManagedSite ms)

isScheduled

public static boolean isScheduled(ManagedSite ms)

getLastExecution

public static java.util.Date getLastExecution(ManagedSite ms)

getExecutionEvents

public static java.util.List getExecutionEvents(ManagedSite ms)


  Copyright © 2007 Gary Bentley. All Rights Reserved.