net.sourceforge.stripes.examples.bugzooky
Class BugzookyActionBean

java.lang.Object
  extended by net.sourceforge.stripes.examples.bugzooky.BugzookyActionBean
All Implemented Interfaces:
net.sourceforge.stripes.action.ActionBean
Direct Known Subclasses:
AdministerComponentsActionBean, AdministerPeopleActionBean, DownloadAttachmentActionBean, LoginActionBean, LogoutActionBean, MultiBugActionBean, RegisterActionBean, SingleBugActionBean, ViewResourceActionBean

public abstract class BugzookyActionBean
extends Object
implements net.sourceforge.stripes.action.ActionBean

Simple ActionBean implementation that all ActionBeans in the Bugzooky example will extend.

Author:
Tim Fennell

Constructor Summary
BugzookyActionBean()
           
 
Method Summary
 BugzookyActionBeanContext getContext()
          Gets the ActionBeanContext set by Stripes during initialization.
protected  Bug populateBug(Bug bug)
          Determines whether the bug provided is a new bug, or an existing bug.
 void setContext(net.sourceforge.stripes.action.ActionBeanContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BugzookyActionBean

public BugzookyActionBean()
Method Detail

setContext

public void setContext(net.sourceforge.stripes.action.ActionBeanContext context)
Specified by:
setContext in interface net.sourceforge.stripes.action.ActionBean

getContext

public BugzookyActionBeanContext getContext()
Gets the ActionBeanContext set by Stripes during initialization.

Specified by:
getContext in interface net.sourceforge.stripes.action.ActionBean

populateBug

protected Bug populateBug(Bug bug)
Determines whether the bug provided is a new bug, or an existing bug. If it is an existing bug, the bug is retrieved from the bug manager and changes are merged in. If it is a new bug, fields that need defaults are filled in (such as creation date). The newly formed bug is then returned - the bug passed in as an argument is unaltered.

Parameters:
bug - a bug from which to create a fully populated bug
Returns:
a fully populated bug


© Copyright 2005, Stripes Development Team.