|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectpt.despodata.java.webappl.WebApplication
WebApplication.java Aplicacao Web Generica Esta classe e responsavel por criar o Modelo de dados e a(s) Vistas sobre os mesmos. A criacao do controlador e da responsabilidade da Vista. Created: Mon Jun 04 12:32:17 2000
| Field Summary | |
protected DDataSource |
source
A fonte dos dados. |
protected IUser |
user
Informacao relativa ao utilizador da aplicacao. |
| Constructor Summary | |
WebApplication(javax.servlet.http.HttpSession session,
DDataSource source,
IUser user,
java.lang.String applPath)
Constroi uma aplicacao. |
|
| Method Summary | |
protected abstract GenericModel |
createModel(DDataSource source)
Cria o modelo de dados |
protected abstract IUser |
createUser(java.lang.String login)
Cria um novo utilizador da aplicacao |
protected abstract GenericView |
createView(GenericModel model)
Cria a vista. |
void |
exit()
Sai da aplicacao |
GenericController |
getController()
Get the value of controller. |
GenericModel |
getModel()
Get the value of model. |
IUser |
getUser()
Get the value of user. |
GenericView |
getView()
Get the value of view. |
protected void |
initDebug()
Inicializa o Debug da aplicacao. |
protected void |
initSession(javax.servlet.http.HttpSession session)
Inicializa o controlador para uma dada sessao. |
boolean |
isAuthOK()
verifica se a autenticacao ja foi efectuada. |
protected void |
setController(GenericController v)
Set the value of controller. |
protected void |
setModel(GenericModel v)
Set the value of model. |
protected void |
setView(GenericView v)
Set the value of view. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected DDataSource source
protected IUser user
| Constructor Detail |
public WebApplication(javax.servlet.http.HttpSession session,
DDataSource source,
IUser user,
java.lang.String applPath)
| Method Detail |
protected abstract GenericModel createModel(DDataSource source)
throws java.sql.SQLException
java.sql.SQLExceptionprotected abstract GenericView createView(GenericModel model)
protected abstract IUser createUser(java.lang.String login)
throws java.lang.Exception
java.lang.Exceptionpublic void exit()
protected void initSession(javax.servlet.http.HttpSession session)
session - Objecto que identifica a sessao.protected void initDebug()
public GenericModel getModel()
protected void setModel(GenericModel v)
v - Value to assign to model.public IUser getUser()
public GenericView getView()
protected void setView(GenericView v)
v - Value to assign to view.public GenericController getController()
protected void setController(GenericController v)
v - Value to assign to controller.public boolean isAuthOK()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||