sf.net.kayestry.pages
Class KayaBasePage

java.lang.Object
  extended by org.apache.tapestry.spec.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by org.apache.tapestry.BaseComponent
              extended by org.apache.tapestry.AbstractPage
                  extended by org.apache.tapestry.html.BasePage
                      extended by sf.net.kayestry.pages.KayaBasePage
All Implemented Interfaces:
java.util.EventListener, org.apache.tapestry.event.PageValidateListener, org.apache.tapestry.IComponent, org.apache.tapestry.ILocatable, org.apache.tapestry.ILocationHolder, org.apache.tapestry.IPage, org.apache.tapestry.IRender
Direct Known Subclasses:
AbstractCRUD, ErrorPage, Logout, WizardPage

public class KayaBasePage
extends org.apache.tapestry.html.BasePage
implements org.apache.tapestry.event.PageValidateListener

Clase base para las clases de las paginas de Tapestry. TODO: hacer un componente con una tabla con un radio para seleccionar una fila ( y tambien con un checkbox)

Version:
$Revision$ $Date$
Author:
lparra

Constructor Summary
KayaBasePage()
           
 
Method Summary
protected  void addMessage(org.apache.tapestry.valid.IValidationDelegate delegate, java.lang.String componentName, java.lang.String msg, org.apache.tapestry.valid.ValidationConstraint constraint)
          Agrega un mensaje para ser mostrado al usuario.
protected  void addMessage(java.lang.String msg)
          Agrega un mensaje para ser mostrado al usuario.
protected  void addMessage(java.lang.String componentName, java.lang.String msg)
          Agrega un mensaje para ser mostrado al usuario.
protected  void addMessage(java.lang.String componentName, java.lang.String msg, org.apache.tapestry.valid.ValidationConstraint constraint)
          Agrega un mensaje para ser mostrado al usuario.
protected  org.apache.tapestry.valid.IValidationDelegate getDelegate()
           
protected  ar.com.jiji.kaya.app.BusinessFacade getFacade()
           
protected  Visit getKayaVisit()
          Devuelve el objeto visit.
protected  ar.com.jiji.kaya.app.ProjectService getService()
           
 void pageValidate(org.apache.tapestry.event.PageEvent event)
          Chequea permisos de acceso.
protected  void restart()
          Realiza un restart de la aplicacion.
 
Methods inherited from class org.apache.tapestry.html.BasePage
getResponseWriter
 
Methods inherited from class org.apache.tapestry.AbstractPage
addPageDetachListener, addPageRenderListener, addPageValidateListener, attach, beginPageRender, beginResponse, detach, endPageRender, firePageBeginRender, firePageDetached, firePageEndRender, firePageValidate, getChangeObserver, getEngine, getExtendedId, getGlobal, getIdPath, getLocale, getNestedComponent, getOutputEncoding, getPageName, getRequestCycle, getVisit, initialize, removePageDetachListener, removePageRenderListener, removePageValidateListener, renderPage, setChangeObserver, setLocale, setPageName, setRequestCycle, validate
 
Methods inherited from class org.apache.tapestry.BaseComponent
addOuter, finishLoad, renderComponent
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, cleanupAfterRender, finishLoad, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, format, format, format, format, formatString, formatString, formatString, formatString, generateAttributes, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponents, getContainer, getId, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, getString, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainer, setId, setNamespace, setPage, setProperty, setSpecification, toString
 
Methods inherited from class org.apache.tapestry.spec.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.tapestry.IComponent
addAsset, addBody, addComponent, finishLoad, getAsset, getAssets, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainer, getId, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, getString, renderBody, setBinding, setContainer, setId, setNamespace, setPage, setProperty, setSpecification
 
Methods inherited from interface org.apache.tapestry.IRender
render
 
Methods inherited from interface org.apache.tapestry.ILocationHolder
setLocation
 
Methods inherited from interface org.apache.tapestry.ILocatable
getLocation
 

Constructor Detail

KayaBasePage

public KayaBasePage()
Method Detail

getService

protected ar.com.jiji.kaya.app.ProjectService getService()
Returns:
La instancia del ProjectService a usar.

getFacade

protected ar.com.jiji.kaya.app.BusinessFacade getFacade()
Returns:
La instancia del BusinessFacade a usar.

getDelegate

protected org.apache.tapestry.valid.IValidationDelegate getDelegate()

getKayaVisit

protected Visit getKayaVisit()
Devuelve el objeto visit.

Returns:

addMessage

protected void addMessage(java.lang.String msg)
Agrega un mensaje para ser mostrado al usuario.

See Also:
addMessage(IValidationDelegate, String, String, ValidationConstraint)

addMessage

protected void addMessage(java.lang.String componentName,
                          java.lang.String msg)
Agrega un mensaje para ser mostrado al usuario.

See Also:
addMessage(IValidationDelegate, String, String, ValidationConstraint)

addMessage

protected void addMessage(java.lang.String componentName,
                          java.lang.String msg,
                          org.apache.tapestry.valid.ValidationConstraint constraint)
Agrega un mensaje para ser mostrado al usuario.

See Also:
addMessage(IValidationDelegate, String, String, ValidationConstraint)

addMessage

protected void addMessage(org.apache.tapestry.valid.IValidationDelegate delegate,
                          java.lang.String componentName,
                          java.lang.String msg,
                          org.apache.tapestry.valid.ValidationConstraint constraint)
Agrega un mensaje para ser mostrado al usuario.

Parameters:
delegate - El delegate donde agregar los mensajes.
componentName - El nombre del componente. Puede ser null.
msg - El mensaje.
constraint - El constraint o null.

pageValidate

public void pageValidate(org.apache.tapestry.event.PageEvent event)
Chequea permisos de acceso. Si la pagina necesita control de acceso los chequea y en caso de no poder satisfacerlo, redirecciona a la pagina de login o la de acceso denegado.

Specified by:
pageValidate in interface org.apache.tapestry.event.PageValidateListener
See Also:
PageAccess, SecurePage

restart

protected void restart()
                throws ar.com.jiji.kaya.KayaRuntimeException
Realiza un restart de la aplicacion. Destruye la sesion. El uso comun es el logout de la aplicacion.

Throws:
ar.com.jiji.kaya.KayaRuntimeException - En caso de ocurrior errores de I/O.


Copyright © 2006 Kaya. All Rights Reserved.