com.primix.vlib.pages
Class PersonPage

java.lang.Object
  |
  +--com.primix.tapestry.AbstractComponent
        |
        +--com.primix.tapestry.BaseComponent
              |
              +--com.primix.tapestry.AbstractPage
                    |
                    +--com.primix.tapestry.BasePage
                          |
                          +--com.primix.vlib.pages.PersonPage
All Implemented Interfaces:
IComponent, IExternalPage, IPage, IRender

public class PersonPage
extends BasePage
implements IExternalPage

Displays the book inventory list for a single IPerson, showing what books are owned by the person, who has them borrowed, etc. If the user is logged in, then books can be borrowed from this page as well.

Version:
$Id: PersonPage.java,v 1.16 2001/08/15 21:28:10 hship Exp $
Author:
Howard Ship

Fields inherited from class com.primix.tapestry.AbstractPage
engine, name
 
Fields inherited from class com.primix.tapestry.BaseComponent
outer, OUTER_INIT_SIZE, outerCount
 
Fields inherited from class com.primix.tapestry.AbstractComponent
id, page, specification, wrapped, wrappedCount
 
Constructor Summary
PersonPage()
           
 
Method Summary
 void cleanupPage()
          Removes the book query bean, if the handle to the bean is non-null.
 void detach()
          Invoked on a page when it is no longer needed by the engine, just before is is returned to the pool.
 void finishLoad(IPageLoader loader, ComponentSpecification spec)
          Allows a component to finish any setup after it has been constructed.
 Book getCurrentMatch()
           
 java.lang.String getEmailURL()
           
 boolean getOmitHolderLink()
           
 Person getPerson()
           
 IBookQuery getQuery()
          Gets the IBookQuery session bean that contains the books owned by the user, creating it fresh as needed.
 void setCurrentMatch(Book value)
           
 void setPerson(Person value)
           
 void setQuery(IBookQuery value)
          Sets the query persistent page property.
 void setup(java.lang.Integer personPK, IRequestCycle cycle)
          Invoked by the external service to being viewing the identified person.
 
Methods inherited from class com.primix.tapestry.BasePage
getResponseWriter
 
Methods inherited from class com.primix.tapestry.AbstractPage
addPageCleanupListener, addPageDetachListener, addPageRenderListener, attach, beginResponse, firePageBeginRender, firePageCleanup, firePageDetached, firePageEndRender, getChangeObserver, getEngine, getExtendedId, getIdPath, getLocale, getName, getNestedComponent, getPage, getRequestCycle, getVisit, renderPage, setChangeObserver, setLocale, setName, setRequestCycle, validate
 
Methods inherited from class com.primix.tapestry.BaseComponent
addOuter, readTemplate, render
 
Methods inherited from class com.primix.tapestry.AbstractComponent
addAsset, addComponent, addWrapped, cleanupAfterRender, cleanupComponent, finishLoad, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, generateAttributes, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainer, getId, getListeners, getSpecification, prepareForRender, renderWrapped, reset, setBinding, setContainer, setId, setPage, setSpecification, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.primix.tapestry.IPage
addPageCleanupListener, addPageDetachListener, addPageRenderListener, attach, beginResponse, getChangeObserver, getEngine, getLocale, getName, getNestedComponent, getRequestCycle, getResponseWriter, getVisit, renderPage, setChangeObserver, setLocale, setName, setRequestCycle, validate
 
Methods inherited from interface com.primix.tapestry.IComponent
addAsset, addComponent, addWrapped, getAsset, getAssets, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getPage, getSpecification, renderWrapped, setBinding, setContainer, setId, setPage, setSpecification
 
Methods inherited from interface com.primix.tapestry.IRender
render
 

Constructor Detail

PersonPage

public PersonPage()
Method Detail

detach

public void detach()
Description copied from interface: IPage
Invoked on a page when it is no longer needed by the engine, just before is is returned to the pool. The page is expected to null the engine, visit and changeObserver properties.
Specified by:
detach in interface IPage
Overrides:
detach in class AbstractPage
Following copied from interface: com.primix.tapestry.IPage
See Also:
IPageSource.releasePage(IPage)

finishLoad

public void finishLoad(IPageLoader loader,
                       ComponentSpecification spec)
                throws PageLoaderException
Description copied from interface: IComponent
Allows a component to finish any setup after it has been constructed.

The exact timing is not specified, but any components contained by the receiving component will also have been constructed before this method is invoked.

As of release 1.0.6, this method is invoked before bindings are set. This should not affect anything, as bindings should only be used during renderring.

Specified by:
finishLoad in interface IComponent
Overrides:
finishLoad in class BaseComponent

setPerson

public void setPerson(Person value)

getPerson

public Person getPerson()

getEmailURL

public java.lang.String getEmailURL()

getQuery

public IBookQuery getQuery()
Gets the IBookQuery session bean that contains the books owned by the user, creating it fresh as needed.

setQuery

public void setQuery(IBookQuery value)
Sets the query persistent page property.

setup

public void setup(java.lang.Integer personPK,
                  IRequestCycle cycle)
Invoked by the external service to being viewing the identified person.
Specified by:
setup in interface IExternalPage

getCurrentMatch

public Book getCurrentMatch()

setCurrentMatch

public void setCurrentMatch(Book value)

getOmitHolderLink

public boolean getOmitHolderLink()

cleanupPage

public void cleanupPage()
Removes the book query bean, if the handle to the bean is non-null.
Specified by:
cleanupPage in interface IPage
Overrides:
cleanupPage in class AbstractPage