net.sourceforge.stripes.examples.bugzooky
Class BugzookyActionBean
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BugzookyActionBean
public BugzookyActionBean()
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.