com.primix.vlib
Class Protected

java.lang.Object
  |
  +--com.primix.tapestry.AbstractComponent
        |
        +--com.primix.tapestry.BaseComponent
              |
              +--com.primix.tapestry.AbstractPage
                    |
                    +--com.primix.tapestry.BasePage
                          |
                          +--com.primix.vlib.Protected
All Implemented Interfaces:
IComponent, IErrorProperty, IPage, IRender
Direct Known Subclasses:
AdminPage, BorrowedBooks, EditBook, EditProfile, MyLibrary, NewBook

public class Protected
extends BasePage
implements IErrorProperty

Base page used for pages that should be protected by the Login page. If the user is not logged in, they are redirected to the Login page first. Also, implements an error property and a validationDelegate.

Version:
$Id: Protected.java,v 1.11 2001/06/21 21:09:51 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
Protected()
           
 
Method Summary
 void detach()
          Prepares the page to be returned to the pool.
 java.lang.String getError()
           
 IValidationDelegate getValidationDelegate()
           
 void setError(java.lang.String value)
           
protected  void setErrorField(java.lang.String componentId, java.lang.String message)
           
 void validate(IRequestCycle cycle)
          Checks if the user is logged in ...
 
Methods inherited from class com.primix.tapestry.BasePage
getResponseWriter
 
Methods inherited from class com.primix.tapestry.AbstractPage
addPageCleanupListener, addPageDetachListener, addPageRenderListener, attach, beginResponse, cleanupPage, firePageBeginRender, firePageCleanup, firePageDetached, firePageEndRender, getChangeObserver, getEngine, getExtendedId, getIdPath, getLocale, getName, getNestedComponent, getPage, getRequestCycle, getVisit, renderPage, setChangeObserver, setLocale, setName, setRequestCycle
 
Methods inherited from class com.primix.tapestry.BaseComponent
addOuter, finishLoad, 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.IComponent
addAsset, addComponent, addWrapped, finishLoad, getAsset, getAssets, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainer, getId, getSpecification, renderWrapped, setBinding, setContainer, setId, setPage, setSpecification
 
Methods inherited from interface com.primix.tapestry.IRender
render
 

Constructor Detail

Protected

public Protected()
Method Detail

detach

public void detach()
Description copied from class: AbstractPage
Prepares the page to be returned to the pool.

Subclasses may override this method, but must invoke this implementation (usually, last).

Overrides:
detach in class AbstractPage
Following copied from interface: com.primix.tapestry.IPage
See Also:
IPageSource.releasePage(IPage)

getValidationDelegate

public IValidationDelegate getValidationDelegate()

setError

public void setError(java.lang.String value)
Specified by:
setError in interface IErrorProperty

getError

public java.lang.String getError()
Specified by:
getError in interface IErrorProperty

setErrorField

protected void setErrorField(java.lang.String componentId,
                             java.lang.String message)

validate

public void validate(IRequestCycle cycle)
              throws RequestCycleException
Checks if the user is logged in ... if not, they are sent to the Login page before coming back to whatever this page is.
Overrides:
validate in class AbstractPage